MCPcopy Create free account
hub / github.com/Noumena-Network/code / shouldKillTask

Function shouldKillTask

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

Source from the content-addressed store, hash-verified

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

Callers 1

clearConversationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected