Repository navigation
Conversation
🚀 Deploying Preview to Cloudflare 🚀Preview URL: https://fix-security-cached-input-cap-void-cloud.voidzero-docs.workers.dev (commit 889b8bb)This URL reflects your latest Preview deploymentPreview Deployments by commit
|
hyfdev
marked this pull request as ready for review
November 29, 2026 04:36
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
Member
|
imho we should keep maxInputTokens as a token count and give scans a separate spend limit that accounts for the cache discount. Also can we add a check for whether it can afford the next call? |
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.
A full security scan with the default model and limits can stop as
incomplete(token_cap) long before it reaches the $0.50 that Void says it can cost.Cached input now counts toward the scan's input token limit at its cached price instead of in full.
Both scans in #966 stopped at that limit:
maxInputTokensScans with a lot of cached input can now run longer and cost more, as in these four calls on the default model and limits, with mocked replies:
As before, the limit is only checked before each call, so the last one can take a scan past $0.50.
With the default model's 1,048,576-token context, the most a scan's model calls can cost is still this, if they run one at a time and report their usage:
tokensInin the operator API still shows every token, so it can now go well pastmaxInputTokens.1.12.0 to 1.12.2 ignore the new
security_scanscolumn, so they're listed as safe to upgrade from or roll back to.Part of #966.