Skip to content

addToolResult in v5 doesn't process the stream #6435

Open
@zhm

Description

@zhm

Description

In the v5 5.0.0-alpha.3, ChatStore.addToolResult doesn't ever process the message stream. It's calling triggerRequest from inside a chat.jobExecutor.run() block which causes it to never actually run the handler since triggerRequest also uses the job executor. When I remove the await on triggerRequest it does kind of fix it. But then it doesn't seem to update the tool call properly, but does process the following messages.

AI SDK Version

5.0.0-alpha.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions