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

Function pillNeedsCta

src/tasks/pillLabel.ts:74–82  ·  view source on GitHub ↗
(tasks: BackgroundTaskState[])

Source from the content-addressed store, hash-verified

72 * plan_ready) surface the CTA; plain running shows just the diamond + label.
73 */
74export function pillNeedsCta(tasks: BackgroundTaskState[]): boolean {
75 if (tasks.length !== 1) return false
76 const t = tasks[0]!
77 return (
78 t.type === 'remote_agent' &&
79 t.isUltraplan === true &&
80 t.ultraplanPhase !== undefined
81 )
82}
83

Callers 1

BackgroundTaskStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected