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

Function handleGoalQueueEditResult

apps/kimi-code/src/tui/commands/goal.ts:302–317  ·  view source on GitHub ↗
(
  host: SlashCommandHost,
  result: GoalQueueEditResult,
)

Source from the content-addressed store, hash-verified

300}
301
302async function handleGoalQueueEditResult(
303 host: SlashCommandHost,
304 result: GoalQueueEditResult,
305): Promise<void> {
306 if (result.kind === 'cancel') {
307 await showGoalQueueManager(host, result.goalId);
308 return;
309 }
310
311 await updateGoalQueueItem(host.requireSession(), {
312 goalId: result.goalId,
313 objective: result.objective,
314 });
315 host.track('goal_queue_update');
316 await showGoalQueueManager(host, result.goalId);
317}
318
319export async function createGoal(
320 host: GoalCommandHost,

Callers 1

showGoalQueueEditDialogFunction · 0.85

Calls 4

updateGoalQueueItemFunction · 0.90
showGoalQueueManagerFunction · 0.85
requireSessionMethod · 0.65
trackMethod · 0.65

Tested by

no test coverage detected