google-gemini / google-gemini/gemini-cli

IDE companion extension fails to connect with gVisor (runsc) sandbox

Open
#21,331 3 comments 0 reactions 0 assignees View on GitHub
🔒 maintainer only area/extensions effort/medium kind/bug priority/p2 status/bot-triaged
Dominant language
TypeScript
Stars
107k
Forks
14.6k
Avg merge
2d 3h
Merged PRs (30d)
45

Description

## Problem

The VSCode IDE companion extension fails to connect when using `GEMINI_SANDBOX=runsc` (gVisor), while it works correctly with `GEMINI_SANDBOX=docker`. This prevents all IDE integration features (`/ide status`, `/ide enable`, IDE-aware tools) from functioning when using gVisor sandboxing.

## Root Cause

The IDE companion uses **HTTP over TCP** to communicate between the container and the host VSCode instance.

## Additional Context

- gVisor is designed for stronger isolation, so this limitation is somewhat expected
- The issue affects all IDE integration features, not just connection status
- STDIO-based connection would be the most elegant solution as it works regardless of isolation level
- This should be documented in sandbox capability matrix

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.