Repository navigation
fix(nova): preserve packed local context within CLI bridge limits - #365
Merged
Merged
Conversation
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
vercel
Bot
temporarily deployed
to
Preview – vercel-supercodeai-integration
November 19, 2026 14:00
Inactive
|
Caution CodeRabbit couldn't post its review summary. Error details
|
This branch was successfully 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.
Nova accepts local attachments up to 120,000 characters per file, then combines their contents into one user message. The CLI bridge rejects messages over 200,000 characters. Two individually valid local files reproduce HTTP 400 against the current protocol even when the deployed versions match.
Split oversized message content before sending it to the bridge, preserving roles, order, Unicode, and every source character. Keep the CLI schema limits unchanged, and explicitly reject conversations that exceed the 100-message limit rather than dropping context. HTTP 400 no longer incorrectly asserts that versions must be mismatched.
A regression uses the actual attachment schema, CLI protocol validator, and worker-process bridge fixture to verify that packed local sources reach inference intact. Additional cases cover Unicode boundaries and message-count overflow.
Validation: 21 focused bridge/worker tests pass, along with web TypeScript, scoped ESLint, and
git diff --check. The broader existingagent.test.tssuite has 12 failures; the same 12 were reproduced with the unmodifiedorigin/mainbridge and were not weakened or changed. No production request body or provider credentials were accessed, so this fixes a reproduced contract defect rather than claiming the exact production payload was inspected.