Skip to content

Commit 4fe31d4

Browse files
jherrclaude
andauthored
fix(ai-client): re-evaluate continuation after chained tool approvals (#347)
* fix(ai-client): re-evaluate continuation after chained tool approvals When a second tool approval arrives while a continuation stream is already in progress, the checkForContinuation call is skipped due to the continuationPending guard. This adds a continuationSkipped flag so that, once the active stream finishes, the client re-checks whether another continuation is needed, ensuring chained approval flows complete correctly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * chore: add changeset for chained approval fix Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Approval flow documentation * Small multiple approval fix --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0ea82f6 commit 4fe31d4

5 files changed

Lines changed: 653 additions & 6 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@tanstack/ai-client': patch
3+
---
4+
5+
Fix chained tool approval flows where a second approval arriving during an active continuation stream was silently dropped

0 commit comments

Comments
 (0)