Repository navigation
studio: the server of VS Code Remote-SSH is not code-server - #15
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-serverand 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 Codeserver (
canop_launch.vscode_server_program) is not code-server, andVSCODE_PROXY_URIcounts onlywhen a code-server of the user runs on the node.
vscode.env.remoteName == "ssh-remote") it alwayslets VS Code forward the port of the studio (
asExternalUri), whatever code-server address thestudio gives.
Tests
detection gives
localhost:62863/proxy/..., the new one no address, also withVSCODE_PROXY_URIset.check_i18n.py,node --checkof the extension.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