From 9d76d48d0a52a54496e6a6f00ad3c19128aea1bf Mon Sep 17 00:00:00 2001 From: kshitij Date: Mon, 3 Aug 2026 20:07:01 +0530 Subject: [PATCH] fix(lint): import sort + eslint-disable for timer-handle ref clear in effect MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CI-caught: cron-jobs-section had an extra blank line between sorted imports; use-message-stream's visibility-flush effect assigns flushHandleRef.current=null inside a useEffect (legitimate timer-clear, not an atom mirror) — eslint-disable-next-line per the rule's documented convention. --- apps/desktop/src/app/chat/sidebar/cron-jobs-section.tsx | 1 - apps/desktop/src/app/session/hooks/use-message-stream/index.ts | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/desktop/src/app/chat/sidebar/cron-jobs-section.tsx b/apps/desktop/src/app/chat/sidebar/cron-jobs-section.tsx index 95c01988d169a..fea0d8dff0766 100644 --- a/apps/desktop/src/app/chat/sidebar/cron-jobs-section.tsx +++ b/apps/desktop/src/app/chat/sidebar/cron-jobs-section.tsx @@ -2,7 +2,6 @@ import { useStore } from '@nanostores/react' import { useEffect, useMemo, useState } from 'react' import { usePaneVisible } from '@/components/pane-shell/pane-visibility' - import { ActionsContextMenu, type MenuKit, renderActionItem } from '@/components/ui/actions-menu' import { Codicon } from '@/components/ui/codicon' import { DisclosureCaret } from '@/components/ui/disclosure-caret' diff --git a/apps/desktop/src/app/session/hooks/use-message-stream/index.ts b/apps/desktop/src/app/session/hooks/use-message-stream/index.ts index 7d047afe06e13..22f405bf7f7a6 100644 --- a/apps/desktop/src/app/session/hooks/use-message-stream/index.ts +++ b/apps/desktop/src/app/session/hooks/use-message-stream/index.ts @@ -360,6 +360,7 @@ export function useMessageStream({ // Page Visibility does not report every Windows/Linux focus transition. // Flush queued deltas on both signals so returning to a chat cannot leave a // completed chunk waiting for the next throttled timer. + // eslint-disable-next-line no-restricted-syntax -- timer-handle clear inside effect, not an atom mirror useEffect(() => { const flushPendingDeltas = () => { if (flushHandleRef.current !== null) {