Commit 4fe31d4
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
- .changeset
- docs/architecture
- packages/typescript/ai-client
- src
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments