Repository navigation
Preview audio and video files in the chat workspace drawer #4345
xiaoyesoso
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The chat workspace file panel added in #4284 makes it easy to inspect generated files. Small audio and video files still have to be downloaded and opened separately. Inline playback would let users quickly review a generated voice clip, recording, or short video without leaving the conversation.
Current behavior
On
mainat7167d2a2,previewKind()classifies WAV (including uppercase.WAV), MP3, MP4, and WebM asbinary, which the shared preview drawer does not render. In a direct check of the existing preview reader, a valid 16,044-byte PCM WAV could be read under the current 20 MiB binary preview limit, and was rejected under a 1 KiB test limit. This checks classification and reading, not playback in a browser.Proposed scope
Validation plan
Check classification and unchanged behavior for existing preview types. Verify playback with valid samples from both entry points, download fallback for invalid and oversized files, and cleanup when switching files or closing the drawer. Check desktop and narrow layouts and run the frontend lint and build commands.
Does this fit the workspace panel roadmap? I would be happy to implement it if the maintainers decide to track it as an issue.
All reactions