[BUG] "Attach File" dialog opens local filesystem instead of remote in SSH remote environment

Resolved 💬 3 comments Opened Mar 4, 2026 by 0xff-dev Closed Apr 3, 2026

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?

Description:

"Attach File" dialog opens local filesystem instead of remote in SSH remote environment

Expected Behavior:

The file picker should display the remote machine's filesystem.

Actual Behavior:

The file picker opens the local machine's filesystem instead of the remote machine's, making it impossible to attach files from the remote environment.

Impact:

Users working in Remote SSH environments are unable to attach remote files, which breaks the workflow entirely in this common development setup.

<img width="1703" height="711" alt="Image" src="https://github.com/user-attachments/assets/520990dd-83a2-443e-93ad-f9e8441e79d5" />

<img width="1453" height="829" alt="Image" src="https://github.com/user-attachments/assets/81bd5a58-8e54-430e-8c1d-93abdac04cf6" />

What Should Happen?

The file picker should display the remote machine's filesystem.

Error Messages/Logs

Steps to Reproduce

Steps to Reproduce:

  1. Connect to a remote machine via VSCode Remote SSH.
  2. Open the Claude extension panel.
  3. Type / to trigger the command menu.
  4. Click Attach File.
  5. Observe that the file picker dialog opens.

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.63 (Claude Code)

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

VS Code integrated terminal

Additional Information

Environment:

VSCode mode: Remote SSH
Claude extension installed on: Remote machine
Claude Code installed on: Remote machine

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