Repository navigation
Studio: accept chat videos up to 256 MB - #17400
Conversation
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. |
|
Codex Review: Didn't find any major issues. Swish! 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". |
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 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". |
Fixes #17062
Why
Chat refused any video over 64 MB, which is roughly 50 seconds of 720p. That number was picked when video input landed (#9057) so the composer, the route and the desktop reader agreed with each other. Nothing in the model path needs it:
The real ceiling is llama-server's HTTP layer, which refuses request bodies over 100 MB (
CPPHTTPLIB_PAYLOAD_MAX_LENGTHin its vendored cpp-httplib). The clip travels as base64 in JSON, so anything above about 74 MB that reaches llama-server untouched would fail there.What changes
-vf. Every refusal on this path also finalizes the API monitor entry.Nothing else in the UI or the flow moves: same attach button, same toasts, same one clip per message. Desktop drag-and-drop keeps its native reader cap (about 72 MB, shared with the video generation reference picker); the attach button in Desktop uses the webview picker and gets the new limit.
Evidence
Route functions (
_video_b64_rejection, then_shrink_clip_for_llama) on synthetic clips, main vs this branch:Video file is too large (max 64 MB).Video file is too large (max 256 MB).The synthetic clips are noise-heavy, so real footage shrinks further.
Testing
node --teston the video, native drop and reference size suites: 232 passing;tsc --noEmitcleantest_video_pr9057_simulation.py68,test_video_attachment_part.py32,test_video_chat_completions_behaviour.py80,test_llama_video_frame_budget.py41,test_llama_video_ffmpeg.py20 (2 skipped, same as main), media decode suites 54, all passingBefore / after
A 99 MiB clip attached in the chat composer (no model loaded, so only the size check runs). Before: refused with a 64MB toast. After: it sits in the composer as an attachment.