Skip to content

fix: remove predictedPromptSection from systemMessage to prevent duplicate output#8

Merged
Turtle-Hwan merged 1 commit into
mainfrom
fix/stop-hook-duplicate-output
May 12, 2026
Merged

fix: remove predictedPromptSection from systemMessage to prevent duplicate output#8
Turtle-Hwan merged 1 commit into
mainfrom
fix/stop-hook-duplicate-output

Conversation

@Turtle-Hwan
Copy link
Copy Markdown
Contributor

@Turtle-Hwan Turtle-Hwan commented May 12, 2026

Summary

  • Fix a bug where predictedPromptSection appeared in both reason and systemMessage, causing the "Iteration N : ..." line to be printed twice from iteration 2 onward
  • Remove predictedPromptSection from systemMessage — it now lives only in reason

Test plan

  • pnpm test passes
  • Manually verify that the iteration prompt appears only once per iteration when running Clone Loop with 2+ iterations

…icate 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 <noreply@anthropic.com>
@Turtle-Hwan Turtle-Hwan merged commit 4f143f1 into main May 12, 2026
@Turtle-Hwan Turtle-Hwan deleted the fix/stop-hook-duplicate-output branch May 12, 2026 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant