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

Function shouldKillTask

src/commands/clear/conversation.ts:95–96  ·  view source on GitHub ↗
(task: AppState['tasks'][string])

Source from the content-addressed store, hash-verified

93 const preservedAgentIds = new Set<string>()
94 const preservedLocalAgents: LocalAgentTaskState[] = []
95 const shouldKillTask = (task: AppState['tasks'][string]): boolean =>
96 'isBackgrounded' in task && task.isBackgrounded === false
97 if (getAppState) {
98 for (const task of Object.values(getAppState().tasks)) {
99 if (shouldKillTask(task)) continue

Callers 1

clearConversationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected