You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Agent-attached MP4s are not playable from the turn Attachments menu #64
With fork-chat-todos on, an MP4 that the agent attaches with attach_file is not playable from the default chat view. It shows only as a download card ("MP4 review-smoke.mp4, Download file") in the turn's Attachments menu in the action bar. The inline player from #60 appears only after the user expands the turn's "Worked for … (N steps)" list.
Upstream coder#31145 (TurnAttachments, 2026-10-29) moves a turn's agent files into the action bar menu. While steps are collapsed, ConversationTimeline drops assistant rows that hold only files (isAgentAttachmentOnlyRow in workingBlockGrouping.ts). ForkAttachmentPreview from #60 wraps only the inline file block in MessageBlocks.tsx, so the menu never uses it. #60's UAT seeded the assistant file part directly in the database instead of going through attach_file, so it took the inline path and missed this.
Evidence
Smoke test on the daily server at 68fbdea615 (2026-11-09, fork experiments on), with a real attach_file call on a 1.5 MB MP4:
Collapsed view: 0 figures and 0 videos on the page. The Attachments menu lists the MP4 as a download card.
Expanded step list: the review-smoke.mp4 figure renders, and "Play review-smoke.mp4" opens "Recording playback" and plays the file. Every fetch gets 206.
Acceptance
With fork-chat-todos on, an agent-attached video/mp4 in the Attachments menu can be played from there without expanding the steps, the same way raster images get thumbnails and previews.
An expired MP4 still shows the upstream expired state.
With fork-chat-todos off, the Attachments menu matches upstream.
ForkAttachmentPreview has one production call site, the inline file block in MessageBlocks.tsx:274.
In TurnAttachments.tsx, AttachmentThumbnail previews only raster images (isRasterImageMediaType, line 48). Every other type gets the icon and download card.
ConversationTimeline.tsx:692 hides attachment-only rows while steps are collapsed.
Impact: every MP4 attached with attach_file is affected in the default collapsed view, so the #60 playback is effectively hidden. Expanding the steps is a workaround and nothing is lost, so this is P2 and not a blocker.
Fix:
Add one fork hook in AttachmentThumbnail that wraps or routes video/mp4 through ForkAttachmentPreview when fork-chat-todos is on, in the same pattern as MessageBlocks.tsx, so the upstream file diff stays small.
Expired files keep the upstream expired state. With the flag off, the menu matches upstream.
Extend the existing Vitest coverage with userEvent for three cases: flag on (the MP4 opens playback from the menu), expired, and flag off.
Run UAT with a real attach_file call, not a database-seeded file part.
Activity
ibetitsmike commentedon Nov 9, 2026
Triage: accepted, P2. Owner: W4 (branch
mike/todo-transcripts-10-attachment-menu-video).Root cause (confirmed on
mainat68fbdea615):ForkAttachmentPreviewhas one production call site, the inline file block inMessageBlocks.tsx:274.TurnAttachments.tsx,AttachmentThumbnailpreviews only raster images (isRasterImageMediaType, line 48). Every other type gets the icon and download card.ConversationTimeline.tsx:692hides attachment-only rows while steps are collapsed.Impact: every MP4 attached with
attach_fileis affected in the default collapsed view, so the #60 playback is effectively hidden. Expanding the steps is a workaround and nothing is lost, so this is P2 and not a blocker.Fix:
AttachmentThumbnailthat wraps or routesvideo/mp4throughForkAttachmentPreviewwhenfork-chat-todosis on, in the same pattern asMessageBlocks.tsx, so the upstream file diff stays small.userEventfor three cases: flag on (the MP4 opens playback from the menu), expired, and flag off.attach_filecall, not a database-seeded file part.