Skip to content

feat(ui): replace the chat reply quote card with a Replying to line - #150549

Merged
roboclaw-bot merged 6 commits into
openclaw:mainfrom
vyctorbrzezowski:feat/chat-reply-attribution-excerpt
Sep 30, 2026
Merged

roboclaw-bot merged 6 commits into
openclaw:mainfrom
vyctorbrzezowski:feat/chat-reply-attribution-excerpt

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Sep 17, 2026 •

Copy link
Copy Markdown
Member

Closes #150486

What Problem This Solves

In shared chats, readers cannot reliably tell which message an answer refers to, especially when search, paging, or a system/forwarded turn hides the original context.

User Impact

Replies use one compact Replying to [avatar] Name line, without an excerpt. Selecting the name reveals and highlights the original, opening folded work or clearing search when needed—including already-loaded originals in archived/read-only chats.

  • Attribution uses known source facts, never a guessed author. Hidden prompts and pending inputs still retain their turn context.
  • A one-to-one answer to its own prompt stays quiet. Explicit replies to older prompts remain navigable after a system turn.
  • Confirmed missing originals stay noninteractive; unresolved lookup rows retain the existing reserved-height behavior.
  • The existing name-only design, avatars, connectors, typography, spacing, colors, and responsive layout are intentionally preserved. The earlier exploratory excerpt proposal is not part of the chosen design.

No protocol, configuration, storage, or migration changes. Participant controls remain in the stacked companion PR.

Why This Change Was Made

One source resolver and renderer replace the separate quote/attribution paths. Reply context and tool-result pairing now respect complete conversation boundaries even when search hides rows, without inferring execution ownership from display-only source metadata.

Evidence

Published head: c4ab44a. Main was incorporated for an actual conflict with its test refactor; contributor ancestry is preserved.

  • Independent autoreview completed with no remaining P0–P2 findings after two additional search-boundary findings were reproduced and repaired.
  • The broad combined chat/chat-library run passed 8,064 tests across 477 files. Subsequent display-boundary changes passed 199 focused tests, followed by the combined owner and browser regressions.
  • Combined production-bundle browser proof passed 60 cases across attribution, identity, actions, streaming, recovery, collapsed sources, and phone/tablet interaction; final controls and streaming-runtime budget checks passed 10 cases after the final boundary repair.
  • UI and UI-test typechecks, source i18n, CSS lint, architecture checks, formatting, production UI build, and bundle performance budgets pass on the combined candidate. Hosted CI is tracked separately; this is not a claim that pending checks passed.
  • Single-worker command wall time for materially changed test files: reply-attribution grouping 4.13 s, tool coalescing 4.54 s, transcript replies 7.32 s, message rendering/conflict integration 4.63 s. Actual test execution in each file remains below 5 seconds.

Proof uses synthetic conversation data and Chromium, including no-hover touch emulation. It is not native-device or live-provider proof. The original design comparisons below retain their stated capture revisions; new combined-stack captures verify unchanged design and repaired interaction.

The hosted model-picker tooltip failure was reproduced as a fixture race during popup animation. The test now waits for that animation before hovering, without changing production code or weakening assertions. The repaired flow passed 20 stress scenarios and the complete 13-case file; its focused autoreview is clean.

Screenshots

Before is the merge base e2aa9623135; after was captured at 1a51c06e159, before the split. These are historical design comparisons using the same mock fixture and viewports, not exact-head pixel comparisons. The chosen name-only reply line, avatars and connectors remain unchanged by the behavioral repairs; participant footer tint belongs to the companion PR. Fresh same-state behavioral screenshots are linked below.

Scene Before After
Shared thread, assistant reply attributed to a participant (desktop) before after
Same, phone before after
1:1 thread, reply to an older message of yours (desktop) before after
"Original message unavailable" row (phone) before after
Participant message with its own line (desktop) before after

Latest behavioral before/after screenshots and verification

Worked on by

  • @vyctorbrzezowski — design and original implementation; credited in the repair commit.

Work sessions

@vyctorbrzezowski vyctorbrzezowski self-assigned this Sep 17, 2026
@clawsweeper

clawsweeper Bot commented Sep 17, 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.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 17, 2026
@clawsweeper

clawsweeper Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 30, 2026, 1:23 AM ET / 05:23 UTC (Revision 43).

ClawSweeper review

What this changes

The branch replaces Control UI reply quote cards with an author line, adds navigation across hidden transcript context, updates chat styles, docs, and tests, and stabilizes a model-picker tooltip test.

Merge readiness

✅ Ready for maintainer review

Keep this PR open. Current main still uses the older reply presentation, so the branch remains useful. The prior excerpt concern is an explicit, accepted design tradeoff, and this review found no remaining line-level blocker.

Priority: P2
Reviewed head: c4ab44a297724df97de54c91aa563e49dd6a05ef

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The UI change has visible browser proof and substantial boundary coverage, with no concrete correctness finding in this review.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected Chromium before/after captures show the new reply line on desktop and mobile; the PR reports production-bundle browser interaction coverage for navigation and hidden-source cases on the combined candidate. The captures are historical design comparisons, while later source changes address behavior boundaries; no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected Chromium before/after captures show the new reply line on desktop and mobile; the PR reports production-bundle browser interaction coverage for navigation and hidden-source cases on the combined candidate. The captures are historical design comparisons, while later source changes address behavior boundaries; no stored-data contract changes.
Evidence reviewed 8 items Current main still has the older presentation: Current main calls the older attribution renderer, while the PR replaces that path and removes the quote-card renderer.
Introduced reply behavior: The branch resolves explicit, current-run, and automatic reply sources before rendering a named, reserved, or unavailable line.
Hidden-turn and navigation coverage: Focused tests cover search-hidden turn boundaries, textless loaded originals, and navigation from search in read-only archives.
Findings None None.
Security None None.

How this fits together

The Gateway supplies messages and participant facts to the Control UI chat transcript. The UI groups those messages, resolves each reply's source, renders its attribution, and navigates to the original when selected.

flowchart LR
  A[Gateway messages] --> B[Transcript grouping]
  C[Session participants] --> B
  B --> D[Reply source resolution]
  D --> E[Replying to line]
  E --> F[Original message navigation]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +979, Tests +2567, Docs +1. Total +3547 across 51 files.

View PR surface stats
Area Files Added Removed Net
Source 31 1371 392 +979
Tests 19 2708 141 +2567
Docs 1 4 3 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 51 4083 536 +3547

Review metrics

Metric Value Why it matters
Production and test growth production +980 net lines; tests +2,566 net lines The growth supports source resolution, navigation, layout, and boundary regressions described in the PR; the breadth merits focused maintainer review.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #150486
Summary: This PR is the linked candidate for the reply-attribution request, with an explicitly chosen name-only design. The stacked participant-controls PR and Gateway source-identity PR address distinct adjacent behavior.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Keep one reply-source resolver across the full transcript, with navigation scoped to the selected session and the accepted compact presentation.

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

Not applicable: this is a UI design change. Current-main source establishes the older presentation, and the branch includes a browser scenario for the proposed interaction.

Is this the best way to solve the issue?

Yes. The branch uses the existing transcript and reply-access owners for attribution and navigation, while the name-only presentation reflects the recorded design decision.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 9e6e8c4a99b7.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Reply attribution and navigation improve a bounded Control UI chat workflow.
  • merge-risk: 🚨 compatibility: Existing quote excerpts disappear, a presentation tradeoff explicitly accepted by the design owner in the PR discussion.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected Chromium before/after captures show the new reply line on desktop and mobile; the PR reports production-bundle browser interaction coverage for navigation and hidden-source cases on the combined candidate. The captures are historical design comparisons, while later source changes address behavior boundaries; no stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected Chromium before/after captures show the new reply line on desktop and mobile; the PR reports production-bundle browser interaction coverage for navigation and hidden-source cases on the combined candidate. The captures are historical design comparisons, while later source changes address behavior boundaries; no stored-data contract changes.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected Chromium before/after captures show the new reply line on desktop and mobile; the PR reports production-bundle browser interaction coverage for navigation and hidden-source cases on the combined candidate. The captures are historical design comparisons, while later source changes address behavior boundaries; no stored-data contract changes.

Evidence

What I checked:

  • Current main still has the older presentation: Current main calls the older attribution renderer, while the PR replaces that path and removes the quote-card renderer. (ui/src/pages/chat/components/chat-message-group.ts:612, 9e6e8c4a99b7)
  • Introduced reply behavior: The branch resolves explicit, current-run, and automatic reply sources before rendering a named, reserved, or unavailable line. (ui/src/pages/chat/components/chat-reply-attribution.ts:174, c4ab44a29772)
  • Hidden-turn and navigation coverage: Focused tests cover search-hidden turn boundaries, textless loaded originals, and navigation from search in read-only archives. (ui/src/pages/chat/components/chat-transcript-replies.test.ts:428, c4ab44a29772)
  • Browser entry-point coverage: The Control UI E2E scenario opens a session through a mocked Gateway, selects an explicit reply, and checks that the original is highlighted and scrolled into view. (ui/src/e2e/chat-reply-attribution.e2e.test.ts:54, c4ab44a29772)
  • Accepted presentation tradeoff: The PR body expressly chooses a name-only line; the September 30 discussion records the MEMBER author's direction to preserve it and accepts reduced in-place text context. The earlier ClawSweeper concern is therefore resolved for this design. (c4ab44a29772)
  • Inspected visual proof: The prepared before/after desktop and mobile images visibly replace quote cards with the compact author line. Their stated capture revision predates the final head; the PR separately reports later production-bundle browser interaction coverage. (1a51c06e1594)

