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.

Enhance IChatMessage interface by adding optional properties for inline thinking messages, last message indication, retry status, and retry click handler. This improves message handling and user interaction in chat functionality.

Salman-Ahamedbdbeb22ae997
diff --git a/packages/app/src/react/shared/types/chat.types.ts b/packages/app/src/react/shared/types/chat.types.ts
index 72b79878..daf7ec51 100644
--- a/packages/app/src/react/shared/types/chat.types.ts
+++ b/packages/app/src/react/shared/types/chat.types.ts
@@ -22,4 +22,8 @@ export interface IChatMessage {
isFirstMessage?: boolean;
files?: FileWithMetadata[];
hideMessageBubble?: boolean;
+ thinkingMessage?: string; // Inline thinking message to show with system messages
+ isLast?: boolean; // Whether this is the last message in the chat
+ isRetrying?: boolean; // Whether this message is being retried
+ onRetryClick?: () => void; // Function to call when retry is clicked
}