From 120913307646e04d07efd57ea01adbe8d619e17a Mon Sep 17 00:00:00 2001 From: Neil <4138956+nwparker@users.noreply.github.com> Date: Fri, 29 May 2026 23:26:12 -0700 Subject: [PATCH] Clear checks title focus timer from ref (#3496) * fix: clear checks title focus timer from ref * fix: keep shell detection within lint budget --- .../components/right-sidebar/ChecksPanel.tsx | 11 ++++++++-- src/shared/agent-detection.ts | 22 +++++-------------- 2 files changed, 15 insertions(+), 18 deletions(-) diff --git a/src/renderer/src/components/right-sidebar/ChecksPanel.tsx b/src/renderer/src/components/right-sidebar/ChecksPanel.tsx index 9b8f77a4a3b..fe8f42a8116 100644 --- a/src/renderer/src/components/right-sidebar/ChecksPanel.tsx +++ b/src/renderer/src/components/right-sidebar/ChecksPanel.tsx @@ -168,7 +168,14 @@ export default function ChecksPanel(): React.JSX.Element { } }, []) - useEffect(() => clearTitleInputFocusTimer, [clearTitleInputFocusTimer]) + const setChecksPanelContentRef = useCallback( + (node: HTMLDivElement | null) => { + if (node === null) { + clearTitleInputFocusTimer() + } + }, + [clearTitleInputFocusTimer] + ) // Why: the sidebar no longer uses key={activeWorktreeId} to force a full // remount on worktree switch (that caused an IPC storm on Windows). Reset @@ -1585,7 +1592,7 @@ export default function ChecksPanel(): React.JSX.Element { } return ( -