Skip to content

fix(harness): avoid incorrectly marked invalid tool calls due to dynamic flag being dropped - #17807

Merged
felixarntz merged 2 commits into
mainfrom
fa/fix-harness-dynamic-tool-calls
Jul 22, 2026
Merged

fix(harness): avoid incorrectly marked invalid tool calls due to dynamic flag being dropped#17807
felixarntz merged 2 commits into
mainfrom
fa/fix-harness-dynamic-tool-calls

Conversation

@felixarntz

Copy link
Copy Markdown
Collaborator

Background

Provider-executed dynamic tool calls can be absent from the merged tool set. The harness dropped their dynamic flag before validation, causing otherwise valid calls to be marked invalid.

Summary

  • Preserve the optional dynamic flag when converting harness tool-call events for validation.
  • Add regression coverage for undeclared provider-executed dynamic tools.

Checklist

  • All commits are signed (PRs with unsigned commits cannot be merged)
  • Tests have been added / updated (for bug fixes / features)
  • Documentation has been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)
  • I have reviewed this pull request (self-review)

@felixarntz
felixarntz merged commit 2de0611 into main Jul 22, 2026
51 checks passed
@felixarntz
felixarntz deleted the fa/fix-harness-dynamic-tool-calls branch July 22, 2026 22:28
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Published in:

Package Version
ai 7.0.36 github npm
@ai-sdk/amazon-bedrock 5.0.29 github npm
@ai-sdk/angular 3.0.36 github npm
@ai-sdk/azure 4.0.20 github npm
@ai-sdk/google 4.0.23 github npm
@ai-sdk/google-vertex 5.0.27 github npm
@ai-sdk/harness 1.0.41 github npm
@ai-sdk/harness-claude-code 1.0.42 github npm
@ai-sdk/harness-codex 1.0.43 github npm
@ai-sdk/harness-deepagents 1.0.40 github npm
@ai-sdk/harness-opencode 1.0.42 github npm
@ai-sdk/harness-pi 1.0.41 github npm
@ai-sdk/langchain 3.0.36 github npm
@ai-sdk/llamaindex 3.0.36 github npm
@ai-sdk/openai 4.0.19 github npm
@ai-sdk/otel 1.0.36 github npm
@ai-sdk/policy-opa 1.0.36 github npm
@ai-sdk/react 4.0.39 github npm
@ai-sdk/rsc 3.0.36 github npm
@ai-sdk/sandbox-just-bash 1.0.41 github npm
@ai-sdk/sandbox-vercel 1.0.41 github npm
@ai-sdk/svelte 5.0.36 github npm
@ai-sdk/tui 1.0.37 github npm
@ai-sdk/vue 4.0.36 github npm
@ai-sdk/workflow 1.0.36 github npm
@ai-sdk/workflow-harness 1.0.41 github npm

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.

2 participants