Repository navigation
feat(core): turn on video generation by default - #65664
Conversation
There was a problem hiding this comment.
Looks good. The tool now registers whenever a video model is available and is turned off with experimental.video_generate: false. This matches how image_generate already works, and the plugin code mirrors image-generate.ts. I checked it by running the new core test on the base with the flag off, where it fails, and on this branch, where it passes. The core flag, media and image tests and the server video route test also pass.
Public API impact:
- HTTP API / OpenAPI / client:
POST /api/experimental/generate/videoandGET /api/experimental/generate/video/:idno longer return 403ForbiddenError, and their descriptions drop the flag note. The routes are open in every build. This is backwards compatible for callers. - Flags:
video_generateis removed from the flag registry.OPENCODE_FLAGS=video_generateis now an unknown flag and is ignored. - Config:
experimental.video_generatekeeps its shape (boolean | { model }) but now means on by default, withfalseturning it off. Existing configs still validate. - Flag resolution: an object value no longer turns a flag on. No remaining flag takes an object, so nothing breaks.
One thing to be aware of: experimental.video_generate: false only hides the agent tool. The HTTP video routes still accept requests. That seems intended, since the routes stay experimental, but it's worth knowing.
There was a problem hiding this comment.
The new commit only changes wording: the code comment and the experimental.video_generate config description now match image generation. Nothing in how the code runs changed, and the video tool tests still pass. The public API impact is the same as in my earlier review, and I have no new concerns.
There was a problem hiding this comment.
The new commit only updates location-layer.test.ts so it expects the video tool wherever the bundled catalog has a video model, the same way it handles image generation. It passes locally. No production code changed, the public API impact is the same as in my earlier review, and I have no new concerns.
Issue for this PR
No linked issue.
Type of change
What does this PR do?
Video generation is now on by default in every build, the same way image generation already works. I deleted the
video_generateflag and every check that read it. It never shipped in a release, so there are no release users who depend on the flag.experimental.video_generate: falseturns it off, the same asexperimental.image_generate: false.experimental.video_generate: { model }still sets the default model./api/experimental/generate/videoroutes no longer check the flag. They stay experimental. I removed their 403 response and the "Behind the video_generate flag" note from the docs, and regenerated the OpenAPI document and the client.The tool still asks permission before every generation, the same as before.
How did you verify your code works?
experimental.video_generate: false, and comes back with{}.bun run script/test.tsin core for the video, image, media target environment and flag tests, plustest/config: all pass.packages/servertest/video-generate.test.tspasses without the flag. I removed the test for the 403 response.packages/protocoltests andcheck:generatedpass.bun run checkpasses.Screenshots / recordings
Not a UI change.
Checklist
Added by the opencode bot (AI-generated).
Public API: removes the video_generate flag and the 403 from the experimental video routes; experimental.video_generate now defaults on (backwards compatible)