From 5a4e470afb09888340a2a540c9a0ec9908e1cd3b Mon Sep 17 00:00:00 2001 From: dormouse-bot <287024035+dormouse-bot@users.noreply.github.com> Date: Wed, 1 Jul 2026 07:56:55 +0000 Subject: [PATCH] chore(activity-monitor): drop dead output-tracking assignments in ALERT_RINGING The firstOutputAt/outputCountSinceAttention assignments in the ALERT_RINGING branch of onData are overwritten before any read (enterMightBeBusy never reads them; seedFromLatestOutput or enterBusy resets them downstream). Remove the dead, misleading lines. Co-Authored-By: Claude Opus 4.8 --- lib/src/lib/activity-monitor.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/src/lib/activity-monitor.ts b/lib/src/lib/activity-monitor.ts index b200294b..8004ba64 100644 --- a/lib/src/lib/activity-monitor.ts +++ b/lib/src/lib/activity-monitor.ts @@ -77,8 +77,6 @@ export class ActivityMonitor { // If they haven't (view hidden, or just not focused), new output from // e.g. a shell prompt shouldn't silently dismiss the alert. if (!this.hasAttention()) return; - this.firstOutputAt = now; - this.outputCountSinceAttention = 1; this.enterMightBeBusy(); break; }