Unverified50% confidenceFactExact time
When a terminal window is closed, the kernel sends SIGHUP to the session leader process (usually the shell), which then forwards that SIGHUP to the jobs in its job table, causing the AI coding agent process to terminate.
1
Sources
50%
Confidence
Long-term
Relevance
10/18/2026
First Seen
Sources
Related Entities
Related Claims
UnverifiedA normal claude or codex session runs in the terminal process that launched it, and closing the terminal (such as closing the tab, an SSH disconnect, or restarting the terminal application) will interrupt the running process.79% similarUnverifiedBefore exiting after receiving SIGHUP, bash resends SIGHUP to all of its running or stopped jobs.76% similarUnverifiedsetsid makes a process run in an independent session with no controlling terminal, thereby avoiding SIGHUP when the terminal hangs up.73% similarUnverifiedThe command-line terminal window must not be closed while the model is running; once closed, both the conversation interface and the model will become unavailable.73% similarUnverifieddisown removes the job from the shell's job table, so when the shell receives SIGHUP it has no job to forward, and the process therefore does not receive SIGHUP.72% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1060292API
curl https://kongchang.com/api/v1/knowledge/claims/1060292MCP
get_claim(id=1060292)