fix(coding-agent): fire session shutdown on TERM and HUP closes #3212

This commit is contained in:
Mario Zechner
2026-04-15 16:36:30 +02:00
parent 3a13fa80c8
commit 5d440b055c
6 changed files with 92 additions and 7 deletions

View File

@@ -283,7 +283,7 @@ user sends another prompt ◄─────────────────
/model or Ctrl+P (model selection/cycling)
└─► model_select
exit (Ctrl+C, Ctrl+D)
exit (Ctrl+C, Ctrl+D, SIGHUP, SIGTERM)
└─► session_shutdown
```
@@ -403,7 +403,7 @@ pi.on("session_tree", async (event, ctx) => {
#### session_shutdown
Fired on exit (Ctrl+C, Ctrl+D, SIGTERM).
Fired on exit (Ctrl+C, Ctrl+D, SIGHUP, SIGTERM).
```typescript
pi.on("session_shutdown", async (_event, ctx) => {