Skip to content

fix(core): report missing tool calls as errors - #822

Open
rahulduvedi wants to merge 1 commit into
truefoundry:mainfrom
rahulduvedi:fix/issue-447-missing-tool-call-error
Open

rahulduvedi wants to merge 1 commit into
truefoundry:mainfrom
rahulduvedi:fix/issue-447-missing-tool-call-error

Conversation

@rahulduvedi

@rahulduvedi rahulduvedi commented Sep 21, 2026

Copy link
Copy Markdown

This fixes a case where the model returns finish_reason: tool_calls without an actual tool call. Instead of silently marking the agent as done, it now surfaces an error for both root agents and sub-agents.

I also added a regression test for this behavior.

Tested with pnpm build, pnpm test, pnpm typecheck, pnpm lint:ci, and pnpm format:check.

Addresses #447.

@changeset-bot

changeset-bot Bot commented Sep 21, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: a1ed1f7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@truefoundry/trueforge-core Patch
@truefoundry/trueforge Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant