Skip to content

reproduction: streamText silently skips local tool approvals when a#17051

Draft
lgrammel wants to merge 1 commit into
mainfrom
bug-17033-1
Draft

reproduction: streamText silently skips local tool approvals when a#17051
lgrammel wants to merge 1 commit into
mainfrom
bug-17033-1

Conversation

@lgrammel

Copy link
Copy Markdown
Collaborator

Bug

streamText silently skips local tool approvals when a later context message follows the approval response

Reproduction

  • Added runnable reproduction at examples/ai-functions/src/reproduction/issue-17033-trailing-context-skips-tool-approval.ts.
  • The control approval executed the local tool exactly once when the approval response was the final message.
  • Appending a user message after the same approval response caused the tool to execute zero times instead of exactly once.
  • The provider prompt contained the unresolved tool call and trailing user context without a tool result.

Relevant Documentation

Related Issues

Reproduces #17033

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant