Repository navigation
Conversation
|
Caution Review failedThe pull request is closed. Finishing Touches
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 |
|
✅ Deterministic PR hygiene checks passed. |
⏳ DRAFT
What to do
Review readiness checklist
0/4 boxes ticked. Automatic draft conversion failed. Please convert this pull request to a draft manually until every box above is ticked. Hygiene✅ Deterministic PR hygiene checks passed. |
|
Maintainer triage (2026-10-28, against dev e1976da): The canonical apply_patch progress improvement is still needed: dev continues buffering this case at The remaining work is small enough for a maintainer carry:
No additional feature work is requested from you. A maintainer can carry these integration fixes with your authorship credit preserved, then obtain current-head PR CI. The later failed workflow records have no executed jobs, so their cause remains unestablished; the earlier green run alone does not establish readiness. |
Rebased onto current dev as one commit (lidge-jun#7506); the transport inventory row keeps dev's new rows and takes this change's preview wording. Co-authored-by: JUN <243035832+lidge-jun@users.noreply.github.com>
0d286e5 to
e637125
Compare
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. |
|
Maintainer integration into
Thank you @Platinum-Scripts. |
Summary
Routed
apply_patchinput on the native Responses compatibility path stays buffered until completion even after the exact canonical opening marker has arrived. The same guard covers patch delimiters that completion may repair, so a valid canonical patch appears silent while its body is generated.Stream only completion-stable prefixes once the canonical LF/CRLF opening is resolved. Hold ambiguous/decorated openings and potentially rewritable closing decorations; keep exec/helper retarget buffering unchanged. Validate published progress against repaired authoritative input before executable completion. A malformed wrapper that would rewrite the published prefix fails through the existing failed-terminal path and releases retained state.
Valid completion bytes, tool identities, execution timing and tool-result replay are unchanged. This improves visible delivery of already-generated input; it does not claim faster provider decoding.
This draft replaced #7460 to move the contribution head to Platinum-Scripts.
Verification
Author validation (earlier heads):
OCX_TEST_RUNNER_BUN=... bun run test:changed— 31,233 passed, 37 skipped, 0 failed across 1,346 selected files, 695,961 assertions. Full 2,515-file suite was not run; the import-graph selection covers the changed runtime modules, with explicit eager-relay and malformed-wrapper regressions.response.failed, with no executable input.done/item.done/completed, when repaired input disagrees with an already-published prefix.apply_patchvia the existing grammar compatibility wrapper reaches the client before provider completion, then replays the exact real tool result on turn two. The baseline first-input gate times out. This is a local protocol test, not a live-provider TTFT benchmark.dev1202598; the first current-headtest:changedrun had 31,730 passes, 37 skips and one 5-second timeout in the compaction-override suite. That entire file then passed in isolation (73 tests, 740 assertions). The broad rerun without concurrent builds passed: 31,731 passed, 37 skipped, zero failed across 1,361 files (672,877 assertions, 280.6 seconds). The earlier timeout remains disclosed. Typecheck/privacy scan pass. Structure check passes after keeping the mapped wire document within its existing line budget. No gate limits or suppressions changed.Maintainer carry (2026-10-28): the branch was 227 commits behind
devand conflicted instructure/transports/inventory.md. It was rebased onto currentdevas one commit (e637125ee, original authorship kept); the inventory keeps dev's two new rows and takes this change's "Responses custom-tool preview" wording. The diff is unchanged otherwise (9 files, +278/-19). NOT RUN locally on the rebased head: the focused apply-patch/custom-tool/eager-relay files and typecheck (the shared test lock was held by another run); PR CI on this head (gates, typecheck, test changed) is the validation of record.Checklist
structure/transports/).Review readiness checklist
This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:
Required local validation passed; commands, results, and any full-suite exception are documented.
I pushed my PR to a recent dev commit (at most 10 behind; a maintainer may still ask for the exact tip before merge).
I resolved all correct Codex and CodeRabbit findings.
My PR is ready for review.