chore: 导入旧记忆备份供恢复

This commit is contained in:
2026-09-23 22:38:40 +08:00
parent 5313fcee7a
commit 6a6a895eaf
638 changed files with 29816 additions and 1 deletions
@@ -0,0 +1,102 @@
---
title: 本机 Codex 与 CC Switch 配置修复时间线
type: curated
permalink: main/projects/211ab78b-753e-4017-8533-79ae2c92d218/curated/本机-codex-与-cc-switch-配置修复时间线
stable_id: aa743760-7125-4ed3-9df3-45e831d9d74e
scope: project
project_id: 211ab78b-753e-4017-8533-79ae2c92d218
workspace_type: development
usage_profile_id: null
preference_context: development
document_type: timeline
revision: 1
source_memory_ids:
- c14af6ad-2409-4223-a0d2-19de3201ae3d
source_checkpoint_ids:
- 5843fec9-e8aa-46d3-b3fc-3b013428db31
- 726c136f-18b5-4373-ac30-517c2d2ec063
source_file_ids:
- ccswitch-provider-db
- ccswitch-settings
- codex-archived-jsonl
- codex-catalog-db
- codex-session-jsonl
- codex-state-db
source_git_commit: null
source_git_commits: []
source_agent_sync_ids:
- codex-ccswitch-provider-repair-curation-20260908-1139-v2
model_connection: Sub2API
model_name: openai/gpt-oss-20b
source_count: 23
source_revisions:
memory:726c136f-18b5-4373-ac30-517c2d2ec063: '1'
memory:5843fec9-e8aa-46d3-b3fc-3b013428db31: '1'
memory:c14af6ad-2409-4223-a0d2-19de3201ae3d: '1'
source_dispositions:
processed: 23
unchanged: 0
unsupported: 0
skipped: 0
cited_source_ids:
- memory:726c136f-18b5-4373-ac30-517c2d2ec063
- memory:5843fec9-e8aa-46d3-b3fc-3b013428db31
- memory:c14af6ad-2409-4223-a0d2-19de3201ae3d
job_cited_source_ids:
- memory:726c136f-18b5-4373-ac30-517c2d2ec063
- memory:5843fec9-e8aa-46d3-b3fc-3b013428db31
- memory:c14af6ad-2409-4223-a0d2-19de3201ae3d
conflicts: []
supersedes: []
preferences:
- statement: 默认使用中文交流
level: scenario
workspace_types:
- development
workspace_ids: []
source_ids:
- global_guidance_memory:7429c22e-50ff-458a-97c0-423c679904c7
counterexample_source_ids: []
occurrence_count: 1
explicit: true
confidence: 1.0
status: current
- statement: 开发记忆统一使用 MemRelay
level: scenario
workspace_types:
- development
workspace_ids: []
source_ids:
- global_guidance_memory:1194be51-ee29-47e1-8957-ec2888007db6
counterexample_source_ids: []
occurrence_count: 1
explicit: true
confidence: 1.0
status: current
source_cursor: 389
source_hash: 08eee49b05f53bb6dd60ce2965351dc48460a3458d2014075db67c30f39ddc97
prompt_version: 2026-08-12.3
schema_version: '3'
curation_job_id: e16be6d6-2084-4ddd-9751-2115ee9dfb01
created_at: '2026-09-08T03:52:57.955124+00:00'
updated_at: '2026-09-08T03:52:57.956298+00:00'
tags:
- development
---
```markdown
# 本机 Codex 与 CC Switch 配置修复时间线
| 时间 | 事件 | 备注 |
|---|---|---|
| 2026‑09‑08 03:34:51 UTC | **确认根因**:旧 Codex 会话使用 `aicodings‑codex` provider,导致 `Codex App` 新会话无法解析已切换 CC Switch。
| | 通过备份 `C:\\Users\\Administrator\\.codex\\backups_state\\manual-provider-repair\\20260908‑113145` 记录完整状态 | 见内存 726c136f ... |
| 2026‑09‑08 03:34:51 UTC | **迁移 provider**:在 131 个活动/归档 JSONL 中,把 3676 条 `provider` 从 `aicodings‑codex` 迁移为 `custom`。 | 见内存 726c136f ... |
| 2026‑09‑08 03:34:51 UTC | **更新 SQLite**:`state_5.sqlite` 126 行、`sqlite/codex‑dev.db` 40 行反映 `custom` | 见内存 726c136f ... |
| 2026‑09‑08 03:34:51 UTC | **修正 CC Switch**:把 AICodings 模板顶层 provider 更新为 `custom`,四个中转站模板均设为 `custom` | 见内存 726c136f ... |
| 2026‑09‑08 03:34:51 UTC | **启用 unifyCodexSessionHistory=true**,避免未来官方/第三方桶再次分裂 | 见内存 726c136f ... |
| 2026‑09‑08 03:35:34 UTC | **验证**:132 个 JSONL 全部可解析;两 SQLite integrity_check 检查 ok;126 条会话及 40 条目录索引均为 `custom`;Codex CLI 可正常加载配置;CC Switch 重启后设置不回退,旧会话已打开 | 见内存 5843fec9 ...;引用经验 c14af6ad ... |
> 以上步骤完成之后,Codex App 与 CC Switch 均可正常复用旧会话,且不再出现 `provider not found` 错误。
```