-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Proxy health check hangs indefinitely if proxy fails to bind to port 8877 #20851
Copy link
Copy link
Open
Labels
status/need-triageIssues that need to be triaged by the triage automation.Issues that need to be triaged by the triage automation.
Description
What happened?
When GEMINI_SANDBOX_PROXY_COMMAND is set and the proxy process starts
but never binds to port 8877 (e.g. wrong port, slow startup, missing
dependency), the health check loop in sandbox.ts runs forever:
until timeout 0.25 curl -s http://localhost:8877; do sleep 0.25; doneThe CLI hangs with no error message and the user must Ctrl+C manually.
This affects both the Seatbelt (macOS) and Docker sandbox paths.
Steps to reproduce
GEMINI_SANDBOX_PROXY_COMMAND="sleep infinity" GEMINI_SANDBOX=docker gemini -s
# CLI hangs forever with no outputExpected behavior
The health check should time out after a reasonable period and throw
a clear error message.
CLI version
0.30.0-nightly.20260210
Platform
Linux (WSL2 Ubuntu 24.04)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
status/need-triageIssues that need to be triaged by the triage automation.Issues that need to be triaged by the triage automation.