fix(recording): preserve explicit macOS session surfaces

Merged
JA
2mo ago
+83-4

Summary

open --platform macos --surface desktop loses its surface in recorded actions and saved replay scripts, so replay can target a different surface. Preserve explicitly supplied values in the existing recorder, journal projection, and .ad open round trip; keep omission unchanged. Closes #3216.

The recording-policy migration preserved the old allowlist's omission; macOS surface selection needs to survive recording.

Validation

Tested five-file commit f90a483 with an actual SessionStore event/script regression for all four surfaces and omission, plus malformed replay arguments. Without the recording fix, explicit journal values disappear; without the serializer fix, replay loses them. Both regressions fail before their fix and the complete focused family passes (42 tests).

pnpm check:affected --run passed on this exact commit: formatting, lint, types, layering, Fallow, build, and 5,170 related tests across 660 files. Live macOS replay and GitHub CI are pending; the shared installed daemon remains unchanged.