Likely related people:

  • vyctorbrzezowski: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (42 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-28T05:16:10.538Z sha 831c4f4 :: blocked before merge. :: none
  • reviewed 2026-09-28T06:28:03.957Z sha 1a51c06 :: blocked before merge. :: none
  • reviewed 2026-09-28T07:20:57.167Z sha 9b6d51c :: needs changes before merge. :: [P2] [P2] Navigate to loaded textless reply originals | [P2] [P2] Keep reply attribution with each filtered turn
  • reviewed 2026-09-28T07:29:58.957Z sha 9b6d51c :: needs changes before merge. :: [P2] Navigate to loaded textless reply originals | [P2] Keep attribution with each filtered turn
  • reviewed 2026-09-28T18:15:37.865Z sha f8a8001 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-28T20:56:36.660Z sha 8a44ad0 :: blocked before merge. :: none
  • reviewed 2026-09-29T03:35:10.509Z sha 5650900 :: blocked before merge. :: none
  • reviewed 2026-09-30T04:59:14.341Z sha 6444a02 :: blocked before merge. :: none

@vyctorbrzezowski
vyctorbrzezowski force-pushed the feat/chat-reply-attribution-excerpt branch from c4083cf to c000a90 Compare September 17, 2026 23:44
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: XL maintainer Maintainer-authored PR labels Sep 17, 2026
@vyctorbrzezowski
vyctorbrzezowski force-pushed the feat/chat-reply-attribution-excerpt branch from c000a90 to 85c7100 Compare September 18, 2026 00:03
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Sep 18, 2026
@vyctorbrzezowski vyctorbrzezowski changed the title feat(ui): quote answered prompts in reply attributions feat(ui): unify chat reply context and participant controls Sep 18, 2026
@vyctorbrzezowski
vyctorbrzezowski force-pushed the feat/chat-reply-attribution-excerpt branch from 85c7100 to 142f260 Compare September 18, 2026 00:39
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Sep 18, 2026
@clawsweeper clawsweeper Bot removed the rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. label Sep 19, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Sep 28, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. labels Sep 28, 2026
A reply now carries one line with the author avatar and name instead of a
quoted excerpt. Assistant replies show it when they answer an older message
or when the conversation is shared; the author is never guessed, a reply to
the current message resolves only through the run it started, reserved rows
never change height, and a confirmed missing original shows Original message
unavailable. Selecting the name scrolls to the original.
vyctorbrzezowski and others added 4 commits September 28, 2026 18:45
Retain source attribution and local reply navigation through system, forwarded and search-hidden inputs. Keep projected display boundaries separate from execution ownership and preserve the existing reply-line design.

Co-authored-by: vyctorbrzezowski <[email protected]>
@roboclaw-bot

Copy link
Copy Markdown
Collaborator

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@roboclaw-bot

roboclaw-bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator

Behavioral repair verification — design retained

The paired reply-line/participant-control candidate preserves the existing name-only line, mobile footers, avatars/connectors, colors, typography and spacing. The controls now transfer directly between messages and reveal on wide no-hover touchscreens. Reply context also survives hidden/system/forwarded boundaries, and loaded sources remain navigable in read-only search.

The broad chat/library suite passed 8,064 tests; later boundary refinements passed their focused owner regressions. Production-bundle interaction/recovery coverage and the final streaming runtime budget checks pass. Both independent autoreviews are scoped-clean at P0–P2 after validating findings against the actual source and the specified design. Hosted merge gates remain separately enforced.

Same synthetic conversation, 390×1000 viewport, dark theme, fixed clock and scroll position. These captures show tapping the second participant message after the first. The only intended difference is the working disclosure; no design changes were applied. Chromium touch emulation, not native-device proof. Later refinements affect unshown search/system/forwarded boundaries, not the pictured layout or interaction.

Before

Before: tapping the second participant message hides its actions

After

After: actions transfer to the second participant message

Await the popup's opening animation before hovering its small refresh control; preserve hover, keyboard and touch assertions.

Co-authored-by: vyctorbrzezowski <[email protected]>
@roboclaw-bot

Copy link
Copy Markdown
Collaborator

The name-only reply presentation is an intentional owner decision, not an unresolved implementation finding. @vyctorbrzezowski, the author/designer of this stack, explicitly directed the current repair-and-land task to preserve this design and not change it without consulting him. The inline excerpt remains intentionally removed; the author line navigates to the original message. This accepts the reduced in-place text context in exchange for the selected compact presentation. No excerpt or footer redesign is included.

Owner-directed implementation and verification session. The PR body and documentation describe the same tradeoff.

The completed ClawSweeper review found no actionable line-level defects. Its excerpt recommendation is addressed by retaining the author’s chosen design, not by silently changing it. The separate hosted tooltip failure was reproduced as a fixture race and repaired without any production/style change; 20 stress scenarios and all 13 model-controls cases pass, and the focused autoreview is clean. Normal exact-head merge gates still apply.

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 docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Chat: reply attribution should name the user and quote the prompt being answered

2 participants