You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c8897d1
Browse filesBrowse the repository at this point in the historyBrowse files
fix(desktop): stop the agent's terminal commands at sign-out, by their own process groups
Commands the agent started could outlive the session that started them.
Closing a shell only hangs up its foreground, so a command that ignores
SIGHUP kept running, and a tmux run outlives the Sim terminal entirely.
- Sign-out and an account change now stop every command the agent started
before the shells are torn down. A plain shell's command is stopped by its
own process group, the same Ctrl-C, SIGTERM, SIGKILL escalation Stop uses,
and each tmux run window still going gets Ctrl-C, then is closed.
- A command the user started is never touched: only a command a `run`
started counts as the agent's.
- The agent's command stays the agent's until it really exits, even after an
interactive command detaches from its tool call. Stop and sign-out can
still end it then.
0 commit comments