Internal heartbeat spawns visible (non-hidden) PowerShell console window on Windows

Status Open
Reported on v2.1.212
Maintainer reply None cached
Activity 0 comments · opened Aug 7, 2026

Environment: Windows 11 Pro, Claude Code (was 2.1.212, updated to 2.1.223 during investigation)

Observed: Periodically (roughly hourly during an active session), claude.exe spawns a child process:

powershell.exe -NoProfile -Command "(Get-CimInstance Win32_Process -Filter \"ProcessId=<claude_pid>\").CreationDate.Ticks"

apparently to read its own process creation time (uptime/heartbeat check).

This child process is launched WITHOUT -WindowStyle Hidden / CREATE_NO_WINDOW, so a console window (plus a conhost.exe child) flashes visibly for well under 1 second. It's cosmetic but disorienting: from the user's perspective it looks like an unexplained "ghost" PowerShell window with no obvious origin.

Repro evidence: Captured via a WMI __InstanceCreationEvent watcher over ~4 hours during a normal session. 3 occurrences, each parented directly by claude.exe:

13:10:26 powershell.exe (no -WindowStyle Hidden) <- parent: claude.exe
14:10:26 powershell.exe (no -WindowStyle Hidden) <- parent: claude.exe
16:10:26 powershell.exe (no -WindowStyle Hidden) <- parent: claude.exe

Suggested fix: launch this (and any similar internal helper process on Windows) with the hidden-window flag (CREATE_NO_WINDOW / equivalent) so it doesn't flash a console.

View original on GitHub ↗