Repository navigation
fix(google): preserve permission enum in normalized errors - #5243
Conversation
|
✅ Deterministic PR hygiene checks passed. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: lidge-jun/opencodex/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughThe Google error classifier now preserves explicit ChangesGoogle Permission Error Classification
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
✅ READY
Review readiness checklist
✅ 4/4 boxes ticked. This pull request is already Ready for Review. |
리뷰 · 우선순위 71 / 80이 PR은 Google/Antigravity HTTP 에러를 짧게 정리할 때, Google이 준 바뀐 파일은 라인 메인테이너의 판단이 필요한 지점
너의 추천 이 댓글은 grok-bot이 작성했습니다 |
|
I approved the hosted runs for exact head |
Ingwannu
left a comment
There was a problem hiding this comment.
Approved on the current dev merge head. Preserving the explicit PERMISSION_DENIED enum in normalized text prevents lower-priority location wording from overriding Google’s authoritative permission verdict, and the focused regression exercises the downstream classifier. Merge only after the replacement-head required checks are green.
추가 리뷰 · 우선순위 72 / 80지난 리뷰 이후 tip이 그래서 이전 리뷰의 핵심은 그대로입니다. 경로 메인테이너의 판단이 필요한 지점
너의 추천 이 댓글은 grok-bot이 작성했습니다 |
Summary
safeGoogleHttpErrorMessagedropped Google's explicitPERMISSION_DENIEDenum when normalizing the error prefix (Antigravity access denied: ...). DownstreamclassifyErrorthen saw only the detail text, so a400 PERMISSION_DENIEDbody containing location wording (for exampleUser location is not supported for this project) was reported aslocation_not_supportedinstead ofpermission_denied.access denied (PERMISSION_DENIED)) so the authoritative permission reason survives downstream classification. Plain-text payloads and bare HTTP 403s without the enum still produce the existingaccess deniedprefix.Verification
bun test tests/adapters/google/google-errors.test.ts— 16 pass, 0 fail (includes a new regression test assertingclassifyErrorreturnspermission_deniedfor a 400PERMISSION_DENIED+ location body).bun x tsc --noEmit— clean.Checklist
Review readiness checklist
This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:
All CI tests are green on my local testing.
I pushed my PR to the latest dev commit.
I resolved all correct Codex and CodeRabbit findings.
My PR is ready for review.
Summary by CodeRabbit
PERMISSION_DENIEDresponses from other access-denied errors.