Skip to content

fix: add background PID tracking support for Windows#19

Open
akramcodez wants to merge 1 commit intoblackboxaicode:mainfrom
akramcodez:fix/windows-background-pid-tracking
Open

fix: add background PID tracking support for Windows#19
akramcodez wants to merge 1 commit intoblackboxaicode:mainfrom
akramcodez:fix/windows-background-pid-tracking

Conversation

@akramcodez
Copy link

Description

Background PID tracking was not supported on Windows - the backgroundPids field was always empty because the Unix pgrep logic was skipped on Windows.

Solution

  • Added getWindowsChildPids() using PowerShell's Get-CimInstance
  • Uses modern WMI query instead of deprecated WMIC
  • Graceful error handling with fallback to empty array

Changes

  • shell.ts: Added Windows PID detection using PowerShell

Testing

Verified on mock Windows environment - function executes and handles errors gracefully.

fixes #12

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.

Background PID Tracking Not Supported on Windows

1 participant