Commit b3b3929
committed
fix(coderd): prevent idle state from showing for paused/errored tasks
Previously, the deriveTaskCurrentState function would return app status
(including "idle" state) for all tasks, regardless of their status. This
caused stopped or errored tasks to incorrectly appear in the "Waiting for
input" tab if they had an idle app status.
Now, the function only returns app status for tasks with "active" status.
For paused or errored tasks, the function returns nil or an appropriate
state based on their actual condition.
This fix is implemented in the backend state machine rather than filtering
on the frontend, ensuring the task state is semantically correct at the
source.
---
🤖 This change was written by Claude Code using Coder Tasks and reviewed by a human 🏂1 parent 02bac71 commit b3b3929
1 file changed
+8
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
349 | 352 | | |
350 | 353 | | |
351 | 354 | | |
| |||
0 commit comments