Repository navigation
Description
The multi-account guide should document the Windows SQLite shadow-home failure and a recovery path that preserves shared conversations.
I hit this with T3 Code 0.1.8 and Codex CLI 0.167.0 on Windows, using two Codex accounts and two Claude accounts. The secondary Codex provider became Disabled with a conflict on logs_2.sqlite-shm. Its database was a symlink to the primary home, while its WAL/SHM were ordinary files in the shadow home. The Claude accounts used separate config directories and stayed available.
The guide currently attributes shadow-home conflicts to a copied Codex setup and recommends a fresh shadow directory. SQLite can create these files during normal use of the documented setup, so that explanation misses this case.
Current multi-account guide
Storage bug #24486
Proposed fix #29574
Please add these points to the guide.
- Keep the same base CODEX_HOME for both providers and a separate shadow home for the second account.
- For the tested Windows version, route the shadow process to the primary SQLite directory by adding CODEX_SQLITE_HOME under the provider's Environment variables. Use an expanded absolute path, for example C:\Users\YOUR_USER.codex. The primary provider already defaults there. Other processes launched against the shadow also need that routing.
- Explain that setting the variable cannot clear an existing materialization conflict. T3 checks the directory before launching Codex.
- Explain recovery separately. Stop affected shadow writers, inspect the database families and back up the files before making changes. In my specific case, logs_2.sqlite-wal and state_5.sqlite-wal were empty, both associated SHM files were unlocked, and those four ordinary shadow files were moved to a backup directory outside the shadow. The database symlinks and their targets were preserved. Nonempty WALs, ordinary private databases, or uncertain ownership need a recovery procedure that preserves their data.
- Explain the difference between restoring provider availability and verifying native conversation continuation after an account switch.
After the variable and that cleanup, a Codex app-server probe authenticated the personal account and listed conversations without recreating ordinary shadow sidecars. I then confirmed that the T3 problem was fixed. A separate temporary-directory probe with this CLI version used a shared config.toml containing an absolute sqlite_home, started primary and secondary app-servers concurrently, and restarted the secondary. All generated SQLite files stayed in the primary directory.
This is a locally verified workaround for this installation. Long-term recurrence and mid-conversation account switching have not been separately verified. The docs should make the startup ordering clearer so users do not repeat the enviroment edit while the old files still block startup.
Activity
juliusmarminge commentedon Nov 16, 2026
This is the same problem as #24486, so I'm closing it in favour of that one. If it is different, say how and it will be reopened.