Process Exit Confirmation
Close a tab with a running process? Not without a warning first.
Questions this answers
- How do I prevent accidentally closing a terminal tab with a running process?
- Can a terminal warn me before killing an SSH session?
- Is there a way to confirm before closing tabs running long builds?
How it works
When you close a tab or quit Chau7, it inspects the process tree of every active terminal session. If any foreground or background processes are still running: SSH connections, development servers, compilers, database clients: a confirmation dialog lists them by name and PID, giving you the chance to cancel.
You can configure per-process rules to fine-tune the behavior. Mark processes like node or python as always-warn, whitelist shells like zsh or bash as safe-to-close, or set specific processes to never warn. Rules apply globally or per-profile, so your production SSH connections can require confirmation while local shell tabs close instantly.
Why it matters
Losing a running process to an accidental Cmd+W is one of the most common terminal frustrations. A half-finished database migration, a running dev server, an SSH session to production: gone in a keystroke. Chau7 warns before closing any tab with active processes, with configurable per-process rules so you can silence warnings for processes you don't care about.
Frequently asked questions
Does this work when quitting the entire app?
Yes. When you press Cmd+Q, Chau7 checks all open tabs for running processes and presents a single dialog listing every active process across all tabs, letting you cancel the quit or proceed.
Can I set rules for specific processes?
Absolutely. The settings panel lets you define rules by process name: always warn for ssh and docker, never warn for zsh or bash, or prompt for everything. Rules can be scoped globally or to specific profiles.