Skip to content

Conversation

@karpetrosyan
Copy link
Collaborator

@karpetrosyan karpetrosyan commented Feb 10, 2026

fixes #1170

Problem

The tool runner was exiting early when encountering a pause_turn stop reason, preventing it from continuing the conversation loop.

pause_turn means the API paused some operation and wants the client to send back the message to continue it, which is why we should send it back instead of just exiting the loop.

Copy link
Contributor

@felixfbecker felixfbecker left a comment

Choose a reason for hiding this comment

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

how should this interact with the max_iterations param? I think the tool runner accepts two (one for the client-side iteration limit, one for the server-side limit). The server one would in effect only control the "chunking" of getting server tool responses.

This behavior should probably be documented

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