Skip to content

fix: remove redundant preamble from reason and round confidence to 5dp#10

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

fix: remove redundant preamble from reason and round confidence to 5dp#10
Turtle-Hwan merged 1 commit into
mainfrom
fix/stop-hook-output-cleanup

Conversation

@Turtle-Hwan
Copy link
Copy Markdown
Contributor

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

Summary

  • Remove the "You are continuing a Clone Loop." preamble from reason — it duplicated systemMessage ("Clone Loop iteration N."), causing it to appear twice in the terminal output
  • Round confidence to 5 decimal places in both high-confidence and low-confidence branches

Before

Stop says: Clone Loop iteration 3.        ← systemMessage
Stop hook error: You are continuing a Clone Loop.   ← reason preamble (duplicate)
Iteration 3 : ...
Confidence: 0.7275484263905462 / threshold: 0.6

After

Stop says: Clone Loop iteration 3.
Iteration 3 : ...
Confidence: 0.72755 / threshold: 0.6

- Drop "You are continuing a Clone Loop." from reason — it duplicates
  the systemMessage shown above it in the terminal
- Round predictedConfidence to 5 decimal places in all output locations

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Turtle-Hwan Turtle-Hwan merged commit 3924346 into main May 12, 2026
@Turtle-Hwan Turtle-Hwan deleted the fix/stop-hook-output-cleanup branch May 12, 2026 10:43
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