Repository navigation
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
| Layer / File(s) | Summary |
|---|---|
Bounded-tail prefix detection src/responses/apply-patch-envelope.ts, tests/responses/apply-patch-envelope.test.ts |
stableCanonicalPatchPrefix accepts an optional bounded tail and openingValidated flag. It uses the tail to detect partial terminal decorations and retains opening-prefix handling when opening validation is not supplied. A test covers a canonical prefix containing a 200,000-character LF-terminated line. |
Streaming tail collection and integration src/server/responses-custom-tool-repair.ts, structure/transports/inventory.md, structure/transports/responses.md |
The streaming path retains the last 64 characters of custom-exec and routed function-argument deltas. It passes the tail to stableCanonicalPatchPrefix when the full input is unchanged, along with canonicalPatchProgress. The transport docs describe recognizing rewritable terminal decorations from a bounded suffix. |
Priority:
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Bug fix
Suggested reviewers: platinum-scripts, lidge-jun
Merge Risk: 
Minimal · previous review fec89
-
The change bounds patch-preview scanning. No material merge risk was identified.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passedFull details: Docstring Coverage
-
Explanation
Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 2 functions across 3 files. (2 skipped: 2 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches: 💡 1
-
📝 Generate docstrings: 💡
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- 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. |
|
No description provided. |
|
No description provided. |
Summary
Streamed apply_patch previews previously scanned the complete accumulated argument buffer on every delta. This bounds recognition to a rolling 64-character tail while preserving canonical and decorated delimiter semantics.
The follow-up adds four routed-stream regressions: 64 KiB LF/CRLF patches, with and without a decorated closer, split into 37-character body fragments and single-character closing-marker/newline fragments. They verify operation progress before the closer, withheld decoration, identical completion inputs, and stable call identity.
Integrated upstream dev
3cab4a74e4eec15ee5ff3bdd59dcab8ede938372without conflict. The unique upstream-relative delta is six files; GUI changes visible against the older fork dev are inherited upstream changes.Verification
bun test tests/responses/apply-patch-envelope.test.ts tests/responses/responses-custom-tool-stream-consistency.test.ts: 50 pass, 0 fail, 2,092 assertions, including all four new cases.df76e957d9b7baf602a47e7d159f0aee3f71c56f: typecheck 2,252 files, structure, privacy, and repository file-size ratchet PASS. Native Job exit, both stream EOFs, and supervisor reap confirmed.Checklist
Codex Task
Summary by CodeRabbit