Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

fix(ui): keep the configuration header in view at the output limit

Bernhard Jackiewiczd7ea48a44128
diff --git a/graph-ui/src/browser-ai/BrowserChatDock.tsx b/graph-ui/src/browser-ai/BrowserChatDock.tsx
index 902d5fe9b..1cdd8968d 100644
--- a/graph-ui/src/browser-ai/BrowserChatDock.tsx
+++ b/graph-ui/src/browser-ai/BrowserChatDock.tsx
@@ -263,7 +263,7 @@ export default function BrowserChatDock({ proactiveSelection, selectionScope = "
if (!settingsOpen || !focusOutputLimit.current) return;
focusOutputLimit.current = false;
const field = document.getElementById('cbm-chat-output-tokens');
- if (field instanceof HTMLInputElement) { field.focus(); field.select(); field.scrollIntoView?.({ block: 'center' }); }
+ if (field instanceof HTMLInputElement) { field.focus({ preventScroll: true }); field.select(); field.scrollIntoView?.({ block: 'nearest' }); }
}, [settingsOpen]);
const openOutputLimit = (): void => { focusOutputLimit.current = true; setSettingsOpen(true); };
const limitNote = (shortened: boolean | undefined, limit: TokenLimits | undefined, automatic?: boolean): LimitNote | undefined => shortened