Commit 9dbc3ee
committed
🤖 fix: make temp directory cleanup non-blocking for faster stream interruption
When interrupting a stream (especially on SSH), the UI was delayed by 500ms-2s
waiting for the temp directory cleanup to complete. The cleanup involved an
SSH 'rm -rf' command that blocked the processingPromise resolution, which
delayed the stream-abort event emission.
This change makes temp directory cleanup fire-and-forget, so the stream-abort
event is emitted immediately after the stream breaks out of the processing loop,
providing instant UI feedback.
The cleanup is still guaranteed to happen (via void promise), but it no longer
blocks the critical path for UI responsiveness.
_Generated with `cmux`_1 parent 71e965c commit 9dbc3ee
1 file changed
+12
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
978 | 978 | | |
979 | 979 | | |
980 | 980 | | |
981 | | - | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
982 | 984 | | |
983 | | - | |
984 | | - | |
| 985 | + | |
| 986 | + | |
985 | 987 | | |
986 | 988 | | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
987 | 996 | | |
988 | | - | |
989 | | - | |
990 | | - | |
991 | | - | |
992 | | - | |
993 | | - | |
994 | 997 | | |
995 | 998 | | |
996 | 999 | | |
| |||
0 commit comments