Repository navigation
Conversation
bread-lxy
requested review from
hsliuustc0106 and
princepride
as code owners
November 24, 2026 02:37
github-actions
Bot
requested review from
FayeSpica,
Probiotics5333,
allendyu,
nikiwang-125 and
wuzhf9
November 24, 2026 02:37
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This adds cost estimates for individual actions and the project, covering image, video, speech, music and editing tools that call models. Confirmation thresholds and project caps are opt-in.
Linked issue
Fixes #188
Labels
Suggested:
type:feat,area:canvas,area:agent,area:provider.Test plan
project_spend.mjs,input_admission_review.mjsandvideo_review_regressions.mjspassed in Chinese and English. These cover spending decisions, the CLI review link, image inputs, assistant parameter rejection, video continuation and FastH3 first/last frames.Evidence that it works
With the test price set to USD 0.40 per image:
A three-image batch is quoted at USD 1.20. No model requests are sent before approval. Approval sends three requests; cancellation sends none.
With USD 1.20 already recorded against a USD 2.00 cap, one confirmation raises the cap to USD 2.40 and starts the next USD 1.20 batch.
Chinese and English confirmation-dialog screenshots attached.
Provider verification
Generation tests used local mock services through the normal HTTP adapters and project storage. No real-provider calls were made, so provider billing and live model output remain unverified.
Bilingual UI
Assisted by Codex.