Repository navigation
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review: 2
Please check the settings in the CodeRabbit UI or the
|
|
✅ Deterministic PR hygiene checks passed. |
✅ READY
Review readiness checklist
✅ 4/4 boxes ticked. This pull request is already Ready for Review. Hygiene✅ Deterministic PR hygiene checks passed. |
|
Thank you — this HTTP regression is carried into #8569 (merged as 180ecc7), ported to the new async probe API in Co-authored-by: seedds [email protected] |
Summary
codex/fix-8161-keychain-no-kill). That parent contains the asynchronous, metadata-only Keychain fix; this PR adds the HTTP regression coverage for the false-offline symptom. Related to [Bug][macOS] Killing a blockedsecurityKeychain read after 5s crashes securityd and causes an endless login-keychain prompt loop #8161.GET /api/claude-code, and verify that an independent client receives200from/healthzbefore the observation is released. Cover both an absent item and the observation deadline, including unknown-versus-absent classification.The motivating macOS incident had successful inference while local
/healthzresponses took 0.9–6 seconds and quota CLI commands reported that the proxy was not running. Profiling identified synchronoussecurity find-generic-passwordin the Claude settings GET handler. Increasing the CLI probe deadline did not address that serving-thread blockage. The production fix is already carried by the parent PR rather than duplicated here.Verification
Bun 1.4.4 on macOS:
bun test tests/claude-integration/claude-management-api.test.ts tests/claude-integration/claude-auth-detect.test.ts tests/oauth/claude-keychain.test.ts— 95 passed, 0 failed, including both new HTTP cases.bun scripts/test.ts --changed=HEAD --parallel=1— 61 passed, 0 failed; run before committing, whileHEADwas the parent tipfcd8755932f867180fafec9b93afea38be22829dand the regression test was the only working-tree change.bun run typecheck— passed, no errors in 2,337 files.bun run privacy:scan— passed.bun run structure:check— passed.bun test tests/test-layout.test.ts tests/ci-workflows/file-size-ratchet.test.ts— passed.probeimplementation. The new absent-item HTTP case failed on its independent/healthzrequest deadline. Restored the production source afterwards; this PR changes no runtime files.The full suite was not run: this is a test-only stacked change on a shared Mac with concurrent workloads. Focused HTTP/authentication/Keychain coverage, changed-test selection, typechecking and repository guards were run instead. Broader parent validation and Linux/Windows execution remain for the parent PR and CI. No workflow dispatch was requested.
Checklist
This is a stacked child of the still-draft #8337. Retarget to
devafter the parent lands; keep the parent's independent technical/security review separate from this regression coverage.Review readiness checklist
Review is requested for this test-only stacked child on the current #8337 head. The upstream stacked-base exception applies; this does not claim the parent is up to date with dev. The parent’s integration and independent security review remain prerequisites to landing. The test workflow awaits maintainer approval; no jobs have started.
Ready for technical review at the author’s explicit request. Automated review is requested by leaving draft; this is not an attestation of completed maintainer/security review or passing GitHub CI. All merge requirements remain in force.