Repository navigation
fix(claude): eliminate intercept integration port reservation race - #7174
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: true
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. |
|
Maintainer integration into
|
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
claude-intercept-integration.test.ts: the public listener and real CONNECT proxies now bind directly on kernel-assigned ports. Forward the existing runtime binder seam throughStartServerDepsinstead of probing ports or mocking the transport.port_in_useand leaves settings bytes unchanged.test 1/4in run 38698256962, reported on unrelated carry PR fix(claude): verify Desktop backup and optional metadata reads (carry #7084) #7129. No existing fix found onorigin/dev(7640a942b) or the inspected open PRs; no matching failure in the other nine recent failed CI runs. The failing test itself usedsrc/server/ports.ts, not a shared test helper. Shared helpers were inspected; unrelated reserve-ingress fixtures are outside this patch.Verification
EADDRINUSEand no intercept state; the default-binder regression failed because settings were rewritten despite the collision.bun test tests/server/claude-intercept-integration.test.ts tests/claude-integration/claude-intercept-on-demand.test.ts: 18 pass, 0 fail.bun test tests/server/claude-intercept-integration.test.ts, repeated in 20 fresh processes: 20/20 pass. Four further instances ran concurrently withbun test tests/server/ports.test.ts tests/server/startup-prompt.test.ts: all passed (28 neighboring tests).bun test tests/claude-integration/claude-intercept-settings.test.ts tests/claude-integration/claude-intercept-proxy-auth.test.ts tests/test-layout.test.ts tests/test-layout-tooling.test.ts: 64 pass, 0 fail.bun test tests/ci-workflows/file-size-ratchet.test.ts: 9 pass, 0 fail.bun run typecheck,bun run privacy:scan,bun run structure:check, andgit diff --check: passed.cd docs-site && bun install --frozen-lockfile && bun run build: passed; 577 pages and 81,200 internal links checked.bun run test:changedinitially queued behind another worktree's shared user lock. Restarted only this lane's waiter asOCX_TEST_NO_QUEUE=1 bun run test:changed: 8,048 pass, 32 skip, 0 fail across 350 files (exit 0, 93.9 seconds).bun run testdeferred due concurrent worktree resource contention. Focused regressions and stress checks passed; remaining broad Linux/macOS/Windows coverage is assigned to manualci.ymlwithlane=all. Manual lane=all run 38722308331 was dispatched on exact heade6cb171c9667b408dcd629e1842b3ba119be91e5and is queued. PR remains draft pending broader exact-head evidence; no unrun suite is claimed as passing.Checklist