MCPcopy
hub / github.com/codeaashu/claude-code / getVisibleAgentTasks

Function getVisibleAgentTasks

src/components/CoordinatorAgentStatus.tsx:31–33  ·  view source on GitHub ↗
(tasks: AppState['tasks'])

Source from the content-addressed store, hash-verified

29 * and index resolvers so the math can't drift.
30 */
31export 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}
34export function CoordinatorTaskPanel(): React.ReactNode {
35 const tasks = useAppState(s => s.tasks);
36 const viewingAgentTaskId = useAppState(s_0 => s_0.viewingAgentTaskId);

Callers 3

CoordinatorTaskPanelFunction · 0.85
PromptInputFunction · 0.85
ModeIndicatorFunction · 0.85

Calls 2

isPanelAgentTaskFunction · 0.85
valuesMethod · 0.80

Tested by

no test coverage detected