Files
supabase/apps/studio/components/ui
TaishiandJoshen Lim 81e1acc2d8 Add ability to stop AI Assistant responses mid-stream (#37628)
* get `stop()` from useChat and use it

* Implement abort signal in `generate-v4` API

* Enhance `onStop` functionality in AIAssistant to store partial message when aborted

* Update dependencies in AIAssistant to include `updateMessage` in effect hook (lint warning fix)

* change onStop prop to be required in AssistantChatForm

* add comment for saving partial AI responses

* remove redundant text size class

* Make onStop prop optional in AssistantChatForm and conditionally render stop button

* Add loading spinner to stop button in AssistantChatForm

* simplify opacity handling for submit button

* Add tooltips

* Improve UI error handler for assistant panel

* Small tweak

* Filter out any tool calls that are streaming in generate-v4, happens when aborting the assistant while a tool is being called

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2025-08-08 17:47:46 +07:00
..
2025-08-06 15:03:53 +07:00
2025-08-04 20:55:34 +10:00
2025-08-04 20:55:34 +10:00
2025-08-05 14:26:20 +07:00
2025-08-06 15:03:53 +07:00
2024-07-04 14:48:10 +08:00
2025-01-27 15:08:26 +08:00
2025-03-28 15:51:19 +08:00
2025-08-04 20:55:34 +10:00
2025-06-10 11:49:23 +03:00
2025-07-03 13:43:24 +02:00
2025-04-08 11:32:29 +08:00
2025-04-08 11:32:29 +08:00