Skip to content

Filter out ToolCallResults for tools canceled by a Retry in ui adapter - #326

Open
msullivan wants to merge 1 commit into
mainfrom
track-discarded
Open

msullivan wants to merge 1 commit into
mainfrom
track-discarded

Conversation

@msullivan

Copy link
Copy Markdown
Collaborator

In some variants of a durable setup, it's impossible to prevent tool
results for tools that have been aborted due to a llm retry from
showing up in the workflow stream after the Retry event does.
Downstream users will need to deal with this.

Add a RetryFilter class for dealing with it and also update the ui
adapter to use it. MessageHydrator and other things use it
internally to make their logic work better but don't filter the
events.

Maybe we want to expose a more ergonomic adapater also, I'm not sure?

…apter

In some variants of a durable setup, it's impossible to prevent tool
results for tools that have been aborted due to a llm retry from
showing up in the workflow stream *after* the Retry event does.
Downstream users will need to deal with this.

Add a RetryFilter class for dealing with it and also update the ui
adapter to use it. MessageHydrator and other things use it
internally to make their logic work better but don't filter the
events.

Maybe we want to expose a more ergonomic adapater also, I'm not sure?
@msullivan
msullivan requested review from 1st1 and anbuzin October 7, 2026 22:58
@vercel

vercel Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
ai-python Ready Ready Preview, v0 Oct 7, 2026 10:59pm UTC

This branch was successfully deployed

1 active deployment
Preview — 6cf395d5 Deployed Oct 7, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant