Skip to content

feat: VS Code Remote SSH integration for sandboxes#5

Merged
rblalock merged 1 commit intomainfrom
feature/vscode-remote-ssh
Feb 18, 2026
Merged

feat: VS Code Remote SSH integration for sandboxes#5
rblalock merged 1 commit intomainfrom
feature/vscode-remote-ssh

Conversation

@rblalock
Copy link
Member

@rblalock rblalock commented Feb 18, 2026

image
  • Adds "Open in VS Code" and "Open in Cursor" buttons to the sandbox info popover, using vscode:// and cursor:// protocol URIs to connect via Remote-SSH extension
  • Includes info icon tooltip explaining prerequisites (Remote-SSH extension + agentuity auth ssh add)

Current Status: Blocked

This feature is blocked by the Agentuity SSH proxy not supporting direct-tcpip SSH channels (TCP port forwarding).

VS Code Remote SSH works by:

  1. SSH into the server ✅ (works)
  2. Install VS Code Server on remote ✅ (works)
  3. Start VS Code Server (picks random port) ✅ (works)
  4. Create SSH tunnel (port forward) from local to remote port ❌ FAILS
  5. Connect local VS Code through tunnel ❌ (can't reach server)

Error from VS Code logs:

Failed to set up socket for dynamic port forward to remote port 32881: Socket closed.
channel 3: open failed: connect failed: failed to open backend channel: ssh: rejected: unknown channel type (unknown channel type)

Tracking: agentuity/sdk#991

Alternative: VS Code Tunnels

If direct-tcpip support is not feasible, an alternative approach is to run code tunnel inside the sandbox, which creates an outbound tunnel that doesn't require SSH port forwarding. This would require installing the VS Code CLI in sandbox images.

Changes

  • src/web/components/pages/ChatPage.tsx — New VS Code Remote SSH section in sandbox popover with Open in VS Code / Open in Cursor buttons, info tooltip for prerequisites

Testing

  1. Open a session with an active sandbox
  2. Click the terminal icon in the header
  3. Verify "VS Code Remote SSH" section appears with info icon and two buttons
  4. Hover info icon → tooltip shows "Requires Remote - SSH extension and an SSH key registered with: agentuity auth ssh add"
  5. Click "Open in VS Code" → opens vscode://vscode-remote/ssh-remote+<sandboxId>@ion-usc.agentuity.cloud/home/agentuity
  6. Click "Open in Cursor" → opens cursor://vscode-remote/ssh-remote+<sandboxId>@ion-usc.agentuity.cloud/home/agentuity

Note: Buttons will open VS Code/Cursor but connection will fail until SDK adds direct-tcpip channel support.

Summary by CodeRabbit

  • New Features
    • Integrated VS Code and Cursor IDE support for remote SSH development. Users can now open their development environment directly from the app with convenient action buttons to launch either IDE with the appropriate connection settings.

Add 'Open in VS Code' and 'Open in Cursor' buttons that use vscode:// and
cursor:// protocol URIs to connect to sandboxes via Remote-SSH extension.

Includes info icon tooltip explaining prerequisites (Remote-SSH extension
and SSH key registration via 'agentuity auth ssh add').

Note: Currently blocked by Agentuity SSH proxy not supporting direct-tcpip
channels (TCP port forwarding), which VS Code Remote SSH requires. See SDK
issue for details.
@coderabbitai
Copy link

coderabbitai bot commented Feb 18, 2026

Caution

Review failed

The pull request is closed.

📜 Recent review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 68a00ef and 28703fa.

📒 Files selected for processing (1)
  • src/web/components/pages/ChatPage.tsx

📝 Walkthrough

Walkthrough

Added VS Code and Cursor remote SSH integration to ChatPage. Includes new UI block with action buttons for opening remote SSH connections, event handlers for constructing and opening SSH URIs, and SSH configuration constants derived from session data.

Changes

Cohort / File(s) Summary
VS Code/Cursor Remote SSH Integration
src/web/components/pages/ChatPage.tsx
Added UI block labeled "VS Code Remote SSH" with Info hint and two action buttons. Implemented handleOpenVscode and handleOpenCursor event handlers that construct remote SSH URIs. Added SSH configuration constants (sshHost, sshUser) and imported Info icon component.

Comment @coderabbitai help to get the list of available commands and usage tips.

@rblalock rblalock marked this pull request as ready for review February 18, 2026 15:26
@rblalock rblalock merged commit 0011692 into main Feb 18, 2026
1 check was pending
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

Comments