fix(remote): write record stop output only to request-named destinations
Merged
TH
7d ago+329+329+012345678901234567890123456789-40-40-01234567890123456789
Summary
For #4518, the remote client ignores the daemon's destination paths when it saves a record stop video, its chunks, and telemetry. Each file uses a path from the current request, or one plain file name in the working directory. The client generates a name when it cannot use the response name. It stages the download privately and publishes it by rename, which replaces a destination symlink without writing through it.
A remote record stop without a destination now saves the recording in the working directory and adds recordingDestinationWarnings and a human-readable warning. This changes where a recording lands when the only path was supplied to record start.
Deferred hardening: #4834.
Validation
- Tested
d915f7b5a544399cedd9fba4117179ef743159e5. The 11 recording regression cases fail with the two production files restored toorigin/mainand pass with the fix. - Passed 923 unit tests across remote, daemon-client, wire compatibility, and MCP, plus 13 provider tests.
- Passed frozen install, build, format, typecheck, lint, production exports, Fallow, layering (including R89), agent guidance, and released-wire compatibility.
- Serialized affected validation is queued behind the host validation lock. Hosted checks started after the push.