Skip to content

fix: keep delivered chat replies visible after completion - #184545

Open
dimsome wants to merge 8 commits into
openclaw:mainfrom
dimsome:fix/explicit-source-reply-visibility
Open

dimsome wants to merge 8 commits into
openclaw:mainfrom
dimsome:fix/explicit-source-reply-visibility

Conversation

@dimsome

@dimsome dimsome commented Oct 26, 2026 •

Copy link
Copy Markdown

What Problem This Solves

During Talk, the user asks the agent to send something in chat. The message appears while the agent is responding, then disappears from the normal chat view when the Talk turn finishes.

The reproduced display failure folds an explicitly delivered reply into “Worked for” when a Dashboard turn completes.

Related: #163042; this does not address every reported disappearing-text case.

User Impact

Expected: when the user asks for something in chat and the agent sends it, that message is persistent conversation output. It should remain visible after the Talk turn ends and after reload—not merely remain in storage behind collapsed work. Ordinary commentary and tool activity can still collapse. No backfill or configuration change is introduced.

Why This Change Was Made

Delivery and turn completion are separate facts. Preserve delivery identity independently of optional finality, keep delivered replies outside completed work, and recognize older replies only through narrow persisted identity.

Evidence

  • Real behavior: Real Gateway/Chromium reproduction: the base hides a nonfinal delivered reply; the fix preserves it after completion and reload. Only inference is scripted locally.
  • Data-model compatibility: Upgrade from official v2026.10.7 to PR head 8e539000: supported Doctor migration, authenticated Gateway/history and actual Chromium reload passed with retained messages and settings.
Original transcript events/IDs: 20/20 unchanged
Existing configuration values: 29/29 retained
Old delivered replies after reload: 2/2 visible once
SQLite integrity + foreign keys: 8/8 OK

A fresh real nonfinal message-tool send also survived reload with its canonical delivery marker.

Limits: Retained old canonical-marked rows remain untested; the stable trial produced markerless rows. This does not prove the original live Talk cause. Presentation-policy agreement remains open; this is still draft.

Real-Gateway before / after

Before:

Before: delivered reply hidden under closed work

After:

After: delivered reply visible while work remains closed

@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui gateway Gateway runtime size: L labels Oct 26, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 26, 2026
@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

Preserves source-reply delivery markers independently of finality and keeps delivered replies visible after completed dashboard turns.

Example: The agent sends “Explicit delivered reply: the synthetic checklist is ready.” with final:false, then acknowledges completion.

  • Before: The checklist reply is hidden inside the closed “Worked for” disclosure.
  • After: The checklist reply remains visible after completion and browser reload while ordinary work stays collapsed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Strong scoped behavior proof and no concrete remaining defect; readiness is capped by the unresolved presentation-policy decision.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after Chromium captures and the supplied real-Gateway scenario cover actual message-tool delivery, stored history, completion, and reload with scripted local inference; live Talk causation remains outside the claimed repair.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Needs a maintainer decision · Fix scope: Partial
User problem: A reply explicitly sent into chat disappears from the normal conversation view when its dashboard turn completes.
Reason: The demonstrated case has clear user value, but delivery-based preservation changes the area’s intentional presentation policy and covers only part of the linked issue.

Merge readiness

⛔ Blocked before merge - 1 item remains

This PR contains a useful, demonstrated repair and no remaining concrete code finding; a maintainer still needs to decide whether delivery identity should exempt replies from completed-work folding.

Priority: P2
Reviewed head: 0ae1e4761ca0a08d63b8fc3acd7b117945519c8f
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should explicitly delivered source replies remain visible after completion even when they are nonfinal or lack answer-phase metadata?
  • Recommendation: Approve delivery-based preservation: Treat explicitly delivered replies as conversation output while continuing to collapse ordinary narration and tool activity.
  • Why: The existing owner intentionally folds commentary, and this PR adds delivery identity as another preservation criterion; the contributor’s recommendation does not settle that presentation policy.

Before merge

  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

None.

Agent review details

How this fits together

Message-tool delivery owners append assistant replies to session history; the Control UI groups that history into visible answers and collapsed completed work.

flowchart TD
  A[Message tool send] --> B[Source reply persistence]
  B --> C[Session transcript]
  C --> D[Gateway history and events]
  D --> E[Chat presentation owner]
  E --> F[Visible delivered replies]
  E --> G[Collapsed ordinary work]
Loading

Technical review

Best possible solution:

