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
{{ message }}
Repository navigation
Bug: needsApproval tool approval-responded state never transitions to output-available (think@0.7.3 + agents@0.13.3) #1627
Bug: Tool approval continuation result not reaching frontend (think@0.7.3 + agents@0.13.3)
Environment
@cloudflare/think@0.7.3
agents@0.13.3
@cloudflare/ai-chat@0.7.2
Description
After a user approves a needsApproval tool, the tool executes successfully on the server, but the tool part state never transitions from approval-responded to output-available on the frontend. The UI permanently shows "Executing..." with a spinning indicator.
No subsequent cf_agent_message_updated or stream chunk updates the state to output-available.
Workaround
In our beforeTurn override, we clean up stale approval-responded parts on the next non-continuation turn. This means the state only resolves when the user sends another message, not immediately after approval.
Activity
threepointone commentedon May 31, 2026
Will fix this by tomorrow's release, thanks
whoiskatrin commentedon May 31, 2026
@powfan can you give this a quick spin please? #1629