diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-03-08 23:46:22 +0000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-03-08 23:46:22 +0000 |
| commit | 4db4aaf61c0cc6161a4676ea7bd4a25a90e39b40 (patch) | |
| tree | 46871f023fb5f17dbf97545cefa31b995926eca8 | |
| parent | e5255dcc85c7c4bb0e8838c0064dd545ed0bd830 (diff) | |
web: include BUDGET_EXCEEDED and BLOCKED in interrupted view
Moved BUDGET_EXCEEDED and BLOCKED states from DONE and ACTIVE sets to the INTERRUPTED set in the frontend, ensuring they appear in the correct tab.
| -rw-r--r-- | web/app.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -229,9 +229,9 @@ function sortTasksByDate(tasks) { // ── Filter ──────────────────────────────────────────────────────────────────── const HIDE_STATES = new Set(['COMPLETED', 'FAILED']); -const ACTIVE_STATES = new Set(['PENDING', 'QUEUED', 'RUNNING', 'READY', 'BLOCKED']); -const INTERRUPTED_STATES = new Set(['CANCELLED', 'FAILED']); -const DONE_STATES = new Set(['COMPLETED', 'TIMED_OUT', 'BUDGET_EXCEEDED']); +const ACTIVE_STATES = new Set(['PENDING', 'QUEUED', 'RUNNING', 'READY']); +const INTERRUPTED_STATES = new Set(['CANCELLED', 'FAILED', 'BUDGET_EXCEEDED', 'BLOCKED']); +const DONE_STATES = new Set(['COMPLETED', 'TIMED_OUT']); // filterActiveTasks uses its own set (excludes PENDING — tasks "in-flight" only) const _PANEL_ACTIVE_STATES = new Set(['RUNNING', 'READY', 'QUEUED', 'BLOCKED']); |
