Skip to content

Commit 9b24954

Browse files
committed
fix(site): only show active tasks in waiting for input tab
Previously, the "waiting for input" tab filtered tasks by checking only if current_state.state === "idle". This caused stopped or errored tasks to appear in the tab if they had an idle state, which was incorrect. Now, tasks are filtered by both idle state AND active status, ensuring only running tasks that are actually waiting for user input are shown. --- 🤖 This change was written by Claude Code using Coder Tasks and reviewed by a human 🏂
1 parent 02bac71 commit 9b24954

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/src/pages/TasksPage/TasksPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const TasksPage: FC = () => {
4444
refetchInterval: 10_000,
4545
});
4646
const idleTasks = tasksQuery.data?.filter(
47-
(task) => task.current_state?.state === "idle",
47+
(task) => task.current_state?.state === "idle" && task.status === "active",
4848
);
4949
const displayedTasks =
5050
tab.value === "waiting-for-input" ? idleTasks : tasksQuery.data;

0 commit comments

Comments
 (0)