Repository navigation
feat(ui): expand video attachments in the media overlay - #132131
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: found issues before merge. Reviewed August 28, 2026, 5:47 PM ET / 21:47 UTC. ClawSweeper reviewWhat this changesThe PR changes Control UI chat so a playable video attachment’s Expand action opens the shared media overlay with native video controls instead of the Files panel. Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readinessThis PR remains necessary but is not ready to merge: its new video-overlay action silently fails for supported base64 video attachments. The author is a repository member and the PR has a protected maintainer label, so it stays open for explicit maintainer handling. Priority: P2 Review scores
Verification
How this fits togetherControl UI chat renders playable attachment cards and sends their Expand action to page-level overlay state. That state validates the selected source before the shared media overlay renders image or video content. flowchart LR
A[Playable video attachment] --> B[Attachment card]
B --> C[Expand action]
C --> D[Chat overlay state]
D --> E[URL safety validation]
E --> F[Shared media overlay]
F --> G[Native video controls]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +57, Tests +56. Total +113 across 8 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one shared overlay, but make its page-owned validation explicitly accept only the already-supported, strictly base64-validated video data subset and add a callback-to-state regression test. Do we have a high-confidence way to reproduce the issue? Yes, by source: invoke Expand for data:video/mp4;base64,AAAA, which the attachment layer accepts but the overlay state rejects as a non-image data URL. Is this the best way to solve the issue? No: reusing the shared overlay is the right design, but the patch does not carry its accepted video-source contract through the page-owned safety boundary. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5b605da38946. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
6c1c8c5 to
06379c4
Compare
|
Review follow-up:
The new overlay item is local to Control UI. TUI, channels, transcript announcements, and history/replay consume the canonical attachment envelope rather than this local presentation state, so no sibling change is required there. Named follow-up: an overlay that remains open across a later media-ticket rotation does not yet hot-swap its source. That is a separate source-lifecycle change from this PR's approved Expand behavior. |
|
Merged via squash. Playable Control UI video attachments now expand in the shared media overlay with the canonical ready playback source. Inline playback pauses before the overlay opens, native controls remain keyboard-accessible, strict base64 video is accepted, and unavailable media retains the Files fallback.
Proof: the complete exact-head CI suite passed at the prepared head, and the PR body retains inspected light/dark Control UI evidence. Closes #132130 completed the associated issue. |
Closes #132130
What Changes
Why
Video is visual transcript media, so its Expand action should preserve chat context like image expansion does. The playback owner must still select and prepare the usable source before the overlay opens.
User Impact
Users can expand a ready video directly over the chat, watch it with native controls, and close the overlay to return to the unchanged transcript. Preparing video does not expose a dead action, and unavailable video retains its previous Files behavior.
Evidence
Exact-head CI is green at
4de71f9af50ea7f5afe07d63b5e1b9098b1b9e69. Regression coverage exercises base64 video from Expand through page-owned overlay state, transcode readiness, inline pause, unavailable fallback, original-file routing, and keyboard focus order.The visual proof below used a real Control UI flow with a Gateway fixture and a locally generated 8-second 1280x720 synthetic MP4. Both themes were exercised, and overlay captures were taken only after playback was active and
currentTime > 0.mainExpand behaviorSynthetic source clip used by the browser flow:
openclaw-video-demo.mp4
Visual proof was captured at
6c1c8c51c2a65809574e15b485463aa7e4e34e67; subsequent exact-head changes preserve the approved presentation and repair playback, validation, fallback, and focus ownership. Local tests and builds were not run for this closeout; the complete GitHub CI suite validated the exact head.Follow-up
An overlay that remains open beyond a later media-ticket renewal still holds the source selected when it opened. Keeping an already-open overlay synchronized with future ticket rotations is a separate source-lifecycle change and is not required for the approved Expand behavior.