Remote-session file staging can now skip the session-ID requirement via a new 'vouched' path
The function that stages files for upload or output in a remote session now accepts a second, optional parameter. When it's set, file staging can proceed without the usual CLAUDE_CODE_REMOTE_SESSION_ID requirement, and the mount is marked as "vouched" instead of tied to an actual remote session ID. This path is refused for synced, filestore-backed documents, with the message "synced documents are not staged here."
This adds a way to stage files in remote-session contexts without a real session ID present, while still excluding documents that are synced through the filestore, which need to go through their normal path instead.