Commit 4f167ab
authored
🤖 fix: emit change event when background process exit is detected (#1060)
## Problem
The background bash banner was not updating when processes exited
naturally. It would appear when a process started and disappear if you
clicked terminate, but stayed visible when a process completed on its
own.
## Root Cause
When `list()` or `getProcess()` polled the exit code and discovered a
process had exited, the status was updated internally but `emitChange()`
was never called to notify the subscription in `router.ts`.
## Fix
Add `emitChange(proc.workspaceId)` in both `refreshRunningStatuses()`
and `getProcess()` when a process is discovered to have exited.
_Generated with `mux`_1 parent 9c2c27c commit 4f167ab
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
| 422 | + | |
422 | 423 | | |
423 | 424 | | |
424 | 425 | | |
| |||
584 | 585 | | |
585 | 586 | | |
586 | 587 | | |
| 588 | + | |
587 | 589 | | |
588 | 590 | | |
589 | 591 | | |
| |||
0 commit comments