MCPcopy Create free account
hub / github.com/codeaashu/claude-code / describeTeammateActivity

Function describeTeammateActivity

src/components/tasks/taskStatusUtils.tsx:77–82  ·  view source on GitHub ↗
(t: DeepImmutable<InProcessTeammateTaskState>)

Source from the content-addressed store, hash-verified

75 * recent-activity summary → last activity description → 'working'.
76 */
77export function describeTeammateActivity(t: DeepImmutable<InProcessTeammateTaskState>): string {
78 if (t.shutdownRequested) return 'stopping';
79 if (t.awaitingPlanApproval) return 'awaiting approval';
80 if (t.isIdle) return 'idle';
81 return (t.progress?.recentActivities && summarizeRecentActivities(t.progress.recentActivities)) ?? t.progress?.lastActivity?.activityDescription ?? 'working';
82}
83
84/**
85 * Returns true when BackgroundTaskStatus would render nothing because the

Callers 2

BackgroundTaskFunction · 0.85

Calls 1

Tested by

no test coverage detected