Skip to content

fix(ui): simplify voice notes and recommendation cards - #154339

Merged
roboclaw-bot merged 2 commits into
mainfrom
openclaw/badge-07-recommendation-voice
Sep 21, 2026
Merged

roboclaw-bot merged 2 commits into
mainfrom
openclaw/badge-07-recommendation-voice

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #119123

What Problem This Solves

Voice notes in chat are cluttered with file metadata, incoming notes open as files instead of playing inline, and large waveform swings distract from the conversation. Recommendation descriptions also sit too far below their titles.

User Impact

Incoming and assistant voice notes now use a compact player-only row with restrained, audio-derived waveforms, play/pause, seeking, time, and mute. Voice notes no longer expand into the attachment sidebar; ordinary audio files retain their existing metadata and expansion. Unavailable audio remains explicit rather than showing a fake playable waveform.

Why This Change Was Made

Reuse the existing audio player and media lifecycle rather than introducing another renderer. Tighten recommendation subtitle spacing and refine the shared official seal without making it a button. Preserve attachment control clicks through SVG replacement so muting audio does not accidentally open the sidebar.

Evidence

  • 336 focused tests passed across audio/video players, attachment routing, media sources, message rendering, and recommendations.
  • Real Chromium mock-Gateway checks cover play/pause, mute, keyboard seeking, preparing/ready, unsupported fallback, expired-ticket recovery, desktop/mobile, dark mode, and no voice-note sidebar expansion. Original and refined UI screenshots are provided below.
  • Independent P2 autoreview completed. Its sole width concern was rejected after checking the inherited max-width: 100% and real 320px viewport geometry: incoming/assistant cards fit their 233.52px/273.59px containers with no internal overflow. The reviewer lacked the unchanged base stylesheet in its bundle; no unrelated CSS exception was added.
  • The published review identified a cross-origin unavailable-audio download that could replace the chat tab. Restored the existing target/rel navigation attributes; the regression failed before the fix and passes now. A real-browser cross-origin click opens a separate tab with no opener while preserving the chat URL. Independent P2 review of this repair is clean.
  • Targeted lint, stylesheet lint, formatting, and diff checks passed. Full UI typechecking also passes on the corrected head ee46d56 in an independently installed checkout; exact-head hosted CI must pass before landing. Browser proof uses synthetic fixtures, not a live Gateway or a cross-browser certification.

Requested and design-reviewed by @vyctorbrzezowski.

Work sessions

UI screenshots

Before

Before: incoming voice notes use file cards and assistant audio includes a file header

After

After: compact player-only voice notes and tighter recommendation spacing

Render incoming voice notes inline with calmer audio-derived waveforms and player-only controls. Preserve generic file presentation and attachment click ownership.

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

clawsweeper Bot commented Sep 21, 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 size: S maintainer Maintainer-authored PR labels Sep 21, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 21, 2026 03:04
@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: 🦐 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. labels Sep 21, 2026
@clawsweeper

clawsweeper Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 20, 2026, 11:31 PM ET / September 21, 2026, 03:31 UTC (Revision 2).

ClawSweeper review

What this changes

The PR gives voice notes compact inline players, preserves attachment-control clicks, and tightens recommendation spacing and official badges.

Merge readiness

✅ Ready for maintainer review

The prior blocking finding is resolved, and no further actionable defect was found. This remains useful work absent from current main and the latest release.

Priority: P2
Reviewed head: ee46d56af55649fbffb6fd4562bd51c5fe95f324

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused implementation with useful visual proof and the prior blocker repaired; no further correctness finding remains.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after Chromium screenshots directly demonstrate the changed player and recommendation presentation using synthetic mock-Gateway messages. The updated body additionally reports playback, seeking, recovery, and cross-origin fallback checks; those runtime results are contributor-reported, not independently rerun.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected before/after Chromium screenshots directly demonstrate the changed player and recommendation presentation using synthetic mock-Gateway messages. The updated body additionally reports playback, seeking, recovery, and cross-origin fallback checks; those runtime results are contributor-reported, not independently rerun.
Evidence reviewed 8 items Introduced change reviewed: Reviewed the pinned merge-base-to-head diff. The changes reuse the audio player and existing source-resolution path; they do not introduce configuration, persistent storage, dependency changes, or a separate playback owner. The stale test merge was not used to infer removals from main.
Previous finding resolved: The current fallback anchor includes target="_blank" and rel="noreferrer", with regression assertions for both. GitHub's exact-head commit patch confirms these were added after the earlier review. The supplied updated body and contributor comment report a real Chromium cross-origin click preserving the chat URL and opening a tab without an opener.
Inspected visual proof: Opened both prepared PNGs from the media manifest. They directly show incoming and assistant voice notes changing from metadata-heavy cards to compact players, with tighter recommendation subtitles. The supplied body reports Chromium mock-Gateway interaction checks and 336 focused tests; those executions were not repeated during this read-only review.
Findings None None.
Security None None.

How this fits together

Control UI turns message attachments and plugin recommendations into chat content. Voice-note metadata selects the existing audio player, which uses the shared media lifecycle for playback and recovery.

flowchart TD
  A[Chat message attachments] --> B{Voice note?}
  B -->|Yes| C[Compact inline player]
  B -->|No| D[Existing attachment presentation]
  C --> E[Shared media lifecycle]
  E --> F[Playback or unavailable download]
  G[Plugin recommendations] --> H[Compact recommendation card]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +49, Tests +88. Total +137 across 9 files.

