(tasks: BackgroundTaskState[])
| 72 | * plan_ready) surface the CTA; plain running shows just the diamond + label. |
| 73 | */ |
| 74 | export 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 |
no outgoing calls
no test coverage detected