Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

fix: include attachment ID in chat state management

Salman-Ahamed2391afb913c7
diff --git a/packages/app/src/react/features/ai-chat/hooks/use-chat-state.ts b/packages/app/src/react/features/ai-chat/hooks/use-chat-state.ts
index 3b8273de..a9a94644 100644
--- a/packages/app/src/react/features/ai-chat/hooks/use-chat-state.ts
+++ b/packages/app/src/react/features/ai-chat/hooks/use-chat-state.ts
@@ -215,6 +215,7 @@ export const useChatState = (options: TChatStateConfig): IChatState => {
attachments:
currentAttachments.length > 0
? currentAttachments.map((a) => ({
+ id: a.id,
name: a.name,
type: a.type,
size: a.size,