Skip to content

fix: recover stale CLI auth and expose retryable failures - #68

Closed
BunsDev wants to merge 1 commit into
mainfrom
finish-auth-approvals
Closed

BunsDev wants to merge 1 commit into
mainfrom
finish-auth-approvals

Conversation

@BunsDev

@BunsDev BunsDev commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex stale-login failures now retry once, restarting an unused app-server while preserving other turns, including threads still opening. Failed turns persist actionable cards with Retry, sign-in or Settings remedies, expandable details, and Copy details; retry reuses the original user message. Model discovery can be retried from threads and drafts, and reopening a terminal does not repeat the sign-in command.

Reconciles the preserved auth-retry draft with main and merged #61. Early send/retry rejections still return to the caller without adding transcript cards. Also records the approval-rules spec reconstructed from #54 for the separate part-2 work; the approval gate remains off.

Validation:

  • Build and typecheck passed.
  • Full units passed: 15 core + 161 desktop, including stale auth, one retry, concurrent setup, abort, repeated failure, failure classification and persistence.
  • Focused errors e2e passed: 4 tests covering cards/retry, sign-in once, early rejection, and model-list retry.
  • Full local UI suite is incomplete: 17 passed, then shutdown/relaunch timeouts and a closed-page layout failure on a saturated host (load average over 300, no idle CPU). The run was interrupted.
  • Both required macOS CI runs passed build and units, then failed the same e2e: e2e/errors.spec.ts:129, where [data-testid="models-retry"] was absent after reload (15_000 ms timeout; 60 other e2e tests passed). The model-list fixture and retry timing need reconciliation with current main before another full run. This PR remains draft.
  • The terminal failed-write fixture now recognizes macOS's exiting state and asserts an EPIPE/ECONNRESET cause, so it proves that path without blocking forever waiting for the event loop to reap the supervisor.

Original auth-retry and approval-receipts worktrees remain untouched. No release or merge is included.

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