From edd13482a0a7f32d92466e4c0cd6e374653e2780 Mon Sep 17 00:00:00 2001 From: Danielle Maywood Date: Mon, 23 Mar 2026 14:40:10 +0000 Subject: [PATCH] fix(site): focus chat input after submitting diff comment (#23440) --- .../AgentsPage/components/DiffViewer/CommentableDiffViewer.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/site/src/pages/AgentsPage/components/DiffViewer/CommentableDiffViewer.tsx b/site/src/pages/AgentsPage/components/DiffViewer/CommentableDiffViewer.tsx index 8858b4775d..c2caaf3ea0 100644 --- a/site/src/pages/AgentsPage/components/DiffViewer/CommentableDiffViewer.tsx +++ b/site/src/pages/AgentsPage/components/DiffViewer/CommentableDiffViewer.tsx @@ -294,6 +294,7 @@ export const CommentableDiffViewer: FC = ({ if (text.trim()) { chatInputRef?.current?.insertText(text); } + chatInputRef?.current?.focus(); setActiveCommentBox(null); };