23587433e2
* claim: #9495 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Assistant: say when a reply hit its length limit or was declined, not that the model lacks tools (#9495) The API client never read why an answer stopped, so a Claude reply cut off at max_tokens while thinking (its thinking text is empty by default), or a refusal, ended the turn as normal with nothing said. The chat then blamed tool support: "The model didn't use SolidCraft's tools". Reply now carries the stop reason: Anthropic stop_reason max_tokens and refusal, or OpenAI finish_reason length and content_filter and a message refusal. Any other value is a normal end. The turn ends with that reason, which already keeps the tool-calling notice away, and the chat shows what happened in place of the raw "(max_tokens)", for ACP agents too. A tool call cut off at the length limit has incomplete input, so it is neither run nor kept in the history. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>