Skip to content

fix(codex): resume threads with missing cli home bindings - #1255

Merged
nixuuu merged 1 commit into
devfrom
fix/codex-auth-json-issues
Nov 25, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/codex-auth-json-issues

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 25, 2026

Copy link
Copy Markdown
Member

An existing Codex thread could fail on Continue with “The selected Codex rollout is outside its session home.” When the worker journal lacked a home binding, the worker accepted only the previous private home. A valid rollout in the selected CLI home failed the same check as an unrelated path.

The worker now verifies an unbound rollout against the two configured homes and records a recovered CLI binding. It checks the native thread ID, file and link constraints before binding. A known binding still restricts the thread to its original CLI home. The import manifest check still runs first. Windows rollout recognition accepts mixed path separators and compares equivalent home namespaces.

Verification

  • Reproduced the reported error before the change using Codex 0.164.0, a new worker journal and an existing archived CLI session.
  • With Codex 0.164.0 and 0.172.0 on Linux, resumed the same native thread and verified its previous answer in the next local model request. Verified duplicate detection and enforcement of the recovered binding across restarts.
  • Checked existing private archive and connection scenarios, worker reconciliation tests, worker typecheck, edited-file lint and formatting. Focused test runs passed the temporary file cleanup check.
  • Exercised the parser with Windows drive, UNC and namespaced paths using Bun's Win32 path implementation. Native Windows execution and the reporter's original session were unavailable locally. Repository-wide checks run in CI.

Copy audit

The generic location error for an ambiguous CLI recovery now identifies the two copies and explains how to continue with the CLI copy. The message appears in the existing error details and has no variable-length values. No controls or layout changed.

Fixes: #1175

@nixuuu
nixuuu enabled auto-merge (squash) November 25, 2026 06:04
@nixuuu
nixuuu merged commit 03e5542 into dev Nov 25, 2026
20 checks passed
@nixuuu
nixuuu deleted the fix/codex-auth-json-issues branch November 25, 2026 06:14
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