Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix (ui): prevent early addToolResult submission #5427

Merged
merged 21 commits into from
Mar 31, 2025
Merged

fix (ui): prevent early addToolResult submission #5427

merged 21 commits into from
Mar 31, 2025

Conversation

lgrammel
Copy link
Collaborator

@lgrammel lgrammel commented Mar 28, 2025

Fixes #4491

Background

Submitting client-side tool results using addToolResult before the stream finishes can lead to a double submission of the next step. To keep the conversation consistent, manually submitted tool results must not trigger a submission before the streaming has finished.

Tasks

  • implementation
    • react
    • svelte
    • solid
    • vue
  • changeset

Future Work

Introduce a message store to allow for parallel streaming updates and user-triggered tool result submission.

@lgrammel lgrammel self-assigned this Mar 28, 2025
@lgrammel lgrammel changed the title prevent early tool result submission fix (ui): prevent early addToolResult submission Mar 28, 2025
@lgrammel lgrammel merged commit a043b14 into main Mar 31, 2025
7 checks passed
@lgrammel lgrammel deleted the lg/U1Vlpqb branch March 31, 2025 16:25
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.

addToolResult fails to update parallel client tool call results
2 participants