MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / showGoalStatus

Function showGoalStatus

apps/kimi-code/src/tui/commands/goal.ts:479–490  ·  view source on GitHub ↗
(host: SlashCommandHost)

Source from the content-addressed store, hash-verified

477}
478
479async 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
492function isStreaming(host: SlashCommandHost): boolean {
493 return host.state.appState.streamingPhase !== 'idle';

Callers 1

handleGoalCommandFunction · 0.85

Calls 6

requireSessionMethod · 0.65
trackMethod · 0.65
showStatusMethod · 0.65
requestRenderMethod · 0.65
getGoalMethod · 0.45
addChildMethod · 0.45

Tested by

no test coverage detected