Skip to content

copilot via remote ssh use read_file failed #294077

Open

Description

@xingjy10

Type: Bug

i am using remote-ssh to edit code, copilot want to use read_file, but failed

VS Code version: Code 1.109.0 (Universal) (bdd88df, 2026-02-04T02:01:38.288Z)
OS version: Darwin arm64 25.2.0
Modes:
Remote OS version: Linux x64 4.18.0-147.mt20200626.413.el8_1.x86_64

System Info
Item Value
CPUs Apple M4 Pro (14 x 2400)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x106b [Google Inc. (Apple)], DEVICE=0x0000 [ANGLE (Apple, ANGLE Metal Renderer: Apple M4 Pro, Version 26.2 (Build 25C56))], DRIVER_VENDOR=Apple, DRIVER_VERSION=26.2 ACTIVE
Machine model name: Mac
Machine model version: 16.7
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 4, 4, 4
Memory (System) 24.00GB (0.14GB free)
Process Argv --crash-reporter-id fa62ef95-8b44-416a-b489-a6a41aae7e76
Screen Reader no
VM 0%
Item Value
Remote SSH: hongyi06.ide
OS Linux x64 4.18.0-147.mt20200626.413.el8_1.x86_64
CPUs Intel(R) Xeon(R) Platinum 8352Y CPU @ 2.20GHz (128 x 2800)
Memory (System) 48.00GB (46.50GB free)
VM 0%
Extensions (19)
Extension Author (truncated) Version
cloud-ide-remote clo 0.5.9
vscode-dash dee 2.4.0
copilot-chat Git 0.37.2
better-cpp-syntax jef 1.27.1
vscode-peacock joh 4.2.2
vscode-json5 mrm 1.0.0
jupyter-keymap ms- 1.1.2
remote-containers ms- 0.442.0
remote-ssh ms- 0.120.0
remote-ssh-edit ms- 0.87.0
remote-wsl ms- 0.104.3
vscode-remote-extensionpack ms- 0.26.0
remote-explorer ms- 0.4.3
remote-server ms- 1.5.3
sublime-keybindings ms- 4.1.10
vscode-speech ms- 0.16.0
vscode-speech-language-pack-zh-cn ms- 0.5.1
pdf tom 1.2.2
vscode-pull-request-github Git 0.128.0

(2 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31436602
aj953862:31281341
82j33506:31327384
6abeh943:31336334
cloudbuttont:31379625
3efgi100_wstrepl:31403338
use-responses-api:31390855
ddidt:31399633
je187915:31401257
ec5jj548:31422691
cmp-ext-treat:31426748
cp_cls_t_966_ss:31454198
ge8j1254_inline_auto_hint_haiku:31431912
nes-autoexp-off:31446584
a5gib710:31434435
38bie571_auto:31457539
rename_enabled:31436409
7a04d226_do_not_restore_last_panel_session:31438103
anthropic_thinking_c:31457102
722j7530_gpt_5_2_codex:31458091
406hc587_ask_agent:31428393
preserve_tokens:31444547
cp_cls_c_1081:31454833
copilot-nes-oct-trt:31432596
ia-use-proxy-models-svc:31452481
nes-slash-models-on:31441832
nes-set-to-on:31441941
a43f0576c:31442824
c0ci8992_validated:31449878
edit_mode_hidden:31459179
864ei723_large_tool_results_to_disk:31458758
showingstats:31457202
pp-44cc9697:31455969
nes-extended-on:31455476
anthropic_tst_c:31457103
chat:31457767

Activity

  1. added
    ~info-needed
    on Feb 10, 2026
  2. vs-code-engineering commented on Feb 10, 2026

    @vs-code-engineering
    Contributor

    Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.

    For Copilot Issues, be sure to visit our Copilot-specific guidelines page for details on the necessary information.

    Happy Coding!

  3. added
    info-needed
    and removed
    ~info-needed
    on Feb 10, 2026
  4. xingjy10 commented on Feb 12, 2026

    @xingjy10
    Author

    first how to reproduce this error:

    1. i am on my mac pro vscode editor.
    2. connect a linux os by remote ssh extension
    3. ask copilot to use read_file to read a specific file on linux system. i says is outside of the current folder in folder and failed to read the content.
    4. i tested ask copilot in the remote ssh vscode window to read a file on mac system,which success.

    i assume the read_file, create_file tool only can read and create file on local file system rather than on the remote system。

    here's log for the error
    2026-02-12 11:56:10.664 [error] Error from tool read_file with args {"filePath":"/home/root/phoenix/java-engine/framework/src/main/java/com/dianping/phoenix/framework/processor/common/enricher/EMPTY_FILE_BY_COPILOT.txt","startLine":1,"endLine":50}: cannot open file:///home/root/phoenix/java-engine/framework/src/main/java/com/dianping/phoenix/framework/processor/common/enricher/EMPTY_FILE_BY_COPILOT.txt. Detail: Unable to read file '/home/root/phoenix/java-engine/framework/src/main/java/com/dianping/phoenix/framework/processor/common/enricher/EMPTY_FILE_BY_COPILOT.txt' (Error: Unable to resolve nonexistent file '/home/root/phoenix/java-engine/framework/src/main/java/com/dianping/phoenix/framework/processor/common/enricher/EMPTY_FILE_BY_COPILOT.txt'): CodeExpectedError: cannot open file:///home/root/phoenix/java-engine/framework/src/main/java/com/dianping/phoenix/framework/processor/common/enricher/EMPTY_FILE_BY_COPILOT.txt. Detail: Unable to read file '/home/root/phoenix/java-engine/framework/src/main/java/com/dianping/phoenix/framework/processor/common/enricher/EMPTY_FILE_BY_COPILOT.txt' (Error: Unable to resolve nonexistent file '/home/root/phoenix/java-engine/framework/src/main/java/com/dianping/phoenix/framework/processor/common/enricher/EMPTY_FILE_BY_COPILOT.txt')
    at bze.$tryOpenDocument (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:542:8529)

  5. removed
    info-needed
    on Feb 12, 2026
  6. added
    stale
    ~info-needed
    and removed
    stale
    on Feb 19, 2026
  7. vs-code-engineering commented on Feb 24, 2026

    @vs-code-engineering
    Contributor

    Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.

    For Copilot Issues, be sure to visit our Copilot-specific guidelines page for details on the necessary information.

    Happy Coding!

  8. added
    info-needed
    and removed
    ~info-needed
    on Feb 24, 2026
  9. 2 remaining items

  10. added
    stale
    on Feb 24, 2026
  11. added
    ~info-needed
    and removed
    stale
    on Feb 24, 2026
  12. vs-code-engineering commented on Feb 24, 2026

    @vs-code-engineering
    Contributor

    Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.

    For Copilot Issues, be sure to visit our Copilot-specific guidelines page for details on the necessary information.

    Happy Coding!

  13. added
    info-needed
    and removed
    ~info-needed
    on Feb 24, 2026
  14. removed
    info-needed
    on Feb 24, 2026
  15. xingjy10 commented on Mar 2, 2026

    @xingjy10
    Author

    joshspicer do you need more info?

  16. npuNancy commented on Apr 14, 2026

    @npuNancy
  17. removed their assignment
    on Jun 10, 2026
  18. removed their assignment
    on Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions