Skip to content

bug remote ssh VS code #8826

Closed as not planned
Closed as not planned

Description

@chemquantsdev

Before submitting your bug report

Relevant environment info

- OS:
- Continue version:
- IDE version:
- Model:
- config:
  

  
  OR link to agent in Continue hub:

Description

📧 Issue Report: Remote-SSH Configuration Context Error

Subject: Critical Bug: Remote-SSH Extension Confuses Local/Remote Config Context After Agent Reinstallation


Hello Continue Team,

I am experiencing a critical issue when using the Continue extension in a VS Code Remote-SSH environment. The extension is failing to correctly recognize the remote workspace context and is defaulting to local settings, despite the remote agent being active.

🐛 Observed Symptoms

  1. Configuration Context Error: The model selector dropdown and configuration menu in the Continue sidebar consistently show the option "local config" (instead of correctly identifying the remote workspace configuration).

  2. Configuration Link Incorrect: When I click the gear icon to edit the configuration, VS Code opens the local machine's ~/.continue/config.yaml file, rather than the remote machine's ~/.vscode-server/data/VsCodeExtensions/continue.continue-1.2.10-linux-x64/... path or the remote workspace's .continue/config.yaml.

  3. Specific Model Error (Now Resolved): Initial attempts to use an Anthropic model via Vertex AI in the working (internal) agent config failed with an HTTP 400 region error, which has since been mitigated by changing the region to global in the primary config.

💻 Environment Details

Component | Detail -- | -- VS Code Version | (Please specify your VS Code version, e.g., 1.94.2) Continue Extension Version | 1.2.10 (Based on logs) Host OS | (e.g., Ubuntu 22.04 LTS) Client OS | (e.g., Windows 11 / macOS) Connection Method | VS Code Remote-SSH

🛑 Troubleshooting Steps Performed (Critical)

I have performed a full, deep cleanup to eliminate local and remote caching, forcing a fresh installation. The issue persists.

  1. Fixed Corrupted Index: Identified and resolved SQLITE_ERROR: no such table: chunks and Neon module: assertion left == right failed errors by manually deleting the remote cache:

    Bash
    # Run on Remote Host
    rm -rf /path/to/workspace/.continue/index
    rm -rf /path/to/workspace/.continue/agent
    
  2. Reinstalled Extension Components: The issue began when I mistakenly uninstalled the local UI component, so I performed the following:

    • Uninstalled the extension locally.

    • Manually deleted the entire remote extension folder: rm -rf ~/.vscode-server/extensions/continue.continue-*

    • Reinstalled the extension locally.

    • Killed the VS Code Server (Remote-SSH: Kill VS Code Server on Host...) and reconnected.

  3. Configuration Verified: The primary configuration file, .continue/config.yaml, exists and is structurally valid in the root of the remote workspace.

Conclusion: Even after a complete local and remote clean reinstall, the local UI component of the extension fails to switch context when connected via Remote-SSH and continues to look for configuration files and display settings as if it were a purely local workspace.

Please investigate the context-switching logic used by the Continue UI component when the extension host is running remotely.

Thank you for your time.

To reproduce

No response

Log output

Activity

  1. added
    area:context-providers
    ide:vscode
    kind:bug
    on Nov 21, 2025
  2. kevin-pw commented on Dec 28, 2025

    @kevin-pw

    I have the same issue. Continue.dev looks for the configuration files on the local machine rather than in the files on the remote ssh host. Any workaround would be appreciated.

  3. jgbos commented on Jan 12, 2026

    @jgbos

    Yep, same issue here for both RemoteSSH and WSL, continue only works on the local system.

    Below is a hack I was able to use to get it to run on the remote systems:

    • I noticed the extension does not get installed on the remote session
    • I manually installed the continue extension on the remote machine
    • I uninstalled the local extensions and reloaded the window
    • Once doing that, it appears to work on the remote system, although it does not appear to start in the workspace directory

    I have not fully tested, and I'm running into issues (that may be because of me not Continue).

  4. snowdream commented on Jan 30, 2026

    @snowdream

    same issue

  5. snowdream commented on Jan 30, 2026

    @snowdream

    Host: macOS
    Remote: RHEL

    Continue.dev +VS Code Remote‑SSH

    when i input /commit,i will get:

    $ git status
    
    run_terminal_command failed with the message: spawn /bin/zsh ENOENT
    
    Please try something else or request further instructions.
    
  6. skushneryuk commented on Mar 5, 2026

    @skushneryuk

    Same issue here:

    - OS: Windows 11 (host) → Ubuntu 22.04 (remote via SSH)
    - Continue version: release (available through VS Code Extensions)
    - IDE version: VS Code 1.109.5 with Remote-SSH extension
    - Model: Qwen3VL-235B via vLLM serving
    - Connection: VS Code Remote-SSH to Linux host

    Also encountered issue with Continue extension trying to use local config instead of config on remote machine

  7. allquixotic commented on Apr 3, 2026

    @allquixotic

    Had to uninstall Continue, can't use an extension that can't support Remote SSH.

  8. jon-ficht commented on Apr 8, 2026

    @jon-ficht

    Same issue here, the continue extension doesn't even prompt that it needs to be installed on the remote

    • OS: Windows 11 (host) → Ubuntu 24.04 (remote via SSH)
    • Continue version: release (available through VS Code Extensions)
  9. Patriko73 commented on May 2, 2026

    @Patriko73

    Workaround that worked for me
    The issue is caused by extensionKind: ["ui", "workspace"] in package.json — VS Code prefers the local UI host, so os.homedir() resolves to the local machine's home directory even when connected via Remote-SSH.

    Fix (no rebuild required): Add this to your local VS Code settings.json:

    "remote.extensionKind": {
    "Continue.continue": ["workspace", "ui"]
    }

    Then install Continue on the remote host via the Extensions panel ("Install in SSH: ") and restart. Continue will now run in the remote workspace host and read ~/.continue/config.yaml from the remote machine.

    The proper upstream fix would be to swap the order to ["workspace", "ui"] in extensions/vscode/package.json.

  10. zzzeek commented on Jul 2, 2026

    @zzzeek

    I'm also observing this issue from a Fedora 44 workstation sshing to a RHEL 9.7 server.

  11. palansher commented on Jul 10, 2026

    @palansher

    Then install Continue on the remote host via the Extensions panel ("Install in SSH: ")

    thank you!

    worked for me, excepting that extension does not offer to install remotely - seems as installed locally. But now it sees remote config for Continue.

  12. github-actions commented on Oct 9, 2026

    @github-actions
    Contributor

    This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.

  13. github-actions commented on Oct 20, 2026

    @github-actions
    Contributor

    This issue was closed because it wasn't updated for 10 days after being marked stale. If it's still important, you are welcome to leave a comment and this will keep the issue open. However please note that this repo is no longer being actively maintained.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:context-providerside:vscodekind:bugstale

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions