Repository navigation
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 5, 2026, 11:26 AM ET / 15:26 UTC. Summary PR surface: Source +662, Tests +1461, Docs +38, Config 0, Generated 0, Other +334. Total +2495 across 78 files. Reproducibility: yes. at source/proof level: current main renders bare Review metrics: 1 noteworthy metric.
Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land this branch after required checks and maintainer merge gating, preserving the typed argument-free diagnostic boundary and optional protocol field. Do we have a high-confidence way to reproduce the issue? Yes at source/proof level: current main renders bare Is this the best way to solve the issue? Yes. The patch fixes the narrow visibility bug at the typed validation-provenance and terminal-projection boundaries instead of parsing raw validator text or changing retry/model behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 33f7c17f233f. Label changesLabel justifications:
Evidence reviewedPR surface: Source +662, Tests +1461, Docs +38, Config 0, Generated 0, Other +334. Total +2495 across 78 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (5 earlier review cycles)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
The code review is green (platinum hermit, security cleared) and Could a maintainer trigger Mantis to capture the live abort line? Happy to adjust anything on the code side. |
d02e179 to
98926d9
Compare
|
Land-ready proof for exact rebased head
The maintainer rewrite accepts only typed This final batch branch also carries the required maintainer changelog entries and contributor credit for #83000, #100209, and #100241, keeping those runtime branches independent of unrelated |
5667ea4 to
72470c3
Compare
When a run ends while looping on tool-call validation errors the TUI showed only "run aborted". Carry the last tool failure on the terminal lifecycle metadata and render a sanitized one-line summary on the abort line, e.g. "run aborted: edit tool validation failed: edits: must have required properties edits". Argument dumps are stripped; with no summary it stays "run aborted". Refs openclaw#90982
cbb62f2 to
1d96f34
Compare
|
Landed as The final implementation carries a typed, argument-free validation diagnostic through agent-core, Gateway protocol, and both TUI backends while preserving canonical timeout/cancel/abort precedence. Exact-head CI was fully green; 683 focused tests, real Gateway and embedded PTY flows, protocol generation, native build/check, and Testbox build/protocol plus the 448-test Codex runtime shard all passed. Thanks @wsyjh8 for the original contribution. |
) * fix(tui): show last tool-error summary on aborted runs When a run ends while looping on tool-call validation errors the TUI showed only "run aborted". Carry the last tool failure on the terminal lifecycle metadata and render a sanitized one-line summary on the abort line, e.g. "run aborted: edit tool validation failed: edits: must have required properties edits". Argument dumps are stripped; with no summary it stays "run aborted". Refs openclaw#90982 * fix(tui): secure abort validation diagnostics * docs(changelog): move TUI fix to unreleased * docs(changelog): aggregate TUI fixes * fix(tui): scope abort validation diagnostics * docs(changelog): restore unreleased spacing * fix(tui): scope abort validation diagnostics * fix(tui): scope abort validation diagnostics --------- Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
When the model repeatedly emitted invalid tool arguments and the run aborted, both TUI backends showed only
run aborted. The useful validation context was lost between the tool result, terminal lifecycle event, Gateway chat projection, and TUI renderer. This closes #90982.Why This Change Was Made
Carry a typed
argument-validationdiscriminator from the agent loop and prepare a static, argument-free diagnostic at the tool boundary. Gateway and embedded runs retain that safe summary through explicit aborts and lifecycle self-aborts, while arbitrary tool output, validator paths, custom messages, and echoed arguments remain private. Terminal chat projection now uses the canonical agent-run outcome so cancellation cannot downgrade timeouts or failures.The additive
ChatAbortedEvent.errorMessagefield is propagated through the generated Swift model with a defaultednilinitializer parameter for source compatibility.User Impact
The TUI now reports a concise message such as
run aborted: edit tool validation failed: invalid argumentsin both Gateway and--localmodes. Existing successful, failed, timed-out, and cancelled terminal semantics remain unchanged.Evidence
pnpm build: passedNo raw model arguments or validator detail text are present in the emitted tool, lifecycle, chat, or terminal output.