Skip to content

fix(nova): preserve packed local context within CLI bridge limits - #365

Merged
yashdev9274 merged 1 commit into
mainfrom
capy/nova-local-context-bridge
Nov 19, 2026
Merged

yashdev9274 merged 1 commit into
mainfrom
capy/nova-local-context-bridge

Conversation

@yashdev9274

Copy link
Copy Markdown
Owner

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 existing agent.test.ts suite has 12 failures; the same 12 were reproduced with the unmodified origin/main bridge 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.

Open in Capy

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@vercel

vercel Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
supercli Ready Ready Preview Nov 19, 2026 2:02pm UTC
supercli-client Ready Ready Preview Nov 19, 2026 2:02pm UTC
supercli-docs Ready Ready Preview Nov 19, 2026 2:02pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
vercel-supercodeai-integration Skipped Skipped Nov 19, 2026 2:02pm UTC

@coderabbitai

coderabbitai Bot commented Nov 19, 2026

Copy link
Copy Markdown

Caution

CodeRabbit couldn't post its review summary.

Error details

HTTP/2: "GOAWAY" frame received with code 0

@yashdev9274
yashdev9274 merged commit 430a2be into main Nov 19, 2026
6 of 10 checks passed

This branch was successfully deployed

3 active and 1 inactive deployments
Preview – supercli — 9fb85989 Deployed Nov 19, 2026 by vercel[bot]
Preview – supercli-client — 9fb85989 Deployed Nov 19, 2026 by vercel[bot]
Preview – supercli-docs — 9fb85989 Deployed Nov 19, 2026 by vercel[bot]
Preview – vercel-supercodeai-integration — 9fb85989 Deployed Nov 19, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant