Based on consolidated PR review, address the following in Copilot Test Infrastructure:
fake-copilot.mjs fixture entirely absent (FR-4): The spec requires src/__tests__/fixtures/fake-copilot.mjs covering five scenarios (golden-path, stall, ignore-sigterm, nonzero-exit, permission-request), consuming ACP JSON-RPC from stdin and producing ACP-compliant NDJSON on stdout. This file does not appear in the PR. CliProcess.copilot.test.ts (FR-5) injects fake-copilot.mjs into PATH in beforeAll, but the fixture it depends on is never created — making the entire offline Copilot test suite non-functional as committed.
- Module-level copilot auth check swallows all error types as "not authenticated": At
/workspace/src/__tests__/live/copilot.live.test.ts:15-23, the auth probe treats ANY error (crash, timeout, rate limit, parse error) as "not authenticated" and silently skips the entire test suite. Developers seeing "6 skipped" cannot distinguish missing copilot from broken auth, CLI crashes, or rate limits. Should log the actual error when the auth check fails.
Created by PR Review Stage - Consolidation Phase
Concurrent Fix Issues (Same Review Cycle)
The following issues are being fixed simultaneously in this review cycle. Check these issues for any files they modify before making your own changes to avoid introducing conflicts:
Based on consolidated PR review, address the following in Copilot Test Infrastructure:
fake-copilot.mjsfixture entirely absent (FR-4): The spec requiressrc/__tests__/fixtures/fake-copilot.mjscovering five scenarios (golden-path,stall,ignore-sigterm,nonzero-exit,permission-request), consuming ACP JSON-RPC from stdin and producing ACP-compliant NDJSON on stdout. This file does not appear in the PR.CliProcess.copilot.test.ts(FR-5) injectsfake-copilot.mjsinto PATH inbeforeAll, but the fixture it depends on is never created — making the entire offline Copilot test suite non-functional as committed./workspace/src/__tests__/live/copilot.live.test.ts:15-23, the auth probe treats ANY error (crash, timeout, rate limit, parse error) as "not authenticated" and silently skips the entire test suite. Developers seeing "6 skipped" cannot distinguish missing copilot from broken auth, CLI crashes, or rate limits. Should log the actual error when the auth check fails.Created by PR Review Stage - Consolidation Phase
Concurrent Fix Issues (Same Review Cycle)
The following issues are being fixed simultaneously in this review cycle. Check these issues for any files they modify before making your own changes to avoid introducing conflicts: