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 |
|
⏳ DRAFT
What to do
Review readiness checklist
3/4 boxes ticked. This PR stays in draft until every box above is ticked. |
리뷰 · 우선순위 70 / 80이 PR은 reset-credit consume 응답이 아직 현재 테스트 라인 수동 핸들러 502 분기 - spend가 이미 올라갔을 수 있어 ambiguous 처리가 맞다. 클라이언트가 502를 “재시도 가능한 일시 오류”로만 보이면 idempotency 키 재사용 압력이 생긴다. GUI/CLI가 이 에러를 “확인 불가, 재클릭 주의”로 보여 주는지는 이 PR 밖이지만, 메인테이너가 UX 카피까지 볼지는 선택이다. 메인테이너의 판단이 필요한 지점
너의 추천 이 댓글은 grok-bot이 작성했습니다 |
…read Both consume call sites parsed the upstream answer with resp.json(), which buffers the whole body before anything checks its size. Every neighbouring reset-credit read already goes through readResetCreditJson, which short-circuits an oversized declared length, reads through the shared 64 KiB bounded reader with fatal UTF-8, and rejects a truncated or empty answer. Only these two were left unbounded. The background auto-redeemer now treats an unreadable answer the same way its sibling availability read does and raises. The manual handler marks the operation ambiguous and answers 502, because the spend may already have landed upstream while its outcome code is unreadable, and a replay of that id must never be admitted as new work.
5ba458c to
b157f78
Compare
… behavior after module split
Co-authored-by: luvs01 <27862058+luvs01@users.noreply.github.com>
0239e06 to
b5c313e
Compare
Summary
Apply the shared bounded-body reader to reset-credit consume responses, including the extracted service module. Unreadable consume outcomes remain ambiguous and cannot be treated as a fresh redeem or invented local credit change.
Current author verification
b5c313edac2fa1d6eb55027bf4a94a8ab5a88c69.34959895394completed successfully on this exact published head; the run head SHA was verified. This is hosted execution, not a claim that the full matrix was repeated locally.Review readiness checklist
The validation checkbox refers to the explicit scope above. Historical run IDs and prior local results are not represented as new-head full-suite execution.