Repository navigation
fix(codex): restore native tools and guard conversation continuity - #105
Open
gui-drumond wants to merge 1 commit into
Open
gui-drumond wants to merge 1 commit into
gui-drumond wants to merge 1 commit into
Conversation
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.
Problem and behavior
Recent Codex desktop builds call
/v1/alpha/search, which Loom returned as 404, and package their CLI undercodex-cli/codex-package.json. Loom preferred a separately installed PATH CLI, so catalog discovery could run against an older runtime. WebSocket continuations whose cached history was evicted or lost on restart were also forwarded with only the new messages, silently dropping prior context.CODEX_BINauthoritative and standalone fallbacks available. Recognize the current macOS package manifest and legacy app layouts, including user Applications directories. Validate relative entrypoints. Retain Windows/Linux discovery paths and verify the Windows executable before selection.previous_response_not_founderror before any upstream request. Keep the connection usable for a full-history replay. This prevents silent context loss; it does not add persistent history or guarantee automatic client recovery.The native backend URL is captured per router instance, allowing isolated HTTP integration tests without process-wide environment races. New compatibility CI jobs run the regression tests on Windows and macOS; existing Linux CI runs the full suite.
Validation
Reproduced three failures before the fixes: search returned 404, a missing-history continuation reached the upstream, and local CLI resolution chose the older PATH runtime. All targeted regressions pass after the fixes, including mocked native auth/body/header forwarding, route boundaries, manifest fixtures, and same-connection full-history recovery.
Passed locally on macOS:
bun run lintbun run test(170 tests)bun run buildcargo fmt --manifest-path src-tauri/Cargo.toml --checkcargo clippy --manifest-path src-tauri/Cargo.toml --all-targets -- -D warningscargo test --manifest-path src-tauri/Cargo.tomlNative search forwarding is verified against a local mock, not an authenticated production search. Windows/Linux execution is delegated to PR CI. No user configuration, permission profiles, plugins, session databases or installed applications are modified by this PR.