feat(codex): 添加历史会话可见性手动修复#3793
Conversation
|
CI Backend Checks 在恢复 Cargo cache 阶段失败 与本次改动无关 |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f34ac62f53
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if include_standard_history_buckets { | ||
| ids.insert(OPENAI_CODEX_MODEL_PROVIDER_ID.to_string()); | ||
| ids.insert(CC_SWITCH_CODEX_MODEL_PROVIDER_ID.to_string()); | ||
| } |
There was a problem hiding this comment.
Include legacy buckets in manual repair
When manual repair runs after the old third-party provider definition has been deleted or replaced, the only remaining evidence can be history rows/files with legacy bucket IDs such as ccswitch or aihubmix. In that case this source set contains only the standard openai/custom buckets plus IDs discovered from currently saved providers, so recognizable legacy history is never rewritten and stays invisible even though the user clicked “Repair history visibility.” The manual path should seed the known legacy IDs (or scan existing history) rather than depending on provider records still being present.
Useful? React with 👍 / 👎.
|
已修复 |
|
@codex review |
|
Codex Review: Didn't find any major issues. What shall we delve into next? ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary / 概述
session_meta.payload.model_provider、state_5.sqlite的threads.model_provider,并重建/补齐session_index.jsonl。thread_name,只补缺失会话或刷新实际更新的索引元数据。Related Issue / 关联 Issue
Fixes #3740
Screenshots / 截图
Checklist / 检查清单
pnpm typecheckpasses / 通过 TypeScript 类型检查pnpm format:checkpasses / 通过代码格式检查cargo clippypasses (if Rust code changed) / 通过 Clippy 检查(如修改了 Rust 代码)cargo test codex_history_migrationpasses / 通过 Codex 历史迁移相关测试