Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 14, 2025

Multiple visible console windows appear on Windows 11 when using claude-mem, caused by child processes spawned without the windowsHide flag.

Changes

Two spawnSync calls missing the windowsHide: true option:

  • src/utils/bun-path.ts: Bun availability check

    spawnSync('bun', ['--version'], {
      encoding: 'utf-8',
      stdio: ['pipe', 'pipe', 'pipe'],
      shell: isWindows,
      windowsHide: true  // Added
    });
  • src/shared/worker-utils.ts: PM2 cleanup during migration

    spawnSync('pm2', ['delete', 'claude-mem-worker'], { 
      stdio: 'ignore',
      windowsHide: true  // Added
    });

Both locations now consistent with existing spawn calls elsewhere in the codebase that already use this flag.

Original prompt

This section details on the original issue you should resolve

<issue_title>Multiple visible console windows popping up (Windows 11, claude code in terminal)</issue_title>
<issue_description>Describe the bug
Multiple visible console windows open during a claude code session. Ref: #208 - still seeing this having installed today.

To Reproduce
Steps to reproduce the behavior:

  1. Install claude-mem
  2. Instruct claude
  3. Multiple visible terminal windows open as I type a question to claude code with "claude" as a title

Expected behavior
No visible console windows

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser None (claude code in terminal)

Additional context
Installed on Windows using installation guide. Otherwise functional, but would like to find a resolution to the constant popup terminal windows if possible
</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Fix multiple console windows opening during claude code session Add windowsHide flag to child process spawns on Windows Dec 14, 2025
Copilot AI requested a review from thedotmack December 14, 2025 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multiple visible console windows popping up (Windows 11, claude code in terminal)

2 participants