From 1b76d5a4866cc4cfa94e0721efa0ff4d3c557fa7 Mon Sep 17 00:00:00 2001 From: tusharmagar Date: Mon, 26 Jan 2026 01:56:43 +0530 Subject: [PATCH] add auto-focus feature to chat input and prompt textarea --- apps/x/apps/renderer/src/App.tsx | 1 + .../src/components/ai-elements/prompt-input.tsx | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/apps/x/apps/renderer/src/App.tsx b/apps/x/apps/renderer/src/App.tsx index 3ac0b24f..ad3ee534 100644 --- a/apps/x/apps/renderer/src/App.tsx +++ b/apps/x/apps/renderer/src/App.tsx @@ -322,6 +322,7 @@ function ChatInputInner({ placeholder="Type your message..." disabled={isProcessing} onKeyDown={handleKeyDown} + autoFocus className="min-h-6 py-0 border-0 shadow-none focus-visible:ring-0 rounded-none" />