(host: SlashCommandHost)
| 477 | } |
| 478 | |
| 479 | async function showGoalStatus(host: SlashCommandHost): Promise<void> { |
| 480 | const { goal } = await host.requireSession().getGoal(); |
| 481 | host.track('goal_status', { status: goal?.status ?? 'none' }); |
| 482 | if (goal === null) { |
| 483 | host.showStatus('No goal set. Start one with `/goal <objective>`.'); |
| 484 | return; |
| 485 | } |
| 486 | host.state.transcriptContainer.addChild( |
| 487 | new GoalStatusMessageComponent(goal), |
| 488 | ); |
| 489 | host.state.ui.requestRender(); |
| 490 | } |
| 491 | |
| 492 | function isStreaming(host: SlashCommandHost): boolean { |
| 493 | return host.state.appState.streamingPhase !== 'idle'; |
no test coverage detected