Repository navigation
fix: continue unfinished tool work without a saved plan - #208392
Conversation
Co-authored-by: VACInc <[email protected]>
Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: 51a55760-d1b4-87b9-bcf2-26b86a869d51
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. |
Co-authored-by: VACInc <[email protected]>
Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: 010fa350-0457-80cb-b4b4-4a75fdd07dee
|
Codex review: passed. What this changesExtend the existing one-shot completion check to human-requested tool work without a saved plan or Goal. Example: A user requests a deployment check and an independent repair without saving a plan.
Review scores
The scores reflect the reviewer's assessment. Real behavior proof is not required for maintainer- or bot-authored pull requests. ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR addresses a distinct completion gap still present on current main, and review found no actionable defect. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe embedded runner evaluates a proposed terminal reply after tool execution and can queue one follow-up within the existing run before terminal delivery. flowchart TD
A[Human assignment] --> B[Agent session and tools]
B --> C[Current run terminal event]
C --> D[Completion eligibility check]
D --> E[One same-turn follow-up]
E --> B
D --> F[Terminal reply delivery]
Technical reviewBest possible solution: Keep the new eligibility condition in the existing terminal owner with its shared one-shot budget and preserved handoff safeguards. Do we have a high-confidence way to reproduce the issue? Current-main source skips completion checking when neither an unfinished plan nor child settlement exists; the added scripted session exercises that precise path, but no independent execution was performed during this read-only review. Is this the best way to solve the issue? This is a focused extension of the existing completion mechanism, with no new state owner, replay path, configuration, or persisted format. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 603078e5cab6. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +3, Tests +31. Total +34 across 2 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. 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 (1 earlier review cycle)
Reviewed November 29, 2026, 11:25 AM ET / 16:25 UTC (Revision 2). |
Combine child settlement with human-requested tool work in the same one-shot terminal check. Preserve both regression tests. Co-authored-by: VACInc <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
What Problem This Solves
A user can assign work without starting a Goal or saving a checklist. After using tools, the built-in runner could accept a progress report as its final answer even when part of the assignment was untouched.
User Impact
Human-requested tool work gets one completion check before ending with a visible reply. Text-only answers are unchanged. Already-completed tool work can incur one extra model call.
Why This Change Was Made
Reuse the same-turn check and the current tool results. It does not create a Goal or replay the original actions. The child-settlement check from #208391 stays in place; both paths share the same one-shot limit.
Evidence
All 18 terminal-loop tests passed locally on the combined code. One scripted model uses the first tool result to finish the second repair without repeating the first. Another finishes an independent repair after a child settles with optional reply delivery. These tests exercise the runner, not live-model behavior. Targeted lint and formatting passed on both files.
Contributor: @VACInc
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by