[BUG] Command output files during remote control sessions are pointing to local file instead of remote file
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Using remote control of sessions running at work from home. Claude Code shows for example "Read
bag1jw41y.output" But when you try to open it, it links to non existent local file. Problem is that the file is actually created on the remote machine at work, so it is always wrong link at home or other remote place.
What Should Happen?
So Claude GUI should change the link to the nonexistent local file on remote control sessions to preview button that will read the actual file on the remote machine and will show it on the right side where you should see the content of the file normally.
<img width="440" height="747" alt="Image" src="https://github.com/user-attachments/assets/2bedad49-6c3a-4af6-9ef5-9ec5f64b3bfb" />
Error Messages/Logs
Pic attached
Steps to Reproduce
Enable remote control on system 1 and join the remote control session on another machine 2. On the machine 2 run some task that will be running for some time, Claude will redirect the outcome to *.output file on system 1 and will show "Read xxxxxxx.output >" on the machine 2 while its waitin on the task to finish. When you klick the xxxxxx.output file to read it, it will show error on the side bar that the file is not available. The path is standard local path, but the file exist on the remote system 1, not on the local machine 2.
Claude Model
Not sure / Multiple models
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
Claude 1.24012.9 (03c61d) 2026-07-24T04:59:17.000Z
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
_No response_