Skip to content

Commit

Permalink
Fix: mark useAssistant as in progress for append/submitMessage. (#1423)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgrammel committed Apr 23, 2024
1 parent 31553e9 commit 22a737e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/strong-countries-clap.md
@@ -0,0 +1,5 @@
---
'ai': patch
---

Fix: mark useAssistant as in progress for append/submitMessage.
2 changes: 2 additions & 0 deletions packages/core/react/use-assistant.ts
Expand Up @@ -141,6 +141,8 @@ export function useAssistant({
data?: Record<string, string>;
},
) => {
setStatus('in_progress');

setMessages(messages => [
...messages,
{
Expand Down

0 comments on commit 22a737e

Please sign in to comment.