Skip to content

experimental_resume is calling api/chat?chatId=undefined despite having set useChat(id) #6407

Open
@ShadowWalker2014

Description

@ShadowWalker2014

Description

Hi while implementing experimental resume following the official guide, we ran into this issue:
experimental_resume makes call to api/chat?chatId=undefined
but we have provided id to useChat({ id: projectId })
and made sure that the projectId passed in is not undefined

Even the source code for useChat seems to suggest that the id will be provided or a fallback random ID will be created, but how come this is giving undefined value while making GET request?

Please help resolve this / provide some pointers, thanks in advance!

Image

AI SDK Version

  • resume-stream: 2.1.0
  • ai: 4.3.15

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions