Repository navigation
fix(compose): keep the base path for vs code in the proxy - #1433
Merged
Merged
Conversation
Contributor
mamoodi
approved these changes
Nov 18, 2026
Contributor
|
🚀 Released in 1.95.0. |
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.
HUMAN:
AGENT:
Why
Since release 1.92.0, the "Open in VS Code" link in the compose stack returns 404.
#1270 bumped the SDK from 1.60.1 to 1.62.0. That picked up a breaking change in the agent server: OpenHands/software-agent-sdk#6307 replaced OpenVSCode Server with code-server in 1.61.0. It wasn't flagged as breaking in that PR or in the 1.61.0 release notes.
The code-server proxy in the sandbox only answers under its base path. The app sets that base path to
/runtime/<sandbox>/8001(OH_VSCODE_BASE_PATH).The compose proxy strips
/runtime/<sandbox>/<port>from every sandbox request. So VS Code gets/and returns 404.Summary
/runtime/<sandbox>/8001/...to VS Code with the path intact. Other sandbox ports still have the prefix stripped.The https overlays forward everything to
proxy:80, so they pick this up too.Issue Number
N/A
How to Test
docker compose up -d, then openhttp://localhost:9043, create the admin account and add an LLM.VS Code opens on the conversation's workspace with the agent's file in it. On main, the same link returns 404.
I ran this on docker (macOS) and on rootless podman (RHEL 10). Release 1.91.1 still loads VS Code through the current proxy rules, and 1.94.1 returns 404 without this change.
Video/Screenshots
Type
Notes
Enterprise server image for this PR: