Gemini CLI PR fixes orphaned child processes and wrong exit codes on headless abort
duvanka-prasad · ghdev · 2026-11-09
A community PR (#30204, 16 files, +594/-43) to google-gemini/gemini-cli fixes three headless-mode abort bugs:
- Orphaned children: exit cleanup now tracks and kills all active detached shell process groups and PTYs via cleanupAllActiveProcesses(), so background commands no longer survive after gemini exits.
- Lost tool-call state: scheduled tool calls are persisted immediately when the model stream finishes, updated in place on cancel/completion, and synthesized as interrupted functionResponse entries on --resume.
- Wrong exit codes: non-interactive modes previously exited 0 or hardcoded 130; they now preserve signal-specific codes (130/143/129) so scripts can detect failures correctly.
More from coding & agent
- Multica teases customizable themes in next release — jiayuan_jy · 2026-11-09
- New benchmark across 1,039 tasks shows structured agent handoffs beat chat summaries — ombre-ai · 2026-11-09
- 'AI code is a mess but no-one can remember what good code looks like anymore' — kylegawley · 2026-11-09
- 15 weeks building a Godot game with Claude Opus: 4GB map bug, perf wins, and Gauntlet-Loop — RUSuper · 2026-11-09
- Event-Driven Architecture: Trigger Agents from Kafka-Style Events, Not Polling — goyalshaliniuk · 2026-11-09
- One-person site with 27 followers made $4,800 in a day, found via Claude Code revenue scan — FinanceYF5 · 2026-11-09