Skip to content

Studio: open video attachments in the browser panel - #13007

Merged
shimmyshimmer merged 2 commits into
mainfrom
studio-video-browser-tab
Oct 8, 2026
Merged

shimmyshimmer merged 2 commits into
mainfrom
studio-video-browser-tab

Conversation

@shimmyshimmer

@shimmyshimmer shimmyshimmer commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

Video attachments in chat now open as a tab in the browser panel, the same way documents and text files already do, instead of in the separate lightbox. The tab has its own player and a file toolbar built for video.

What changes

  • Opens in the browser panel: clicking a video attachment (in the composer or in a sent message) opens it as a browser tab. Images and audio keep the lightbox.
  • Player: the clip sits on a soft brand-tinted band with a custom control bar: play/pause, a scrubber, elapsed / total time, volume with mute, and fullscreen. Fullscreen takes the whole player, so the controls stay on screen.
  • More menu (⋯): playback speed (0.5x to 2x), loop, picture in picture and copy frame. Copy frame is hidden in the desktop app, whose clipboard takes no images.
  • Keyboard: Space or K to play/pause, Left/Right to seek 5s, M to mute, F for fullscreen. Space on a focused control still presses that control.
  • Video toolbar: the file name with its type and size, a Copy split button (Copy frame, Copy file name) and an Open split button (New browser tab, New chat, Save as…). In the desktop app, which can't open a new tab, the primary action reads Save as. New tabs open with the video's own type. Back/forward and Copy collapse first as the panel narrows so the name stays visible.
  • WebM duration: recorded WebM files that don't report a duration up front now show the right length and scrubber.
  • Zoom: video and audio tabs no longer offer zoom, which the players don't follow. mediaKind moved to its own media-kind.ts (re-exported from file-kind.ts) so zoom.ts can use it without pulling in the chat feature.

Testing

  • npm run typecheck
  • npm test (10,935 pass), including a test that video and audio tabs don't zoom
  • eslint on the changed files: no new findings
  • Opened MP4 and WebM attachments from the composer and from sent messages. Checked playback, seeking, speed, loop, picture in picture, copy frame, fullscreen, the keyboard shortcuts, and the toolbar at narrow panel widths.

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex security review

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-08T04:23:28.278268Z 831c722 Manual request
🔒 Security Review ✅ Completed 2026-10-08T03:52:59.006283Z 7030db9 Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: 7030db99b4

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7030db99b4

ℹ️ 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".

- Fullscreen the whole player so its controls stay on screen
- Leave Space to a focused button, and ignore keys from the portaled menu
- Open a new tab with the video's own type
- Label the desktop primary action Save as, since it can't open a tab
- Hide Copy frame where the clipboard takes no images (desktop app)
- No zoom for video and audio tabs, which the player can't follow
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: 831c722242

ℹ️ 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".

@shimmyshimmer
shimmyshimmer merged commit 9cadba1 into main Oct 8, 2026
@shimmyshimmer
shimmyshimmer deleted the studio-video-browser-tab branch October 8, 2026 05:04
danielhanchen added a commit that referenced this pull request Oct 10, 2026
…very locale (#13169)

#13009 (Downloads button in the browser panel) and #13007 (video
attachments in the browser panel) added browser.downloads.* and
browser.video.* to en only, so npm run i18n:check:strict, the Locale parity
step of Frontend CI, has failed on main with 33 missing keys in all 13
overlays. Add the 12 downloads and 21 video strings to each locale beside
browser.device, with the {name} placeholder kept in openFailed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants