mirror of
https://github.com/browseros-ai/BrowserOS.git
synced 2026-05-18 11:06:19 +00:00
Add window focus listener in ChatFooter that focuses the textarea when the side panel receives focus. Handles both initial open (via document.hasFocus check on mount) and re-focus scenarios (via window focus event). Guards against stealing focus from other interactive elements. Companion Chromium fix: side_panel_coordinator.cc now always calls RequestFocus() in PopulateSidePanel(), not just when there's no previous entry — ensuring the side panel WebContents receives focus on every open/toggle. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>