mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-24 12:44:18 +08:00
69341db284
The session-history migration only scanned ~/.codex/state_5.sqlite and the config.toml `sqlite_home` location. When Codex's SQLite state is relocated via the CODEX_SQLITE_HOME env var, the state DB was never scanned and its threads kept their old provider bucket. Add a CODEX_SQLITE_HOME fallback (config `sqlite_home` still takes precedence) in the shared codex_state_db_paths helper used by both the third-party and unified-session history migrations, plus serial env tests.