Skip to content

fix(tool runner): don't exit early on pause_turn#906

Open
karpetrosyan wants to merge 2 commits intoanthropics:nextfrom
karpetrosyan:properly-handle-pause-turn
Open

fix(tool runner): don't exit early on pause_turn#906
karpetrosyan wants to merge 2 commits intoanthropics:nextfrom
karpetrosyan:properly-handle-pause-turn

Conversation

@karpetrosyan
Copy link
Copy Markdown
Collaborator

@karpetrosyan karpetrosyan commented Feb 11, 2026

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.

@karpetrosyan karpetrosyan requested a review from a team as a code owner February 11, 2026 09:33
@stainless-app stainless-app Bot force-pushed the next branch 6 times, most recently from 3d64763 to 0b536ae Compare April 3, 2026 18:55
@localden localden added the code-change Hand-written SDK code — fix directly in this repo label Apr 27, 2026
@stainless-app stainless-app Bot force-pushed the next branch 2 times, most recently from 6667f4e to d3aff28 Compare April 30, 2026 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code-change Hand-written SDK code — fix directly in this repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants