[Windows] Terminal window popup on every hook execution #104

Closed
opened 2026-01-22 21:57:03 +00:00 by jack · 0 comments
Owner

Origin

Upstream issues #748, #681, #676, #688

Problem

On Windows, a terminal/console window pops up and closes on every hook execution (every message). This is extremely disruptive to the user experience.

Symptoms

  • Black console window flashes on every Claude message
  • Happens when realtime hooks are enabled
  • Multiple reports across different Windows versions

Expected Behavior

  • Hooks should execute silently in background
  • No visible windows during normal operation

Possible Causes

  • Node.js spawn without windowsHide: true
  • Missing detached option on child processes
  • Console allocation for stdio

Suggested Fixes

// When spawning processes on Windows
spawn(command, args, {
  windowsHide: true,
  detached: true,
  stdio: 'ignore'  // or pipe if output needed
});

Environment

  • Windows 10/11
  • Various Node.js versions
## Origin Upstream issues #748, #681, #676, #688 ## Problem On Windows, a terminal/console window pops up and closes on every hook execution (every message). This is extremely disruptive to the user experience. ## Symptoms - Black console window flashes on every Claude message - Happens when realtime hooks are enabled - Multiple reports across different Windows versions ## Expected Behavior - Hooks should execute silently in background - No visible windows during normal operation ## Possible Causes - Node.js spawn without `windowsHide: true` - Missing `detached` option on child processes - Console allocation for stdio ## Suggested Fixes ```javascript // When spawning processes on Windows spawn(command, args, { windowsHide: true, detached: true, stdio: 'ignore' // or pipe if output needed }); ``` ## Environment - Windows 10/11 - Various Node.js versions
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
customable/claude-mem#104
No description provided.