Файли
openidea/crates
ntbang0901 b01ba2da03 fix(agents): replace a tool call's content on update and say when a reply hit the token limit (#8200)
In ACP, content on tool_call_update replaces the call's whole content array, but the timeline replaced a call's output, diffs and images only when the update carried that kind. With Claude Code, an Edit that failed and was retried showed both diffs in "Edited 1 file", and the failed row kept a diff button, because the failed result carries only the error text. An update with content now replaces all three, keeping a command's announced "$ cmd" line.

A turn the agent ended at its output token limit (max_tokens) or its limit of model requests (max_turn_requests) looked finished; it now ends with a line saying so, as a refusal already does.

Co-authored-by: ntbang0901 <[email protected]>
2026-12-05 18:02:18 +08:00
..