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.

Remove redundant comments in ChatInput component to enhance code clarity

Salman-Ahamedd43b601e37dd
diff --git a/packages/app/src/react/features/ai-chat/components/input.tsx b/packages/app/src/react/features/ai-chat/components/input.tsx
index 3fdb30e4..fb4452aa 100644
--- a/packages/app/src/react/features/ai-chat/components/input.tsx
+++ b/packages/app/src/react/features/ai-chat/components/input.tsx
@@ -247,14 +247,6 @@ export const ChatInput = forwardRef<ChatInputRef, ChatInputProps>(
// Fallback: let browser handle it normally if file creation fails
return;
}
- } else {
- // For normal text, let the browser handle it naturally
- // This preserves all default browser behavior including:
- // - Natural cursor positioning
- // - Text selection replacement
- // - Undo/redo support
- // - Native textarea behavior
- return;
}
},
[handleFileDrop],