Skip to content

Use cmd /c for Windows agent detection commands#558

Merged
pushpak1300 merged 1 commit intolaravel:mainfrom
soleinjast:fix/windows-agent-detection-command
Feb 10, 2026
Merged

Use cmd /c for Windows agent detection commands#558
pushpak1300 merged 1 commit intolaravel:mainfrom
soleinjast:fix/windows-agent-detection-command

Conversation

@soleinjast
Copy link
Contributor

@soleinjast soleinjast commented Feb 10, 2026

Problem

On Windows, the agent detection commands (e.g. where claude 2>nul) use shell redirection syntax which PHP's proc_open cannot handle directly — it needs to be routed through cmd.exe. This caused boost:install to crash with a
ProcessStartFailedException instead of gracefully detecting whether the agent is installed.

Fix

Prefixed all Windows detection commands with cmd /c across all affected agents:

  • ClaudeCode
  • Codex
  • Gemini
  • OpenCode

related #556

@pushpak1300
Copy link
Member

Thanks !

@pushpak1300 pushpak1300 merged commit 81ecf79 into laravel:main Feb 10, 2026
17 checks passed
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.

2 participants