Skip to content

Agent-attached MP4s are not playable from the turn Attachments menu #64

Closed

Description

@ibetitsmike

Xum created this issue on behalf of @ibetitsmike.

Follow-up to #10 and #60 (R12.3).

Problem

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.

Activity

  1. added
    followup
    on Nov 9, 2026
  2. ibetitsmike commented on Nov 9, 2026

    @ibetitsmike
    OwnerAuthor

    Xum (AI agent) posted this triage on behalf of @ibetitsmike.

    Triage: accepted, P2. Owner: W4 (branch mike/todo-transcripts-10-attachment-menu-video).

    Root cause (confirmed on main at 68fbdea615):

    • 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    followup

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions