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

Function isBackgroundTask

src/tasks/types.ts:37–46  ·  view source on GitHub ↗
(task: TaskState)

Source from the content-addressed store, hash-verified

35 * 2. It has been explicitly backgrounded (not a foreground task)
36 */
37export function isBackgroundTask(task: TaskState): task is BackgroundTaskState {
38 if (task.status !== 'running' && task.status !== 'pending') {
39 return false
40 }
41 // Foreground tasks (isBackgrounded === false) are not yet "background tasks"
42 if ('isBackgrounded' in task && task.isBackgrounded === false) {
43 return false
44 }
45 return true
46}
47

Callers 9

PromptInputFunction · 0.85
ModeIndicatorFunction · 0.85
BackgroundTasksDialogFunction · 0.85
_temp3Function · 0.85
shouldHideTasksFooterFunction · 0.85
runHeadlessStreamingFunction · 0.85
drainCommandQueueFunction · 0.85
runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected