Gemini CLI now forwards termination signals to relaunched child processes

C0d3N1nja97342 · ghdev · 2026-08-04

What changed

gemini-cli now forwards termination signals from the bootstrap parent process to the relaunched child process, so supervised shutdowns like kill -TERM <pid> actually stop the live child instead of orphaning it.

Why it mattered

Before this fix, the parent could exit on SIGTERM/SIGHUP while the child kept running, which left the OAuth session and allocated heap behind until manual cleanup. The bug only showed up with programmatic signals from supervisors such as ACP clients, systemd, or container runtimes; interactive Ctrl+C already reached the whole foreground process group.

Implementation details

Verification

A new regression test confirms that:

Original post →

More from coding & agent

coding & agent channel →