feat(recording): cap the touch overlay frame rate at the caller's --fps
Summary
Follow-up to #3219. record start --fps <n> now also caps the touch-overlay export: the helper renders at most min(--fps, 30) frames a second (never above the source track's rate), so a lower --fps makes record stop faster on long recordings. Without --fps, behavior is unchanged (โค30).
fps is a durable recording fact, so Apple recovery and the Android manifest keep the cap across a daemon restart. HarmonyOS is out of scope. When the export itself runs out of its 70 s budget, the overlay warning names the budget and suggests a lower --fps. A compile that ate the budget keeps the plain message.
Validation
43e7b74fb: pnpm check:affected --run passed (4,168 tests). New Apple tests cover the simctl start snapshot and finalizeAppleRecordingFromCollected. Deleting either fps spread makes them fail.
Live: dedicated iPhone 17 simulator (iOS 27.0) with isolated --state-dir, Settings, touches shown, three scrolls plus one tap, then stop. Probed with AVFoundation (AVAssetReader frame count, minFrameDuration):
$ agent-device record start /tmp/ad-fps-live-fps10.mp4 --fps 10
$ agent-device press 200 400 # plus scroll down/up x3
$ agent-device record stop --json โ success, overlayWarning: none, telemetry: scroll+tap
frames=112 duration=11.20s effective_fps=10.00 minFrameDuration=60/600
$ agent-device record start /tmp/ad-fps-live-default.mp4
$ agent-device record stop --json โ success, overlayWarning: none
frames=342 duration=11.40s effective_fps=30.00 minFrameDuration=20/600
Without scrolling, the default export came out at 15 fps. That is simctl's own source rate on a static screen, which the helper never exceeds. Not run: Android emulator, physical iOS.
๐ค Generated with Claude Code