Repository navigation
Conversation
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Charge retained conversation and reject overflow src/server/chat-completions.ts, tests/responses/protocol-antigravity-direct-chat.test.ts, docs-site/src/content/docs/guides/protocol-paths.md |
The direct Chat lane charges the retained IR conversation’s UTF-8 JSON size as a request copy. A regression test checks that a 12 MiB reasoning_content value returns HTTP 413 with translation_buffer_limit and sends no upstream request. The guide documents this behavior. |
Priority:
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Merge Risk: 
Minimal · up to 1b42f
-
The direct Chat budget enforcement has no established merge-blocking risk.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passed-
Full details: Title check
-
Explanation
The title "fix(protocols): account for Antigravity direct Chat IR" names the main change: retained decoded conversation IR on the Antigravity direct Chat path is now charged against the shared translation-buffer budget. The changeset adds that charge in src/server/chat-completions.ts, documents it in the protocol-paths guide, and adds a regression test for the 413 translation_buffer_limit refusal. The title is specific and concise, and it uses the same terms as the objectives. It is somewhat terse, since "account for" does not say that over-budget requests are refused with HTTP 413, but that detail is not required in a title.
-
Full details: Docstring Coverage
-
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 2 files. (1 skipped: 1 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
|
✅ Deterministic PR hygiene checks passed. |
Ingwannu
left a comment
There was a problem hiding this comment.
Reviewed the complete three-file diff at 1b42fc6c577c04ee9752c471b4f3d4ac79f92520. Independent official Bun 1.4.4 run with matching frozen dependencies/private homes and cgroup caps: bun test --isolate tests/responses/protocol-antigravity-direct-chat.test.ts -> 16 pass, 0 fail, 153 assertions. The new oversized reasoning case returns 413 translation_buffer_limit with zero upstream sends; the existing direct/bridge Chat response and policy controls also pass.
The direct conversation is retained outside the settings-only core projection, so charging it separately closes the accounting gap without changing routing. This measures retained serialized IR after decoding; it is not a pre-allocation or total-heap ceiling, and the updated public contract does not claim one. Existing shared budget ownership/finalization stays in place.
Exact-head Cross-platform CI 40193487288, Typecheck and docs-site build succeeded; current review threads were empty and no maintainer objection was present. The focused regression file was used under the documented resource exception rather than repeating the full local suite; hosted CI supplies broader evidence. No real Google account, model request or Codex Security scan was used.
|
Maintainer dev integration record (release 2.93 dev-merge loop).
|
Summary
Charge retained conversation IR to the shared translation-buffer budget on the Antigravity direct Chat Completions path. Previously, the settings-only projection omitted this retained conversation from hard accounting, including reasoning data that expands during decoding.
Over-budget requests now receive HTTP 413 with
translation_buffer_limitbefore adapter dispatch. The normal direct and bridge flows, budget disposal and refusal logging keep their existing contracts. This measures retained serialized bytes after decoding; it does not claim to prevent the initial decode allocation or impose a heap-size cap.The protocol guide documents the direct Chat rejection.
Verification
Candidate:
1b42fc6c577c04ee9752c471b4f3d4ac79f92520, a normal integration with dev8ebe46b2. Runtime and test runner are Bun 1.4.4.The full local suite has not been rerun during the shared Windows validation queue; focused behavior checks are mandatory and broader platform coverage remains with CI. No real provider requests, installed application, account, certificate trust store or global configuration were changed.
Checklist
Summary by CodeRabbit