perf: expect the persistent session on Android snapshot-raw

Merged
TH
14h ago
+20-3

Summary

Applies the two non-blocking notes left on #3902 (4 files, no capture behavior change):

  • heavy-feed/snapshot-raw on Android now expects the persistent-session transport. A night where the helper session stays off fails that step as expectation_failed instead of mixing one-shot timings into the baseline. The step keeps its depth expectation. The README states the contract.
  • captureAndroidUiHierarchyFromHelper no longer assigns sessionCapture twice. The timer callback assignment stays, because the data thunk reads it when the timer settles. The recorded transport and answered fields 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 the suite.ts change is reverted.
  • vitest run packages/platform-android/src/__tests__/snapshot: 22 files, 190 tests passed, including snapshot-helper-capture-timers.test.ts.
  • pnpm typecheck, pnpm format: clean.
  • pnpm check:affected --run --head <head>: passed, exactCommit: true. The first run hit an unrelated ENOTEMPTY temp-dir cleanup race in daemon-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