Description
ShellTool attempts to detect PIDs for background commands, but the logic relies on pgrep, which is explicitly skipped on Windows:
if (os.platform() !== 'win32') {
// pgrep logic
}
As a result, the backgroundPids field is always empty on Windows, even when background processes are successfully started using start /b.
Impact
- Windows users cannot verify whether a background process started
- The agent cannot capture PIDs needed to stop or manage spawned processes