Repository navigation
fix: diagnose version failures and verify Codex test-home initialization - #67
Merged
Merged
Conversation
xxchan
added a commit
that referenced
this pull request
Oct 2, 2026
Concurrent first opens on a fresh `CODEX_HOME` can fail inside Codex's SQLite initialization. Coordinate app-server startup within one loaded OAR adapter: wait for the first successful `initialize`/`initialized` handshake, then allow subsequent clients to start concurrently. This covers sessions, account usage and inventories without changing public records, query deadlines or adding retries. The gate canonicalizes relative paths and symlinks using the actual child environment/cwd, invalidates readiness when the directory is replaced, cancels waiting clients before spawn, and waits for a failed initializer to exit before allowing its successor. Unit regressions cover these boundaries and preserve the open record's position ahead of same-chunk notifications. A real vendor regression opens eight sessions in an un-warmed fresh home. Native model-listing controls and documentation explain why `codex debug models` stays outside the gate: on 0.160.0/Linux, 24 standalone model readers and 21 alongside three app-servers succeeded, models-only homes contained just their config, and file-system tracing found no SQLite paths. The native code uses a separate model catalog/cache. Coordination does not extend across host processes or separately loaded copies of OAR, and it is not a database migration lock. Validation: `CI=true pnpm run check` (496 tests and mock behavior), Codex 0.160.0 vendor suite (11 applicable tests, including eight cold concurrent opens), Codex behavior suite (18/18), and `pnpm run build`. Native controls are reproducible with `node experiments/codex-concurrent-startup.ts <native-binary> 8 3 models`. Cross-platform CI remains the Windows evidence; the earlier Windows failures' cause is not established. Refs #57. Follows #67 and [upstream Codex issue #50290](openai/codex#50290). Co-authored-by: Otter <[email protected]>
Merged
xxchan
added a commit
that referenced
this pull request
Oct 2, 2026
Patch release: - #65 codex: a thread's `subAgentActivity` changes only its own children's tasks and edges. A subagent messaging a sibling or the root no longer creates a phantom root task or reopens the sibling; a grandchild's edge comes from its real parent (found by the daily inspection, closes #60). - #67 `--version` probe failures keep the native reason and stderr tail; the codex test-home warmup waits for a successful handshake and exit. - #68 codex: the first app-server initialization per `CODEX_HOME` is coordinated within one OAR module. codex 0.160.0 fails SQLite initialization when several processes first open a fresh home at once (upstream openai/codex#50290); sessions, account usage and inventories now wait for the first handshake, then start concurrently. Eight cold concurrent opens went from 1/8 to 8/8. - Docs: the 2026-10-02 maintenance pass (#62, #63, #64, #66). Version bump only in this PR. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: exe.dev user <[email protected]> Co-authored-by: Claude Opus 5.5 <[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.
Version-probe execution failures now retain the native error, exit status, signal, timeout and bounded stderr tail, including wrappers that exit with a numeric code after a timeout. Ordinary nonzero
--versionexits still mean an unavailable version.Codex test-home warmup now uses the session installation probe (including
OAR_CODEX_BINand desktop fallbacks), requires a successfulinitialize, and waits for process exit before returning the environment. Failed setup cleans up the provider and home. The old 2.5-second sleep proved neither readiness nor exit; test deadlines and existing assertions remain unchanged.Includes a dependency-free native startup reproducer and findings. Codex 0.160.0 on Linux failed 21/24 concurrent starts on a fresh shared home; isolated, previously initialized and serial-start controls each initialized 24/24. Reported upstream as openai/codex#50290. The two Windows vendor failures already had separate per-test homes; their precise trigger remains unconfirmed. Product-side initialization coordination is a separate change.
Validation:
CI=true pnpm run check(485 unit tests, mock 18/18), all four behavior backends 18/18 each, Codex vendor 10/10, and build. New regression coverage checks version failure details and warmup's selected executable, initialization failure and exit ordering.Refs #57; does not close the Windows root-cause investigation.