Skip to content

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