@adhdev/daemon-core 0.9.82-rc.210 → 0.9.82-rc.211

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adhdev/daemon-core",
3
- "version": "0.9.82-rc.210",
3
+ "version": "0.9.82-rc.211",
4
4
  "description": "ADHDev daemon core — CDP, IDE detection, providers, command execution",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -322,7 +322,17 @@ export class SpecDriver {
322
322
  }
323
323
 
324
324
  private cancelIdleHold(): void {
325
- if (this.idleHoldTimer) { clearTimeout(this.idleHoldTimer); this.idleHoldTimer = null; }
325
+ if (this.idleHoldTimer) {
326
+ clearTimeout(this.idleHoldTimer);
327
+ this.idleHoldTimer = null;
328
+ // If the idle hold was armed by a completion_idle_after forced-idle,
329
+ // cancelling it means new activity arrived while we were waiting.
330
+ // Reset the completion tracker so the hold window restarts fresh
331
+ // when the marker reappears — otherwise the stale firstSeenAt makes
332
+ // the hold appear already-expired on the next PTY frame that matches.
333
+ this.completionIdleKey = '';
334
+ this.completionIdleFirstSeenAt = 0;
335
+ }
326
336
  this.pendingIdleState = null;
327
337
  }
328
338