Skip to content

Share Codex SQLite state across launch homes - #4323

Merged
Jinwoo-H merged 1 commit into
mainfrom
Jinwoo-H/codex-issue
May 31, 2026
Merged

Jinwoo-H merged 1 commit into
mainfrom
Jinwoo-H/codex-issue

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented May 31, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • share Codex *.sqlite, *.sqlite-wal, and *.sqlite-shm files from the runtime home into per-selection launch homes
  • prelink missing SQLite WAL/SHM sidecars so SQLite creates them in the shared runtime home, not inside the launch home
  • avoid copy fallback for SQLite state and replace older managed launch-home DB forks with shared links
  • add host and WSL regression coverage proving SQLite state is linked while auth.json remains isolated

Verification

  • PATH="/opt/homebrew/opt/node@24/bin:$PATH" pnpm vitest run --config config/vitest.config.ts src/main/codex-accounts/runtime-home-service.test.ts
  • PATH="/opt/homebrew/opt/node@24/bin:$PATH" pnpm run typecheck:node
  • PATH="/opt/homebrew/opt/node@24/bin:$PATH" pnpm exec oxlint src/main/codex/codex-launch-home-paths.ts src/main/codex-accounts/runtime-home-service.test.ts
  • git diff --check
  • Electron E2E on macOS with isolated Orca userData: verified two managed Codex accounts, per-account real auth.json, shared SQLite symlinks, replacement of a pre-existing forked launch-home SQLite DB, missing sidecar prelinks, account switching, and PTY CODEX_HOME selection.

Made with Orca 🐋

@Jinwoo-H
Jinwoo-H merged commit c1ad123 into main May 31, 2026
2 checks passed
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant