Repository navigation
Bridge legacy Codex sessions into runtime home - #2816
Merged
Merged
Conversation
enrick-dev
pushed a commit
to enrick-dev/orca
that referenced
this pull request
Oct 15, 2026
Co-authored-by: Orca <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
~/.codex/sessions/**/*.jsonlfiles into Orca's managed Codex runtime home during Codex launch so old sessions remain resumable under Orca'sCODEX_HOME.Design Review Outcome
~/.codex/sessions; local measurement on this machine was 4,524 JSONL files / 157 dirs / 2.4 GB, with a 26 ms median and 63 ms max walk over 5 runs, but slow or remote home directories may be worse.Implementation Notes
src/main/codex/codex-session-bridge.tsfor session-specific bridge ownership, keepingcodex-home-paths.tsfocused on home/resource paths.CodexRuntimeHomeService.prepareForCodexLaunch()now invokes the session bridge after resource/config sync.src/main/codex-usage/scanner.tsnow dedupes physical aliases by file identity and supports legacy copied-source suffix parsing to avoid counting copied prefixes twice.Completeness Verification
Review Loop
Validation
pnpm exec vitest run --config config/vitest.config.ts src/main/codex/codex-session-bridge.test.ts src/main/codex/codex-home-paths.test.ts src/main/codex-usage/scanner-paths.test.ts src/main/codex-usage/scanner.test.ts src/main/codex-accounts/runtime-home-service.test.tspassed: 5 files, 80 tests.pnpm run typecheck:nodepassed.pnpm run typecheckpassed.pnpm run lintpassed.git diff --checkpassed.Assumptions / Risks
CODEX_HOME.Made with Orca 🐋