Files
claude-code/src/utils/__tests__
unraid d3b16ae040 fix: use a deadline timer for peer connects
The raw socket handoff no longer needs Socket#setTimeout; an ordinary connection deadline keeps the timeout behavior while avoiding an internal socket timeout listener that has no reliable UDS integration path to exercise.

Constraint: Keep Codecov coverage honest without adding ignore pragmas, mocks, or fallback suppression.

Rejected: c8 ignore on the timeout listener | hides the uncovered branch instead of simplifying the lifecycle.

Rejected: keep Socket#setTimeout listener | leaves a socket listener lifecycle to manage for a connect-only deadline.

Confidence: high

Scope-risk: narrow

Directive: Keep connectToPeer errors caller-owned via onSocketError and reject pre-connect failures with UdsPeerConnectionError.

Tested: bun test src/utils/__tests__/udsMessaging.test.ts src/services/AgentSummary/__tests__/agentSummary.test.ts

Tested: bunx tsc --noEmit --pretty false

Tested: bun run lint

Tested: bun test src/utils/__tests__/udsMessaging.test.ts --coverage --coverage-reporter lcov --coverage-dir coverage-uds

Tested: bun run test:all

Tested: bun test --coverage --coverage-reporter lcov --coverage-dir coverage

Tested: bun run build

Tested: bun run build:vite

Tested: bun audit

Not-tested: Manual external ACP peer runtime beyond repository tests.
2026-04-27 17:41:23 +08:00
..
2026-04-02 14:44:56 +08:00
2026-04-02 14:44:56 +08:00
2026-04-02 16:03:20 +08:00
2026-04-02 14:44:56 +08:00
2026-04-11 23:22:55 +08:00
2026-04-11 23:22:55 +08:00
2026-04-11 23:22:55 +08:00
2026-04-02 14:44:56 +08:00
2026-04-02 16:03:20 +08:00
2026-04-02 14:44:56 +08:00
2026-04-02 16:03:20 +08:00
2026-04-02 20:28:08 +08:00