Repository navigation
fix(ui): keep image inspections inside completed work - #197528
Conversation
Keep tool-owned inspection media in the completed-work disclosure while preserving delivered images and explicit widgets. Use one terminal predicate for run liveness and interruption. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: ef1ee345-b875-4b50-8010-6582106eac45
|
🦞👀 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. |
Preserve authoritative Gateway abort state while retaining one terminal predicate for run grouping. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 82043d13-c7f6-4214-ac61-279e7906d9fb
|
Codex review: needs changes before merge. What this changesThis PR folds inspected tool images into completed work while preserving delivered media and consistent run-outcome classification. Example: A turn inspects before.png and after.png, then delivers “The preview is ready.” with an image.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this PR open: it provides a focused correction to completed-turn presentation, with one concrete test-budget repair needed before merge. Priority: P2 Before merge
Findings
Agent review detailsHow this fits togetherThe Control UI projects saved messages and live events into tool activity, completed-work disclosures, and run frames without rewriting the stored transcript. flowchart TD
A[Saved messages and live events] --> B[Tool activity projection]
B --> C[Message grouping]
C --> D[Completed work presentation]
D --> E[Run frames]
E --> F[Visible reply and expandable work]
Technical reviewBest possible solution: Retain the existing-owner presentation fix and add a scoped allocation for the regression coverage that remains after consolidation. Do we have a high-confidence way to reproduce the issue? Current-main visibility classification explains the reported split, and inspected browser screenshots corroborate it; no target code was executed during this review. Is this the best way to solve the issue? The smallest complete fix distinguishes inspection media at the existing completed-work owner and reuses the existing terminal predicate, preserving delivered assistant media and explicit inline widgets. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 36afa92b2370. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +2, Tests +366, Docs +2. Total +370 across 8 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. Review metrics
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 Reviewed November 11, 2026, 11:47 PM ET / November 12, 2026, 04:47 UTC. |
|
Verification for The inspection rows now stay inside collapsed Worked, and opening their tools still shows both images. The delivered answer image remains visible. I verified the production UI with the existing synthetic Gateway fixture in saved-history and live-event modes, including reload. Both inspection images decoded at 640×120. The matched control restored only The 26 Gateway publication tests, 94 UI grouping/outcome tests and all six visualization browser cases also passed. Temporary proof edits were restored. Images below: original-code control, fixed collapsed state, and fixed expanded state. |
|
Merged via squash.
|
Keep inspection media inside completed work while preserving delivered media, widgets and late outcomes. Focused Gateway/UI tests, six browser cases and matched saved/live expansion checks passed. The original production control fails on inspection rows remaining outside collapsed Worked. Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: Vyctor H. Brzezowski <[email protected]>



What Problem This Solves
Fixes completed chat replies splitting around image-inspection tool rows, leaving internal work outside the “Worked” disclosure.
User Impact
Completed replies keep their inspected images inside expandable work, while delivered images, interactive widgets, and late failure or publication notices remain visible. No migration or user action is required.
Why This Change Was Made
The existing grouping treated all non-text tool content as delivered output. This change distinguishes inspection media from explicitly targeted inline widgets and uses the existing terminal predicate consistently when classifying run outcomes. It does not rewrite transcript storage, publication receipts, or virtualization.
Evidence
47ad50865b714f2bf90bd1a26154571d7286764a, 1,289 UI tests across 85 suites passed, including replay, streaming/history reconciliation, long transcripts, user/run boundaries, and media rendering.The browser proof uses the real built Control UI with an isolated mock Gateway and synthetic media at 1200×900 in dark mode. The original authenticated conversation was replayed as stored messages, not opened in that browser. The before/after screenshots below were captured before integration; the same flows passed again after integration.
Regression coverage and scope
Coverage retains image-only answers, assistant images alongside tool calls, explicit inline widgets, no-answer tool results, late tool errors, unrelated background results, standalone/delayed publication notices, and nonterminal commentary/speech/reasoning messages. Negative controls failed on the unpatched implementation. Integration preserves main’s authoritative Gateway abort-state classification; the new nonterminal regression explicitly supplies that abort state.
The production change stays in two existing UI owners: 10 added and eight removed lines. The remainder is regression coverage and documentation. No new persistence, timer, manager, or global merging rule was added.
Requested by @vyctorbrzezowski.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by
Maintainer verification
26 Gateway tests, 94 UI tests and all six visualization browser cases passed. Additional saved/live/reload checks verify both inspection images decode and remain accessible; paired original production modules fail both visibility controls. Only a scoped 366-line allocation was added for existing regression coverage. Inspected captures and proof limits.