Repository navigation
fix(agents): preserve tool timeout outcomes - #180247
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR preserves tool-timeout attribution and saves durable checkpoints that require replay-safe continuation. Example: The tool watchdog interrupts run tool-run in agent:main:main.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR provides a useful maintainer-authored recovery fix still absent from main; no actionable introduced bug was found, but restart-handoff CI remains unresolved. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe terminal normalizer converts attempt results into lifecycle facts; the session writer persists recovery state, which startup and explicit recovery consume before dispatching another turn. flowchart LR
A[Tool watchdog] --> B[Terminal normalizer]
B --> C[Session lifecycle writer]
C --> D[SQLite recovery checkpoint]
D --> E[Recovery dispatcher]
E --> F[Replay-safe tool execution]
Technical reviewBest possible solution: Preserve timeout attribution and safe continuation through the existing terminal, lifecycle, and recovery owners while retaining ordinary restart permissions. Do we have a high-confidence way to reproduce the issue? Current-main source drops tool_execution during canonical settlement, and the supplied persistence comparison reports the pre-fix failure; no target code was executed during this review. Is this the best way to solve the issue? The patch repairs the producer and existing recovery consumers together; the persisted safety flag distinguishes tool-timeout recovery from ordinary Full Access restart recovery without adding another owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c055a4968318. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +69, Tests +202. Total +271 across 30 files. Added test files: 0. View PR surface stats
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (6 earlier review cycles)
Reviewed October 23, 2026, 10:50 PM ET / October 24, 2026, 02:50 UTC (Revision 7). |
11bae7f to
f7b52b2
Compare
f7b52b2 to
4390f65
Compare
4390f65 to
f84a9d3
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
f84a9d3 to
c9e7f88
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Exact-head CI follow-through for
Validation:
These are test-only follow-through fixes for deterministic failures seen on the prior exact head; the Android SDK unzip failure remains infrastructure-only. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
373522a to
abad27a
Compare
Required coverage: #189395, #187875, #186976, #182429, #184434, and remaining #180247. Preserve stable transport and terminal-settlement owners. Include #190695 sampling parity and only the required symbol/export prerequisites. No broad Gemini transport cutover. Source commits: d6a1327 fe0f8d1 cd486ed e72b356 807075d 28f5f25 ab7631a 9346376 054516f Proof: 216 focused tests passed; dedicated pre-fix regressions failed. Scoped typechecks/lint/format passed. Fresh independent P0-P2 review clean. Live provider/native qualification remains pending. Co-authored-by: Yiğit ERDOĞAN <[email protected]> Co-authored-by: evomach <[email protected]> Co-authored-by: Sasan <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: goslingmanagment <[email protected]> Co-authored-by: Dmitriy <[email protected]> Co-authored-by: Sukhdeep Johar <[email protected]> Co-authored-by: Dallin Romney <[email protected]> Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
Tool execution timeouts lose their phase during terminal settlement and can tell users to retry even though the tool's side effects are unknown.
Why This Change
tool_executionthrough canonical terminal normalization, runner error handling, and worker lifecycle validation.Rebase Scope
Rebased onto main
3523ef6747820e3253442a633dc09888c4cdf5fe. Main intentionally removed the restart-recovery/checkpoint system since this PR was opened. This revision retains the applicable timeout fix without restoring that system, its state fields, or replay restrictions. The older release line's checkpoint behavior is a separate backport concern.Evidence
abad27a53ce6837e8067fba4f660a96d7630b6dc.git diff --checkpassed.