(tasks: AppState['tasks'])
| 29 | * and index resolvers so the math can't drift. |
| 30 | */ |
| 31 | export function getVisibleAgentTasks(tasks: AppState['tasks']): LocalAgentTaskState[] { |
| 32 | return Object.values(tasks).filter((t): t is LocalAgentTaskState => isPanelAgentTask(t) && t.evictAfter !== 0).sort((a, b) => a.startTime - b.startTime); |
| 33 | } |
| 34 | export function CoordinatorTaskPanel(): React.ReactNode { |
| 35 | const tasks = useAppState(s => s.tasks); |
| 36 | const viewingAgentTaskId = useAppState(s_0 => s_0.viewingAgentTaskId); |
no test coverage detected