Commit f1a6cae
authored
🤖 fix: interrupt stream when workspace is deleted (#835)
When a workspace is deleted while an agent is streaming, the stream
wasn't being interrupted and would continue running in the background.
## Fix
Stop any active stream in `AgentSession.dispose()` before cleaning up
listeners. This ensures streams are always stopped when the session is
disposed, regardless of the disposal trigger.
Uses fire-and-forget semantics since disposal shouldn't block, and
abandons the partial since the workspace is being deleted anyway.
---
_Generated with `mux`_1 parent 2820a98 commit f1a6cae
2 files changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
95 | 99 | | |
96 | 100 | | |
97 | 101 | | |
| |||
0 commit comments