Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/Process/ProcessManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,13 @@ public function getStdioTransport(): StdioTransport
protected function startProcess(): void
{
if (empty($this->cliPath)) {
$this->cliPath = (new ExecutableFinder)->find(name: 'copilot', default: 'copilot');
$this->cliPath = (new ExecutableFinder)->find(name: 'copilot');
}

if (empty($this->cliPath)) {
throw new RuntimeException(
'Path to Copilot CLI is required. Please provide it via the cli_path option, or use cli_url to rely on a remote CLI.',
);
}

// Handle 'gh copilot' case
Expand Down