View PR surface stats
Area Files Added Removed Net
Source 7 73 24 +49
Tests 2 88 0 +88
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 9 161 24 +137

Review metrics

Metric Value Why it matters
Production versus regression coverage Net production +49 lines; tests +88 lines Production growth implements the compact and unavailable voice-note states while retaining the existing playback owner.

Technical review

Best possible solution:

Keep voice-note presentation within the existing player, preserving shared media recovery and ordinary audio-file controls.

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

Not applicable to the primary presentation change: current source and inspected before/after screenshots establish the difference. The previous fallback defect is repaired in the reviewed head.

Is this the best way to solve the issue?

Yes. Extending the existing player through its voice-note marker avoids a competing renderer or configuration switch and leaves ordinary audio presentation intact.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 051563c9b242.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected before/after Chromium screenshots directly demonstrate the changed player and recommendation presentation using synthetic mock-Gateway messages. The updated body additionally reports playback, seeking, recovery, and cross-origin fallback checks; those runtime results are contributor-reported, not independently rerun.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This is a bounded chat usability improvement with a focused attachment-click repair.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster 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 before/after Chromium screenshots directly demonstrate the changed player and recommendation presentation using synthetic mock-Gateway messages. The updated body additionally reports playback, seeking, recovery, and cross-origin fallback checks; those runtime results are contributor-reported, not independently rerun.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after Chromium screenshots directly demonstrate the changed player and recommendation presentation using synthetic mock-Gateway messages. The updated body additionally reports playback, seeking, recovery, and cross-origin fallback checks; those runtime results are contributor-reported, not independently rerun.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/after Chromium screenshots directly demonstrate the changed player and recommendation presentation using synthetic mock-Gateway messages. The updated body additionally reports playback, seeking, recovery, and cross-origin fallback checks; those runtime results are contributor-reported, not independently rerun.

Evidence

What I checked:

  • Introduced change reviewed: Reviewed the pinned merge-base-to-head diff. The changes reuse the audio player and existing source-resolution path; they do not introduce configuration, persistent storage, dependency changes, or a separate playback owner. The stale test merge was not used to infer removals from main. (ui/src/pages/chat/components/chat-message-attachments.ts:453, ee46d56af556)
  • Previous finding resolved: The current fallback anchor includes target="_blank" and rel="noreferrer", with regression assertions for both. GitHub's exact-head commit patch confirms these were added after the earlier review. The supplied updated body and contributor comment report a real Chromium cross-origin click preserving the chat URL and opening a tab without an opener. (ui/src/pages/chat/components/chat-audio-player.ts:535, ee46d56af556)
  • Inspected visual proof: Opened both prepared PNGs from the media manifest. They directly show incoming and assistant voice notes changing from metadata-heavy cards to compact players, with tighter recommendation subtitles. The supplied body reports Chromium mock-Gateway interaction checks and 336 focused tests; those executions were not repeated during this read-only review.
  • Still necessary on main: The current-main audio player and attachment router have the same blobs as the pinned merge base. Main still renders voice-note headers and uses the older incoming attachment routing. (ui/src/pages/chat/components/chat-audio-player.ts:537, 051563c9b242)
  • Latest release comparison: The supplied latest release, v2026.9.5, also retains the metadata header and attachment-opening behavior; it does not already contain this compact voice-note presentation. (ui/src/pages/chat/components/chat-audio-player.ts:537, ec9c1a13db89)
  • Responsive width concern checked: The new 360px voice-note width inherits max-width: 100% and border-box sizing from the shared attachment card. This supports the supplied explanation rejecting the earlier width concern. (ui/src/styles/chat/message-layout.css:636, ee46d56af556)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; 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 (1 earlier review cycle)
  • reviewed 2026-09-21T03:11:58.032Z sha 3c6a05d :: needs changes before merge. :: [P2] Preserve the chat tab when downloading unavailable voice notes

Restore the attachment download target and noreferrer relationship on unavailable voice notes. Cover the cross-origin fallback regression.

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

Copy link
Copy Markdown
Collaborator Author

Fixed the cross-origin fallback in the latest commit: target and noreferrer now match the existing attachment download behavior. The regression failed before the fix and all 336 focused tests pass afterward. A real-browser cross-origin click opens a separate tab with no opener and leaves the chat URL unchanged; independent P2 review of the repair is clean. @clawsweeper re-review

@clawsweeper clawsweeper Bot added 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. and removed 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. labels Sep 21, 2026
@roboclaw-bot
roboclaw-bot merged commit ec84381 into main Sep 21, 2026
290 of 293 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/badge-07-recommendation-voice branch September 21, 2026 03:59
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 21, 2026
* fix(ui): simplify voice notes and recommendation cards

Render incoming voice notes inline with calmer audio-derived waveforms and player-only controls. Preserve generic file presentation and attachment click ownership.

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

* fix(ui): preserve chat when voice-note downloads open externally

Restore the attachment download target and noreferrer relationship on unavailable voice notes. Cover the cross-origin fallback regression.

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

---------

Co-authored-by: vyctorbrzezowski <[email protected]>
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 maintainer Maintainer-authored PR 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: S 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.

1 participant