Repository navigation
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Thanks for the context here. I did a careful shell check against current Close as implemented on current main: the embedded-runner terminal path now marks replay-safe incomplete turns as eligible for model fallback, preserving delivery and side-effect checks that the source PR was trying to address. So I’m closing this as already implemented rather than keeping a duplicate issue open. Review detailsBest possible solution: Keep the current-main terminal-result classification and shared model-fallback flow; do not merge a parallel assistant-stage fallback path from this branch. Do we have a high-confidence way to reproduce the issue? Yes, from current source: a replay-safe incomplete terminal result is explicitly marked fallback-safe and passed into the shared fallback classifier; focused tests cover the safe and unsafe retry distinctions. Is this the best way to solve the issue? Yes—the current-main terminal-result path is the safer owner boundary because it carries complete replay, delivery, and side-effect facts into the fallback decision; this source branch is no longer the best landing vehicle. Security review: Security review cleared: The reviewed behavior is now implemented on main through existing agent lifecycle and fallback code; no concrete security or supply-chain regression requires action on this obsolete branch. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against a84302cd73aa; fix evidence: commit b721cffa4461, main fix timestamp 2026-08-01T02:05:45-07:00. |
6f47b64 to
31e66d6
Compare
|
@clawsweeper re-review The overbroad ENOENT matcher finding has been fixed and the focused negative regression test has been added. CI is green on head 31e66d6. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Added after-fix runtime proof to the PR body under "After-Fix Runtime Proof". It covers the production assistant failover classification + run-decision path and the negative unrelated-ENOENT case. |
31e66d6 to
b9f12f7
Compare
|
@clawsweeper re-review Updated head b9f12f7 narrows the ENOENT matcher to hidden credential/token basenames, adds negative coverage for workspace tokens.json and credentials/cache.json, and updates the PR body with the b9f12f7 runtime proof. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
b9f12f7 to
9ccf59e
Compare
9ccf59e to
d6cdc5b
Compare
d6cdc5b to
aa03af2
Compare
|
@clawsweeper re-review |
|
Maintainer repair restored exact head |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
0e7925a to
a44b95f
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Maintainer replacement opened at #117356. It preserves wenrizc’s authored commit and the reviewed repair, but moves the landing branch into the main repository because repeated fork force-rebases invalidated two exact-head sanitized AWS proof runs after maintainer coordination. This source PR remains open until the replacement clears exact-head CI and lands; no source work or credit is being discarded. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
…ent-failover-112226
|
ClawSweeper applied the proposed close for this PR.
|
|
Closeout update: the maintainer replacement #117356 has now landed on |
What Problem This Solves
Fixes #112226.
A provider can return a terminal assistant error with no visible output while leaving the payload unclassified, as in the reported credentials-file
ENOENT. The embedded runner retried the same model three times, then returned the invisible error result instead of consulting configured model fallbacks.Root Cause
The assistant terminal owner already knew the failed turn was replay-safe: no visible output and no replay-unsafe tool effects. That fact was used for bounded same-model retries, but discarded when the retry budget was exhausted.
Classifying credential filenames as authentication failures was not safe. It could rotate or cool down healthy auth profiles for unrelated local file errors.
Why This Change Was Made
After the existing bounded same-model retries, an unclassified replay-safe silent failure now selects the canonical
fallback_modeldecision with reasonunknownwhen fallback is configured.The repair deliberately:
unknownfailures to the cross-turn auth skip cacheThis branch also includes CI follow-up hardening for the TUI PTY Vitest config: the no-output watchdog is extended for the known long-running PTY e2e shard, which was being killed on loaded GitHub runners despite passing locally.
User Impact
Configured fallbacks can recover an otherwise silent failed turn after bounded same-model retries. Replay-unsafe attempts and auth-profile state retain their existing behavior.
Evidence
Current head:
393851ebfecnode scripts/run-vitest.mjs src/agents/embedded-agent-runner/run/assistant-failure.test.ts src/agents/model-fallback.run-embedded.e2e.test.ts -t "credential-file|keeps tool summary"node scripts/run-vitest.mjs run --config test/vitest/vitest.e2e.config.ts test/scripts/sqlite-sessions-transcripts-flip-proof.e2e.test.tsnode scripts/run-vitest.mjs test/scripts/ci-node-test-plan.test.ts test/scripts/ci-run-node-test-shard.test.tsnode scripts/run-vitest.mjs test/scripts/run-vitest.test.tsnode scripts/run-vitest.mjs run --config test/vitest/vitest.tui-pty.config.tsgit diff --check