Skip to content

fix(compose): keep the base path for vs code in the proxy - #1433

Merged
jlav merged 1 commit into
mainfrom
jl/compose-vscode-proxy
Nov 18, 2026
Merged

jlav merged 1 commit into
mainfrom
jl/compose-vscode-proxy

Conversation

@jlav

@jlav jlav commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

HUMAN:

  • A human has tested these changes.

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

  • The compose proxy sends /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

  1. docker compose up -d, then open http://localhost:9043, create the admin account and add an LLM.
  2. Start a conversation and ask the agent to create a file.
  3. Open the conversation's side panel and click Open in VS Code.

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

VS Code opened from a conversation, showing the file the agent created

Type

  • Bug fix
  • Feature
  • Refactor
  • Breaking change
  • Docs / chore

Notes


Enterprise server image for this PR:

ghcr.io/openhands/enterprise-server:sha-766b86b

@github-actions github-actions Bot added the type: fix A bug fix label Nov 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Coverage report

This PR does not seem to contain any modification to coverable code.

@jlav
jlav merged commit 1c91759 into main Nov 18, 2026
29 checks passed
@jlav
jlav deleted the jl/compose-vscode-proxy branch November 18, 2026 14:52
@openhands-release-bot openhands-release-bot Bot added the released: 1.95.0 Shipped in 1.95.0 label Nov 19, 2026
@openhands-release-bot

Copy link
Copy Markdown
Contributor

🚀 Released in 1.95.0.

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

Labels

released: 1.95.0 Shipped in 1.95.0 type: fix A bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants