You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(chat): persist an action's edit before its turn, and label that turn
The edit an action makes is snapshotted before the turn chat.turn()
requests begins, so a turn that is cancelled or runs out of memory
continues from the edited history rather than from the snapshot the edit
replaced. The turn's run() payload carries trigger "action-turn", not
"action", so a handler that returns early on the action trigger still
answers. An action sent through useChat keeps the request's metadata.
Also moves the action-turn test onto this branch's own surface; it had
used the bound streamText and chat.agent({ system }) from #4884.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AxuSksX18bj1yhnLpkcQ6a
0 commit comments