Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Repository: luvs01/opencodex/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 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 |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
✅ Deterministic PR hygiene checks passed. |
|
Consolidated into lidge-jun#5533 as a single related-function aggregate. Source head: Source and carried commit 799ebc5 have identical stable Git patch IDs; original author and cherry-pick provenance are retained. Combined-head focused tests: 141 passed / 648 assertions, plus typecheck, structure and file-size checks. POSIX branches, full suite and hosted cross-platform CI remain unverified. Maintainer-owned lidge-jun#5507 is independent and was not changed or placed into a dependent chain. Closing this duplicate standalone review entry at the author's request after verifying migration. This is not a merge or release claim; remaining integration checks and reviews are tracked on the draft replacement. Original branches are retained. |
Motivation
[TOOL_CALL]...markers were retained inbufferedTextToolCallswithout charging the translator budget, allowing an upstream Cursor provider to accumulate many large argument strings beforefinalizeTurnEventsenforced limits.Description
mapCursorProtobufServerMessageby opening a synthetic call id, reserving transienttool_argsbytes, and committing the reservation before pushing intobufferedTextToolCalls(seesrc/adapters/cursor/protobuf-events.ts).discardBufferedTextToolCallsand closing the synthetic call leases inrecordRealToolCall, the synthetic exec path, andfinalizeTurnEvents.callIdper retained entry so reservations map to the normal translator accounting, and adjust promotion to use the retainedcallIdduringrecordToolCall/commitToolCallpaths.structure/providers/cursor.mdto document the budget behavior.Testing
bun test tests/providers/cursor/cursor-protobuf-events.test.ts, which passed63/63tests after the change.bun run typecheck,bun run structure:check, andbun run privacy:scan, all of which completed successfully for the modified code.bun run testwas exercised but encountered existing, unrelated environment/concurrency failures in other suites; the focused Cursor coverage and privacy/type checks that verify this change passed.Codex Task