Skip to content

[AGENT-LOOP] Don't fail the message when a step comes back empty - #29615

Open
pmilliotte wants to merge 2 commits into
mainfrom
pierre/runner/empty-step
Open

[AGENT-LOOP] Don't fail the message when a step comes back empty#29615
pmilliotte wants to merge 2 commits into
mainfrom
pierre/runner/empty-step

Conversation

@pmilliotte

Copy link
Copy Markdown
Contributor

Description

An agent step that came back with no tool call and no text failed the whole message with empty_content, even when the answer had already been written in an earlier step — the check only looked at the text streamed in the current step. It now checks the answer accumulated on the agent message, and when there is genuinely nothing anywhere it re-runs the step once with tool use disabled to force a final answer before erroring.

Tests

Existing agent-loop unit tests pass; validated against a production trace where the answer was written in step 1 and step 2 came back empty.

Risk

Low — the forced re-call only happens on a step that would otherwise have failed.

Deploy Plan

  • Standard deploy, no migration needed
  • Deploy main on front

@vercel

vercel Bot commented Jul 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated (UTC)
playground Ignored Ignored Jul 28, 2026 1:27pm
storybook Ignored Ignored Preview Jul 28, 2026 1:27pm

Request Review

@dust-agent dust-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coding Rules LGTM \o/

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