Release Notes
Patch Changes
f66ac32: fix(ai): prune orphaned tool-approval responses in
pruneMessagesWhen pruning a specific tool by name (
toolCalls: [{ type, tools: [...] }]),pruneMessagesleft the tool'stool-approval-responsein place while removing itstool-approval-requestandtool-call. The tool name of an approval response was resolved per-message, but approval responses live in a separatetoolmessage from their approval request, so the name could never be resolved and the response was always kept. Tool name resolution is now done across all messages, so approval requests and responses are pruned together.