You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Codex shadow homes refuse setup: shadow-local memories_v2 conflicts with new shared ~/.codex/memories_v2 #146
Codex CLI 0.170.0 now creates a memories_v2 directory in the shared Codex home (~/.codex/memories_v2, created 2026-11-19 06:07Z). The Codex shadow homes already hold their own real memories_v2 directories, which Codex wrote there before the shared home had one. Shadow materialization now wants to link shadow/memories_v2 to the shared entry, finds a real directory and refuses:
ProviderSetupError: Cannot create Codex shadow home entry 'memories_v2' because
'.../providers/codex/codex_<instance-a>-.../shadow/memories_v2' already exists and is not a symlink.
Logged repeatedly between 06:14Z and 06:31Z on 2026-11-19 under v0.1.10-preview.20261119.1. Codex sessions on that instance cannot start while this stands.
Release impact
The read-only t3 __service-preflight --launcher-protocol 4 against the live database reports codexShadowHomes.status: "not-ready" for both configured Codex instances (codex_<instance-a>-... and codex_<instance-b>-...), conflict memories_v2, autoSettle: false. The upstream sync's step 4 stops on not-ready, so the next fork release (for example a newer upstream stable tag) will be refused until this is settled.
Cause
inspectCodexShadowHome in apps/server/src/provider/Drivers/CodexHomeLayout.ts treats any non-SQLite real file or directory where a shared link belongs as a plain conflict that nothing moves aside. memories_v2 is new in the shared home, so every shadow that already had its own copy now conflicts.
Fix options
Treat memories_v2 as shadow-private (add it to the private entry names) if per-account memories are intended, or
auto-settle it like the shadow's own databases: move the shadow's copy into the dated shadow-conflict-backup-* directory and link the shared one, with a regression test for a pre-existing shadow memories_v2 directory.
The shadow copies hold real content (memory_summary.md, rollout_summaries/, a .git history), while the shared copy holds only extensions/ad_hoc/instructions.md, so a fix must not discard the shadow data.
Found by the hourly upstream-sync run's post-deploy verification.
Activity
chrisohearn commentedon Nov 23, 2026
Fixed by #147.