handling-stop-reasons changedbuild-with-claude/handling-stop-reasons
Nearest release: v2.1.283, published 3 hours after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+8added
Lines−2removed
From line
2,394
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits8to this page, all time
The whole hunk
from line 2394, old and new numbered
/
from line 2394
23942394
23952395 for _ in range(max_continuations):
23962396 response = client.messages.create(
2397 model="claude-opus-5-5", max_tokens=4096, messages=messages, tools=tools
2397 model="claude-opus-5-5",
2398 max_tokens=4096,
2399 messages=messages,
2400 tools=tools,
23982401 )
23992402
24002403 if response.stop_reason != "pause_turn":
from line 3037
30343037
30353038 while True:
30363039 response = client.messages.create(
3037 model="claude-opus-5-5", max_tokens=1024, messages=messages, tools=tools
3040 model="claude-opus-5-5",
3041 max_tokens=1024,
3042 messages=messages,
3043 tools=tools,
30383044 )
30393045
30403046 if response.stop_reason == "tool_use":
No line in this hunk matches that.