perf: expect the persistent session on Android snapshot-raw
Merged
TH
14h ago+20+20+01234567890123456789-3-3-0123456789
Summary
Applies the two non-blocking notes left on #3902 (4 files, no capture behavior change):
heavy-feed/snapshot-rawon Android now expects thepersistent-sessiontransport. A night where the helper session stays off fails that step asexpectation_failedinstead of mixing one-shot timings into the baseline. The step keeps its depth expectation. The README states the contract.captureAndroidUiHierarchyFromHelperno longer assignssessionCapturetwice. The timer callback assignment stays, because the data thunk reads it when the timer settles. The recordedtransportandansweredfields are unchanged.
Follow-up to #3902.
Validation
Tested at the head SHA.
vitest run scripts/perf: 46/46 passed. The new suite test fails when thesuite.tschange is reverted.vitest run packages/platform-android/src/__tests__/snapshot: 22 files, 190 tests passed, includingsnapshot-helper-capture-timers.test.ts.pnpm typecheck,pnpm format: clean.pnpm check:affected --run --head <head>: passed,exactCommit: true. The first run hit an unrelatedENOTEMPTYtemp-dir cleanup race indaemon-client-abort.test.ts. That file passes alone, and the re-run passed.- No device run, because capture behavior is unchanged. CI owns the device lanes.
🤖 Generated with Claude Code