From bffb80e1103bfc9af92eb24aec17822235a5422e Mon Sep 17 00:00:00 2001 From: moyu Date: Thu, 11 Jun 2026 11:44:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86?= =?UTF-8?q?=E6=83=85=E5=86=B5=E4=B8=8Bgoal=E6=97=A0=E6=B3=95=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/commands/goal/goal.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/commands/goal/goal.tsx b/src/commands/goal/goal.tsx index 72287f909..34d1db573 100644 --- a/src/commands/goal/goal.tsx +++ b/src/commands/goal/goal.tsx @@ -23,6 +23,7 @@ import { formatGoalElapsed, formatGoalStatusLabel, getGoal, + incrementGoalTurns, pauseGoal, resumeGoal, setGoal, @@ -49,6 +50,7 @@ function formatGoalStatus(): string { function applySetGoal(objective: string): string { setGoal(objective); + incrementGoalTurns(); persistCurrentGoal(); return `Goal set: ${objective}\n\n${formatGoalStatus()}`; } @@ -118,6 +120,7 @@ export async function call( const summary = applySetGoal(trimmed); onDone(summary, { display: 'system', + shouldQuery: true, metaMessages: [`\n${trimmed}\n`], }); return null; @@ -131,6 +134,7 @@ export async function call( const summary = applySetGoal(trimmed); onDone(summary, { display: 'system', + shouldQuery: true, metaMessages: [`\n${trimmed}\n`], }); }}