Repository navigation
fix(site/src): play agent-attached MP4s from the turn Attachments menu - #68
Conversation
…t-attached MP4s from the turn Attachments menu With fork-chat-todos on, the turn Attachments menu wraps each card in ForkAttachmentPreview, so an MP4 the agent attached with attach_file plays from the menu without expanding the turn's steps. Expired files and the flag-off menu keep the upstream cards. Closes #64
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 16b4afc36c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
@codex review |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Main moved to |
The previous reopen run (42702218061) still checked out the old test merge on |
Merge evidence for head
|
Closes #64.
With
fork-chat-todoson, an MP4 that the agent attaches withattach_fileshowed only as a download card in the turn's Attachments menu. The #60 player wrapped only the inline file block inMessageBlocks.tsx, and the timeline hides attachment-only rows while steps are collapsed, so the player was out of reach in the default view.TurnAttachmentsnow wraps each menu card inForkAttachmentPreview, the same hookMessageBlocks.tsxuses, so the upstream file diff is an import and one wrapper. The gate is unchanged: onlyvideo/mp4with a stored file and the experiment on gets the player. Expired files keep the upstream expired card, and with the experiment off the menu matches upstream.Tests
ForkAttachmentPreview.test.tsx: three Vitest +userEventcases on the menu: flag on plays the MP4 from the menu, an expired MP4 shows the upstream expired card with no playback or download, flag off keeps the upstream download link. Each case fails when its gate is broken (hook removed, expiry gate removed, experiment gate removed).ForkAttachmentPreview.stories.tsx:AttachmentsMenustory opens the menu with the MP4, since the menu's look changes.MockChatVideoAttachmentinforkChatAttachments.tsis shared by both.UAT
Dev instance at the head with
CODER_EXPERIMENTS=fork-chat-todos, a member chat with a workspace, and a realattach_filecall on a 4.5 MB MP4 (no seeded file part). With collapsed steps the page shows no inline player; the Attachments menu shows the player, and Play opens "Recording playback" and plays the file (206 range responses). With the experiment off, the menu shows the upstream "MP4 / Download file" card.