Skip to content

Setting VSCode token to match SESSION_API_KEY. - #793

Merged
tofarr merged 8 commits into
mainfrom
vscode-same-api-key
Oct 20, 2025
Merged

tofarr merged 8 commits into
mainfrom
vscode-same-api-key

Conversation

@tofarr

@tofarr tofarr commented Oct 17, 2025 •

Copy link
Copy Markdown
Collaborator

Both the VSCode token and the SESSION_API_KEY give unfettered access to the server. Making them the same means we can produce a VSCode URL in the app server without going through the agent server.


Agent Server images for this PR

• GHCR package: https://github.com/All-Hands-AI/agent-sdk/pkgs/container/agent-server

Variants & Base Images

Variant Base Image Docs / Tags
golang golang:1.21-bookworm Link
java eclipse-temurin:17-jdk Link
python nikolaik/python-nodejs:python3.12-nodejs22 Link

Pull (multi-arch manifest)

docker pull ghcr.io/all-hands-ai/agent-server:ab36fd6-python

Run

docker run -it --rm \
  -p 8000:8000 \
  --name agent-server-ab36fd6-python \
  ghcr.io/all-hands-ai/agent-server:ab36fd6-python

All tags pushed for this build

ghcr.io/all-hands-ai/agent-server:ab36fd6-golang
ghcr.io/all-hands-ai/agent-server:v1.0.0a2_golang_tag_1.21-bookworm_binary
ghcr.io/all-hands-ai/agent-server:ab36fd6-java
ghcr.io/all-hands-ai/agent-server:v1.0.0a2_eclipse-temurin_tag_17-jdk_binary
ghcr.io/all-hands-ai/agent-server:ab36fd6-python
ghcr.io/all-hands-ai/agent-server:v1.0.0a2_nikolaik_s_python-nodejs_tag_python3.12-nodejs22_binary

The ab36fd6 tag is a multi-arch manifest (amd64/arm64); your client pulls the right arch automatically.

tofarr and others added 5 commits October 17, 2025 15:12
BOth of these values give unfettered access to the server, and making them the same means we can skip the startup check
- Fix connection_token initialization to be None by default
- Move token generation to start() method after binary check
- Fix get_vscode_url() to check token existence instead of running status
- Resolves 4 failing tests in test_vscode_service.py

Co-authored-by: openhands <openhands@all-hands.dev>
@openhands-ai

openhands-ai Bot commented Oct 19, 2025

Copy link
Copy Markdown

Looks like there are a few issues preventing this PR from being merged!

  • GitHub Actions are failing:
    • Agent Server

If you'd like me to help, just leave a comment, like

@OpenHands please fix the failing actions on PR #793 at branch `vscode-same-api-key`

Feel free to include any additional details that might help me get this PR into a better state.

You can manage your notification settings

@github-actions
github-actions Bot requested a review from neubig October 20, 2025 12:24
@github-actions

Copy link
Copy Markdown
Contributor

[Automatic Post]: I have assigned @neubig as a reviewer based on git blame information. Thanks in advance for the help!

@tofarr
tofarr merged commit 8ec2b5d into main Oct 20, 2025
@tofarr
tofarr deleted the vscode-same-api-key branch October 20, 2025 15:19
vivekvjnk pushed a commit to vivekvjnk/agent-sdk that referenced this pull request Nov 17, 2025
Co-authored-by: openhands <openhands@all-hands.dev>
StressTestor pushed a commit to StressTestor/software-agent-sdk that referenced this pull request Jun 1, 2026
Co-authored-by: openhands <openhands@all-hands.dev>
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.

3 participants