From fec2684e7730cf442739a2ce01bf0a30016d6d92 Mon Sep 17 00:00:00 2001 From: kim jihwan Date: Tue, 12 May 2026 19:28:59 +0900 Subject: [PATCH] fix: remove predictedPromptSection from systemMessage to prevent duplicate output Both reason and systemMessage were rendered to the terminal, causing the iteration prompt to appear twice from iteration 2 onward. Co-Authored-By: Claude Sonnet 4.6 --- hooks/stop-hook.mjs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/hooks/stop-hook.mjs b/hooks/stop-hook.mjs index b42cbe3..4b8487a 100644 --- a/hooks/stop-hook.mjs +++ b/hooks/stop-hook.mjs @@ -421,9 +421,7 @@ confidence ${predictedConfidence}. Evaluate the prediction in context, then continue as if the user had provided the predicted prompt when it is consistent with the current task state. Prediction reasoning: ${prediction.reasoning || ''} -`, `${systemMessage} - -${predictedPromptSection}`) +`, systemMessage) return } @@ -454,9 +452,7 @@ Clone was not confident enough to continue automatically. ${predictedPromptSection} -The loop state file has been removed. Tell the user Clone was not confident enough and wait for human input.`, `Clone Loop stopped because Clone confidence was below threshold. - -${predictedPromptSection}`) +The loop state file has been removed. Tell the user Clone was not confident enough and wait for human input.`, 'Clone Loop stopped because Clone confidence was below threshold.') } main().catch((error) => {