Skip to content

Fix premature turn completion during tool execution#9

Merged
BunsDev merged 1 commit into
mainfrom
fix/session-turn-complete-tools
May 30, 2026
Merged

Fix premature turn completion during tool execution#9
BunsDev merged 1 commit into
mainfrom
fix/session-turn-complete-tools

Conversation

@BunsDev
Copy link
Copy Markdown
Member

@BunsDev BunsDev commented May 30, 2026

Summary

  • Avoid emitting TurnComplete for intermediate tool_use responses so chat mode stays active while Bash/REPL/code tools run.
  • Avoid marking recoverable max_tokens continuations as terminal turns.
  • Add regression coverage for terminal vs intermediate turn-completion emission.

Test Plan

  • git diff --check
  • cargo test -p claurst-query --manifest-path src-rust/Cargo.toml

Copilot AI review requested due to automatic review settings May 30, 2026 01:48
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@BunsDev BunsDev merged commit e4b79a7 into main May 30, 2026
1 check failed
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.

2 participants