Repository navigation
fix(ui): keep reply attribution above same-turn tool activity - #162322
Conversation
Carry completed-work display ownership into run frames and preserve known-run history suffixes without inventing prompt or recipient facts. Keep forwarded, peer, steer and system boundaries, and preserve the existing reply-strip design. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: c1fb845d-96b6-4511-8b63-6215cf374e72
|
🦞👀 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. Reviewed October 1, 2026, 12:17 AM ET / 04:17 UTC (Revision 3). ClawSweeper reviewWhat this changesThe Control UI keeps reply attribution above completed tool activity across resumed runs and history windows that omit the prompt, with regression coverage for presentation boundaries. Merge readiness✅ Ready for maintainer review This repair remains useful: pinned current main still exhibits the source-level grouping gap. The inspected screenshots demonstrate the intended improvement, and the current patch has no actionable correctness finding. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI projects Gateway conversation history and live activity into chat rows. Its grouping layer connects completed work to the displayed answer and supplies stable rows for rendering and reply navigation. flowchart TD
A[Conversation history] --> C[Transcript projection]
B[Live activity] --> C
C --> D[Completed work grouping]
D --> E[Reply and boundary checks]
E --> F[Stable chat frames]
F --> G[Reply line and work display]
F --> H[Message navigation]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +47, Tests +434. Total +481 across 6 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep one transcript projection owner that places completed work beneath its answer’s attribution while preserving execution identities, presentation boundaries, and navigation. Do we have a high-confidence way to reproduce the issue? Yes: pinned main’s framing conditions expose a clear reproduction using promptless history or mixed-run completed work, and the supplied before screenshot shows the ordering defect. This review did not execute that scenario. Is this the best way to solve the issue? Yes: the patch carries an existing completed-work ownership fact through the current projector and renderer, avoiding a competing renderer or changes to transcript identities. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b58f2a2c3327. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
Use one owner-boundary matrix for projected sources and shared fixtures for frame identity and content assertions. Retain independent lifecycle and rendered proof. Update the notice-promotion expectation for known-run suffix framing without changing production or design. Co-authored-by: vyctorbrzezowski <[email protected]>
|
Merged via squash.
|
…aw#162322) * fix(ui): keep reply attribution above same-turn tool activity Carry completed-work display ownership into run frames and preserve known-run history suffixes without inventing prompt or recipient facts. Keep forwarded, peer, steer and system boundaries, and preserve the existing reply-strip design. Co-authored-by: vyctorbrzezowski <[email protected]> * fix(ui): keep reply attribution above same-turn tool activity Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: c1fb845d-96b6-4511-8b63-6215cf374e72 * test(ui): consolidate reply-frame regression coverage Use one owner-boundary matrix for projected sources and shared fixtures for frame identity and content assertions. Retain independent lifecycle and rendered proof. Update the notice-promotion expectation for known-run suffix framing without changing production or design. Co-authored-by: vyctorbrzezowski <[email protected]> --------- Co-authored-by: vyctorbrzezowski <[email protected]>


Related: #150549, #160612
What Problem This Solves
Same-run tool activity can appear above the Replying to strip when a history window omits the prompt or completed work spans an automatic resumption.
User Impact
The reply line heads its completed work and answer, including the existing agent/participant avatars and connector. The strip, typography, colors, spacing tokens and footer styling are unchanged; there are no CSS changes.
Execution IDs remain unchanged. Peer inputs, forwarded sources, system markers and steers still separate presentation segments. Live mixed-run activity remains its existing separate log rather than being assigned to an arbitrary reply. No protocol, configuration, storage or migration changes.
Why This Change Was Made
The completed-work projector already knows which terminal reply owns a rollup but discarded that presentation fact. The frame builder then required uniform nested run IDs and a loaded prompt boundary, leaving work outside its reply frame.
Carry the selected reply’s display ownership through that handoff, and use a frame-local identity for a known run whose prompt is outside the loaded window. Recovered failures stay visible in work without poisoning the later successful reply’s outcome. Forwarded work cannot borrow local framing even when its execution ID matches.
Evidence
buildChatItems → projectTranscriptChainpath and production-bundle browser scenario fail on original base80680fb3428a5d06bbccafaccaaade703da651efand pass with this repair. The retained projection matrix also catches a deliberately reintroduced forwarded-boundary defect.Independent review disposition
The forwarded-work/same-execution-ID finding was reproduced and fixed, with a failing-then-passing regression. A suggestion to make promptless framing dashboard-only was not adopted: the shared Control UI already frames channel turns when their prompts are loaded. A parity test verifies the same frame, key, message visibility and row mapping when that prompt is outside the window. Channel work is not collapsed and channel transport is untouched.
The post-audit review identified only the old indexed notice expectation; the corrected working-tree version was already assessed without additional P0–P2 findings. Staging that exact reviewed version resolved the finding before commit.
Proof uses the real production-bundle UI with synthetic Gateway data, not live-provider or native-device evidence.
Screenshots
Same synthetic conversation, real production-bundle Control UI, 1440×900 dark desktop viewport. Identical 910×385 crops; existing agent and participant avatars are visible. No CSS or styling changes.
Before
After
Worked on by
Work sessions
View the OpenClaw team session