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,98 @@
---
title: 当前 Codex 与 CC Switch 状态
type: curated
permalink: main/projects/211ab78b-753e-4017-8533-79ae2c92d218/curated/当前-codex-与-cc-switch-状态
stable_id: 60569bf2-0bd7-46f8-93f5-a869d36a9703
scope: project
project_id: 211ab78b-753e-4017-8533-79ae2c92d218
workspace_type: development
usage_profile_id: null
preference_context: development
document_type: current_state
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:59.340760+00:00'
updated_at: '2026-09-08T03:52:59.341268+00:00'
tags:
- development
---
```markdown
# 当前 Codex 与 CC Switch 状态
- **Provider 状态**:所有会话(JSONL、SQLite、state_5.sqlite、codex‑dev.db)中的 `model_provider`/`model_provider_id` 均已统一为 `custom`。
- **CC Switch 配置**:AICodings 模板及四个中转站模板的顶层 provider 均为 `custom`,`ccswitch-settings` 中 `unifyCodexSessionHistory=true` 已启用。
- **Codex App**:已重启并成功加载旧会话 `019f8e23‑a65b‑7d03‑92d3‑05fb19dd6602`,无 `provider not found` 错误。
- **数据库完整性**:两 SQLite 实例的 `integrity_check` 均为 `ok`,JSONL 解析无异常。
- **备份可用**:手动备份目录 `C:\\Users\\Administrator\\.codex\\backups_state\\manual-provider-repair\\20260908‑113145` 已保存。
> 处于此状态下,用户可直接在 Codex App 打开旧会话进行操作,并在后续通过 CC Switch 切换任意中转站时保持 provider 为 `custom`。
```
@@ -0,0 +1,85 @@
---
title: 待完成任务
type: curated
permalink: main/projects/211ab78b-753e-4017-8533-79ae2c92d218/curated/待完成任务
stable_id: 5340cee1-54f2-4f60-aee9-e812cfae796e
scope: project
project_id: 211ab78b-753e-4017-8533-79ae2c92d218
workspace_type: development
usage_profile_id: null
preference_context: development
document_type: tasks
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: {}
source_dispositions:
processed: 23
unchanged: 0
unsupported: 0
skipped: 0
cited_source_ids: []
job_cited_source_ids: []
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:53:01.508971+00:00'
updated_at: '2026-09-08T03:53:01.509432+00:00'
tags:
- development
---
```markdown
# 待完成任务
暂无已知未完成的任务。
> 任何后续需要在 Codex App 或 CC Switch 中新增供应商时,应确保顶层 `model_provider` 与 `[model_providers.<id>]` 对齐,并在重启前手动备份。
```
@@ -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` 错误。
```