Skip to content

shouldResubmitMessages throws if messages is mutated #7473

@li-kai

Description

@li-kai

Description

Calling messages.pop() when using useChat or any of the providers throws TypeError: Cannot read property of undefined when re-submitting the message.

AI SDK Version

  • ai: beta25

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