(appState: AppState)
| 203 | * before exiting. |
| 204 | */ |
| 205 | export function hasActiveInProcessTeammates(appState: AppState): boolean { |
| 206 | // Check for running in-process teammate tasks |
| 207 | for (const task of Object.values(appState.tasks)) { |
| 208 | if (task.type === 'in_process_teammate' && task.status === 'running') { |
| 209 | return true |
| 210 | } |
| 211 | } |
| 212 | return false |
| 213 | } |
| 214 | |
| 215 | /** |
| 216 | * Checks if there are in-process teammates still actively working on tasks. |