fix(chatbot): clear attached assets on message send and remove drag-drop toast

This commit is contained in:
yiling
2026-07-11 14:41:23 +08:00
parent 3d266a5606
commit 2f68043e17
2 changed files with 1 additions and 1 deletions
@@ -201,7 +201,6 @@ export function useFileSystemDnd({
}))
useChatbotStore.getState().addAssets(chatAssets)
toast.success(`Added ${chatAssets.length} item(s) to chatbot context`)
onClearSelection()
setDragState(undefined)
return
+1
View File
@@ -139,6 +139,7 @@ export const useChatbotStore = create<ChatbotState>((set) => ({
set({
messages: [...state.messages, optimisticMsg],
isStreaming: true,
chatAssets: [],
})
const assetIds = state.chatAssets.map((a) => a.id)