Skip to content

studio: the server of VS Code Remote-SSH is not code-server - #15

Merged
ptrembli merged 1 commit into
mainfrom
feature/studio-remote-ssh
Dec 2, 2026
Merged

ptrembli merged 1 commit into
mainfrom
feature/studio-remote-ssh

Conversation

@ptrembli

@ptrembli ptrembli commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Why

On Adastra, in a VS Code Remote-SSH window, the canoP icon opened http://localhost:62863/proxy/8090/...
instead of the port of the studio that VS Code forwards, so the studio did not show. The server that
VS Code Remote-SSH runs on the node is started by a script named code-server
(~/.vscode-server/cli/servers/<version>/server/bin/code-server): the studio took it for code-server
and gave the address of a port proxy that this server does not have.

Changes

  • code_server_proxy (canop_app.py): a process whose program is in the directory of the VS Code
    server (canop_launch.vscode_server_program) is not code-server, and VSCODE_PROXY_URI counts only
    when a code-server of the user runs on the node.
  • VS Code extension 0.1.3: in a Remote-SSH window (vscode.env.remoteName == "ssh-remote") it always
    lets VS Code forward the port of the studio (asExternalUri), whatever code-server address the
    studio gives.
  • MCP bridge: no code-server address in a Remote-SSH window.
  • CHANGELOG.

Tests

  • On ruche with a running code-server: the same address as before.
  • With only a process of the VS Code server, simulated from the processes seen on Adastra: the former
    detection gives localhost:62863/proxy/..., the new one no address, also with VSCODE_PROXY_URI set.
  • pylint (no new remark), typos, check_i18n.py, node --check of the extension.
  • To check on Adastra: canop-studio --stop, canop-studio --install-vscode, reload the window,
    then the canoP icon. The studio computes its addresses at start, so it must be restarted.

🤖 Generated with Claude Code

On Adastra, in a VS Code Remote-SSH window, the canoP icon opened
http://localhost:62863/proxy/8090/... instead of the port of the studio that
VS Code forwards. The server that VS Code Remote-SSH runs on the node is
started by a script named code-server
(~/.vscode-server/cli/servers/<version>/server/bin/code-server): the studio
took it for code-server and gave an address of its port proxy, which that
server does not have.

- code_server_proxy (canop_app.py): a process whose program is in the
  directory of the VS Code server (canop_launch.vscode_server_program) is not
  code-server, and VSCODE_PROXY_URI counts only when a code-server of the
  user runs on the node.
- VS Code extension (0.1.3): in a Remote-SSH window (vscode.env.remoteName
  "ssh-remote") it always lets VS Code forward the port of the studio
  (asExternalUri), whatever code-server address the studio gives.
- MCP bridge: no code-server address in a Remote-SSH window.

Tested: on ruche with a running code-server, the same address as before;
with only a process of the VS Code server (simulated from the processes seen
on Adastra), the former detection gives localhost:62863/proxy/..., the new
one no address, also with VSCODE_PROXY_URI set. The studio computes its
addresses at start: restart it (canop-studio --stop, then the canoP icon) and
reinstall the extension (canop-studio --install-vscode).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ptrembli
ptrembli merged commit 530f358 into main Dec 2, 2026
2 checks passed
@ptrembli
ptrembli deleted the feature/studio-remote-ssh branch December 2, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant