From ec2aeed2bfbeb40db2597907b26c9a334668fe90 Mon Sep 17 00:00:00 2001 From: gsxdsm Date: Wed, 8 Jul 2026 07:16:53 -0700 Subject: [PATCH] fix(dashboard): drop unknown-rule eslint-disable in RuntimeFallbackBadge The repo eslint config omits react-hooks/exhaustive-deps, so a disable directive for it is itself a lint error (rule-not-found). Replace with a plain comment documenting the intentional dep omission. Co-Authored-By: Claude Opus 4.8 (1M context) --- packages/dashboard/app/components/RuntimeFallbackBadge.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/dashboard/app/components/RuntimeFallbackBadge.tsx b/packages/dashboard/app/components/RuntimeFallbackBadge.tsx index 8871659b29..689d1f5a61 100644 --- a/packages/dashboard/app/components/RuntimeFallbackBadge.tsx +++ b/packages/dashboard/app/components/RuntimeFallbackBadge.tsx @@ -32,7 +32,9 @@ function RuntimeFallbackBadgeComponent({ taskId, isInViewport, projectId }: Runt if (status.shouldToastNow && status.message) { addToast(status.message, "warning"); } - // eslint-disable-next-line react-hooks/exhaustive-deps -- addToast identity is stable per ToastProvider instance + // FNXC:RuntimeFallbackUI 2026-07-08-00:00: + // Intentionally omit addToast from deps — its identity is stable per ToastProvider instance, so re-toasting is keyed only on status changes. + // Note: repo eslint config omits react-hooks/exhaustive-deps, so a disable directive for it is itself a lint error (rule-not-found). Do not re-add one. }, [status.shouldToastNow, status.message]); if (!status.showBadge || !status.message) {