fix(responses): surface rewrite failures before tee cancellation - #3683
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks 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. |
리뷰 · 우선순위 72 / 80이 PR은 SSE rewrite가 실패했을 때 클라이언트에 에러를 보이기 전에 tee 형제 취소가 끝나길 기다리던 순서를 고칩니다. 지금 HEAD 테스트가 핵심입니다. real tee로 inspection을 열어 둔 채 rewrite 실패를 만들고, 1초 안에 A 레인에서 SSE는 모든 responses 번역 경로의 공통 껍질입니다. 여기서 hang이 나면 상류 실패가 클라이언트에 안 보이고, 위층 WS 프록시( 라인 경로 테스트 real-tee resolve/reject - inspection이 열린 동안 실패가 1초 안에 표면에 나와야 합니다. 취소 결과(성공/거부)와 클라이언트 완료를 분리한 점이 좋습니다. 경로 문서 경로 스택 - A 레인 바닥입니다. 경로 원본 경로 plan 문서 벌크 - 020_ws 등 상위 레이어 계획이 같이 들어 있지만, 이 PR 리뷰 범위는 SSE 한 줄+테스트입니다. 계획 전체가 머지 블로커는 아닙니다. 메인테이너의 판단이 필요한 지점
너의 추천 이 댓글은 grok-bot이 작성했습니다 |
|
Owner-authorized admin merge of #3683, carrying #3672 with original contributor commits and attribution preserved. Exact head: 75cf985. All functional producers in full cross-platform run https://github.com/lidge-jun/opencodex/actions/runs/33981578769 succeeded, including all Linux/macOS/Windows suite jobs, unsharded macOS control, type/privacy gates and platform smokes. Any remaining queued ci aggregation is evaluated directly by its success/skipped allowlist; no unexecuted tests or failures are bypassed. Independent implementation/security review passed. Foundation restacking preserved the complete layer diff byte-for-byte and retained original contributor commits. Child retargeting precedes auto-deletion. Final dev inclusion will be checked immediately after merge. Co-authored-by: Hako 25837994+devswha@users.noreply.github.com |
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. |
Summary
A rewrite failure currently waits for cancellation of a tee branch before reaching the client. When the inspection sibling remains open, that ordering can leave the request hanging. Surface the failure immediately while handling cancellation asynchronously; retain the original real-tee resolve/reject regressions and transport documentation from #3672.
Carries #3672 with the original author and source commit preserved. The numbered roadmap records the separately reviewed A integration layers.
Stack (merge bottom-up):
Verification
git diff --checkpassed.4b34cbb8d3f308cd2b01e8d87784c65afb50a40f, isolated remote Bun 1.3.14: 23 focused tests passed, 0 failed; typecheck passed.Checklist
Co-authored-by: Hako 25837994+devswha@users.noreply.github.com
Verification update: the additional manual full-CI run on this pre-repair head was cancelled after existing Windows shutdown-spill fixture defects were identified. Normal PR verification and captured logs are retained. A separate deterministic fixture repair will be inserted beneath the stack; required CI will be rerun on refreshed heads before admin merge. No passing full-Windows claim is made.
Current stack verification: head
75cf985ff724697a01e82e8778265c34a804e34f, basecodex/a-00-windows-fixtures. Foundation #3696 is included; all five layer diffs are byte-identical to their independently reviewed pre-foundation diffs, and original contributor commits remain ancestors. Prior focused results above are pre-restack evidence. Current-head full CI: https://github.com/lidge-jun/opencodex/actions/runs/33981578769 . Required completion is pending; admin merge remains bottom-up.Depends on #3696.