gemini-cli PR fixes ACP mode hanging on initialize when sandbox is enabled
Raamia · ghdev · 2026-11-22
PR #30400 in google-gemini/gemini-cli fixes gemini --acp never answering an initialize request when a sandbox is enabled, which left ACP clients hanging.
- Root cause: before relaunching in the sandbox, main() reads non-TTY stdin to forward piped input. In ACP mode stdin is the client's JSON-RPC stream; readStdin() gets the first chunk (the initialize request), then waits for an EOF that never arrives, so startsandbox is never reached.
- Fix: skip the pre-sandbox readStdin() when ACP mode is active; the sandboxed process inherits stdin (stdio: 'inherit', plus -i for Docker/Podman/runsc). Covers both --acp and deprecated --experimental-acp; non-ACP behavior unchanged, with new tests for stdin forwarding (51 passed, 1 skipped).
More from coding & agent
- Hacker tricked Meta's Muse agent into silently stealing encrypted passwords — AccBalanced · 2026-11-22
- Dev uses Claude with his game engine plus fal, Tripo, Meshy and ElevenLabs to make a movie trailer — gorkem · 2026-11-22
- MIT study: coding agents boost commits 240% but releases only 30% — apps ship into the void — GaryMarcus · 2026-11-22
- Agent failures come from broken loops, not bad reasoning: the check step is the real job — AgentSearchEngine · 2026-11-22
- Open-source coding agent control plane T3 Code claims 500K+ devs orchestrating Claude Code, Codex and more — churchkey · 2026-11-22
- Adding verification and accountability to coding agents: 6 auto-checked claims, 455/455 tests pass — jasonkneen · 2026-11-22