fix(daemon): answer a named missing session on the session, not the device
Merged
TH
1mo ago+1350+1350+0123456789012345678901234567890123456789-86-86-01234567890123456789
Summary
Closes #3674. Across 37 files, explicitly named missing sessions return SESSION_NOT_FOUND before unconstrained device selection. Explicit targets and intentional sessionless commands remain valid. Recording recovery uses the durable manifest identity and preserves request scope.
Examples: snapshot --session missing refuses before resolution; record stop --session qa --ios-simulator-device-set <set> recovers the manifest recording after daemon replacement.
Validation
Published and reviewed head: 3c99486b390eaeb2e67f8475106b13eea544f439, rebased onto bb05c630252e227b851d3eca333d2f4634be3176. Mergeable, zero unresolved threads; readiness label present. CI: 20 successful checks, two skips; iOS Smoke Tests still running.
- Direct
pnpm check:affected --runJSON invocation at this head passed:run-88woKI, exit 0,exactCommit: true, unchanged clean tree; 36 passed, 25 reasoned skips, two deduplicated, none failed or unexecuted. Finished 07:45:13 UTC. - Fresh full-access review found no blocking code issues. Independent focused experiments used
npx; execution overlap and coverage limits are retained separately from the passing PNPM gate. - Historical
9295e1b1gate timeouts remain unexplained. The current aggregate receipt cannot establish whether those individual tests were selected; focused passes do not establish cause. - Maintainer accepted the 9295 live proof, including scoped-set recovery, typed takeover refusal, raw outputs and owned cleanup. No new device run is claimed after rebase.
- Whitespace-selector finding remains nonblocking and deferred; lease-backed and web live recovery remain untested.