Skip to content

fix: diagnose version failures and verify Codex test-home initialization - #67

Merged
xxchan merged 2 commits into
mainfrom
fix/version-probe-diagnostics
Oct 2, 2026
Merged

xxchan merged 2 commits into
mainfrom
fix/version-probe-diagnostics

Conversation

@xxchan

@xxchan xxchan commented Oct 2, 2026

Copy link
Copy Markdown
Member

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 --version exits still mean an unavailable version.

Codex test-home warmup now uses the session installation probe (including OAR_CODEX_BIN and desktop fallbacks), requires a successful initialize, 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.

@xxchan
xxchan merged commit 374ab37 into main Oct 2, 2026
12 checks passed
@xxchan
xxchan deleted the fix/version-probe-diagnostics branch October 2, 2026 12:33
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]>
@xxchan xxchan mentioned this pull request Oct 2, 2026
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]>
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.

2 participants