From f40f23dcb9d60cea3c329f060c5057db3949ca59 Mon Sep 17 00:00:00 2001 From: Schwitzz Date: Fri, 30 Oct 2026 12:22:10 -0500 Subject: [PATCH] fix: sync focused suggestion index when clicking Line N pill --- apps/web/src/features/ai/AISidebar.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/web/src/features/ai/AISidebar.tsx b/apps/web/src/features/ai/AISidebar.tsx index c27b1a2..50ade10 100644 --- a/apps/web/src/features/ai/AISidebar.tsx +++ b/apps/web/src/features/ai/AISidebar.tsx @@ -1470,6 +1470,7 @@ export function AISidebar({ fullPage = false }: AISidebarProps) { title="Click to highlight this line on the writing screen" onClick={(e) => { e.stopPropagation(); + setFocusedIndex(idx); handleHighlightLine(sg.lineNumber ?? 1); }} >