Approve the delivery exemption in the existing presentation owner while retaining ordinary activity folding and explicit terminal-receipt semantics.

Do we have a high-confidence way to reproduce the issue?

Current-main source and inspected contributor screenshots establish the completed-work visibility failure; this read-only review did not execute the reproduction.

Is this the best way to solve the issue?

Separating delivery identity from finality addresses the demonstrated failure through existing persistence and presentation owners, subject to approval of the visibility policy.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 9adda02605ec.

Provenance checked

  • Completed-work presentation changes intended behavior with a stated reason (feat(ui): collapse completed turn work behind a "Worked for X" rollup #105012: Collapse intermediate commentary and tools so completed turns emphasize their final output; later answer-preservation work retained explicit answer segments.)
  • Current presentation-owner placement keeps the original intent (f421a5e: Separate grouping from presentation without changing ordering, disclosures, or row identity.)
  • Internal source-reply persistence keeps the original intent (447d619: Commit transcript and media ownership before publication and preserve safe explicit retries; this PR retains that lifecycle while separating identity from optional finality.)
  • Terminal source-reply receipts keeps the original intent (d8b723f: Use exact terminal-delivery evidence for restart recovery without replaying ambiguous side effects; terminal readers still require final:true.)
  • Assistant result lookup keeps the original intent (628bf6d: Preserve complete child answers through worker-backed reads; the adjusted predicate keeps newly marked omitted-final replies eligible.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit f421a5e adds ui/src/pages/chat/chat-turn-presentation.ts:98 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f421a5e3ade0; files: ui/src/pages/chat/chat-turn-presentation.ts)

PR surface

Source +83, Tests +1156. Total +1239 across 19 files. Added test files: 4.

View PR surface stats
Area Files Added Removed Net
Source 5 110 27 +83
Tests 14 1208 52 +1156
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 19 1318 79 +1239

Review metrics

Metric Value Why it matters
Production versus test/support changes Production +110/-27; test/support/config +1208/-52 Production growth stays in existing owners; most supporting growth exercises delivery persistence, browser reconciliation, legacy identity, and active/archive answer lookup.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Delivered output becomes hidden in completed dashboard conversations, with persisted content recoverable by expanding work.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on maintainer: Only explicit maintainer approvals or decisions remain; merge is still blocked.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (5 earlier review cycles)
  • reviewed 2026-10-26T11:20:23.932Z sha f2019ed :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-26T13:10:55.364Z sha ec0dbe5 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-27T04:09:55.501Z sha 8e53900 :: blocked before merge. :: [P2] Preserve final-answer lookup when adding omitted-final delivery markers
  • reviewed 2026-10-27T06:20:56.190Z sha 1667d60 :: blocked before merge. :: none
  • reviewed 2026-10-27T08:16:20.699Z sha d565a82 :: blocked before merge. :: none

Reviewed October 27, 2026, 10:09 AM ET / 14:09 UTC (Revision 6).

@dimsome

dimsome commented Oct 26, 2026

Copy link
Copy Markdown
Author

@clawsweeper re-review

Added real-Gateway producer-to-history/Chromium proof in ec0dbe5 and updated the PR body with inspected before/after screenshots and recordings. Only inference is scripted locally; no mocked Gateway/history or injected reply rows.

Omitted finality naturally terminates: the baseline lacks the marker, while the fix preserves it without inventing finality. A separate final:false continuation reproduces the closed-work visibility failure on the base and passes after the fix through browser reload. Fixed E2E: 2/2; independent sibling checks: 58/58. Product code is unchanged by this proof-only commit.

The latest-stable retained-state upgrade and presentation-owner policy decision remain outstanding; this is not live Talk/external-provider proof. The PR remains draft.

@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 26, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Oct 27, 2026
@dimsome

dimsome commented Oct 27, 2026

Copy link
Copy Markdown
Author

Resolved the test-inventory conflict with main, keeping both test registrations and the required inventory order. The prior P2 final-answer lookup fix is preserved.

Validation on the resolved tree: 24 inventory checks and 4 active/archive result-reader tests passed.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 27, 2026
@dimsome

dimsome commented Oct 27, 2026

Copy link
Copy Markdown
Author

My recommendation is to approve the delivery-based exemption: keep explicitly delivered replies visible after the turn ends, while ordinary narration and tool activity continue to collapse.

This matters especially in voice/Talk: when I explicitly ask for something to be sent directly into chat, that content is a user-facing reply—not internal work to collapse away once the speaking turn finishes.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 27, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui gateway Gateway runtime P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant