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

Function hasWorkingInProcessTeammates

src/utils/teammate.ts:220–231  ·  view source on GitHub ↗
(appState: AppState)

Source from the content-addressed store, hash-verified

218 * Used to determine if we should wait before sending shutdown prompts.
219 */
220export function hasWorkingInProcessTeammates(appState: AppState): boolean {
221 for (const task of Object.values(appState.tasks)) {
222 if (
223 task.type === 'in_process_teammate' &&
224 task.status === 'running' &&
225 !task.isIdle
226 ) {
227 return true
228 }
229 }
230 return false
231}
232
233/**
234 * Returns a promise that resolves when all working in-process teammates become idle.

Callers 1

runFunction · 0.85

Calls 1

valuesMethod · 0.80

Tested by

no test coverage detected