continuedev / continuedev/continue
Edit tools (edit_existing_file, single_find_and_replace) fail when workspace is connected via Remote SSH
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 36k
- Forks
- 5.4k
- PR merge metrics
- No merged PRs in 30d
Description
Before submitting your bug report
- I've tried finding an answer on the Continue docs site
- I'm not able to find an open issue that reports the same bug
- I've seen the troubleshooting guide on the Continue Docs
Relevant environment info
- Continue extension version: 1.3.40
- VS Code version: Version: 1.124.2
- OS: Windows_NT x64 10.0.26200
- Connection type: Remote – SSH (via ms-vscode-remote.remote-ssh)
- Remote OS: Linux (Ubuntu 22.04)
- Local OS: Windows 11
Description
- Open a folder in VS Code using Remote – SSH.
- Install and activate the Continue extension.
- Open a simple text file, e.g.,
e.phpcontaining only123456789. - Ask Continue to edit the file, for example: "Add 10 to the number" or "Replace content with 123456799".
- The agent attempts to use
edit_existing_file,single_find_and_replace, orrun_terminal_commandto modify the file.
Observed Behavior
edit_existing_filefails with:
Failed to edit undefined. To continue working with the file, read it again to see the most up-to-date contentssingle_find_and_replacefails with:
string old_string is required(even though the argument is correctly provided).create_new_filefails with:
contents argument is required. (type string)(again despite providing the argument).run_terminal_commandexecutes without error but the file is not actually modified (e.g.,echo 123456799 > movie.phphas no effect;view_diffshows empty diff).read_fileandfile_glob_searchwork correctly and show the original content.
Expected Behavior
All edit tools should modify file content in a remote SSH workspace exactly as they do in a local workspace.
Additional Notes
The problem appears to be related to file path resolution or write-permissions when the workspace is accessed via Remote – SSH. The agent can read files but cannot write them, which severely limits functionality in remote development environments.
To reproduce
No response
Log output
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure in a VS Code Remote–SSH workspace with edit_existing_file, single_find_and_replace, create_new_file, and run_terminal_command, then compare the same operations locally. Trace how these tools resolve paths and write files, using read_file and file_glob_search as working references. Done means all listed edit tools modify remote files and view_diff shows the changes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100