Conversation
|
✅ Deterministic PR hygiene checks passed. |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 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 (3)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe intercept runtime now accepts an injectable proxy-start function for both proxy endpoints. The Claude Desktop picker route test uses that seam to bind proxy handlers on OS-assigned ports and verifies that the applied profile uses the picker proxy’s actual port. ChangesClaude picker proxy startup
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Other · Severity of issue fixed: Low Merge Risk: ⚪ Minimal · up to No actionable merge-blocking risk is identified; the change is ready for normal merge checks. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The test now binds real proxy listeners on operating-system-assigned ports. The normal startup path still uses the existing loopback proxy and authentication controls, and no new exposure was established. Use by callers outside this repository and complete security coverage remain unverified. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 66.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 2 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 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 |
리뷰 · 우선순위 36 / 80이 PR은 Claude Desktop 피커 테스트가 포트를 잠깐 열었다가 닫던 방식을 바꿉니다. 예전 테스트는 빈 포트 두 개를 찾아 연 다음 바로 닫았습니다. 닫힌 포트는 비어 있습니다. 서버는 그 다음에 TLS 리스너를 먼저 만듭니다. 그 리스너나 다른 프로세스가 방금 닫은 포트를 가져가면 피커 프록시가 열리지 않습니다. 프록시가 없으면 컨트롤러도 없습니다. 테스트가 보려던 409 대신 503이 나옵니다. #6006 CI에서 이 실패가 났습니다. 이번 코드는 서버 시작 함수에 라인 - 라인 - 메인테이너의 판단이 필요한 지점
너의 추천 라우트 테스트의 방향은 맞습니다. 45679를 커널이 골라 주는 구간 밖으로 옮기세요. 이 댓글은 grok-bot이 작성했습니다 |
|
Exact head |
|
Landed on |
Carried from lidge-jun#6015 into merge train round 3. Co-authored-by: Ingwannu <ingwannu@users.noreply.github.com>
Summary
callerAddedTrust409/trust-cleanup coverage.Closes #6014.
Why
The old fixture closed both probe sockets before runtime startup. The lifecycle creates its own ephemeral TLS listener before binding the CONNECT pair, so either that listener or another process could claim a just-released port. A picker bind failure correctly degrades to no controller and returns 503, causing the test to miss the 409 policy path it intended to prove.
Keeping reservation sockets open would block the runtime's real binds. The selected seam instead changes only the test allocation mechanism: production still calls the same factory with configured adjacent ports, while the test factory forwards the unchanged handler options to
startConnectProxy(0, ...)and keeps those actual sockets owned until normal teardown.Validation
All local commands ran sequentially in disposable homes under systemd limits (
CPUQuota=75%,MemoryMax=1536M, no swap; lighter checks atCPUQuota=50%,MemoryMax=512M):bun test tests/claude-integration/claude-desktop-picker-routes.test.ts— 9 pass, 0 fail;callerAddedTrustfailure case repeated 10 times — 10/10 pass;bun run structure:check— pass;bun run privacy:scan— pass;bun scripts/file-size-ratchet.ts— pass.No full suite, full build, or root typecheck was run locally.
Summary by CodeRabbit