Skip to content
This repository was archived by the owner on Mar 15, 2026. It is now read-only.

Commit 27809c3

Browse files
Fix for Cursor model usage cli parameter name
1 parent 8909746 commit 27809c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LlmIntegration/Infrastructure/Service/RealCursorCliAgentDriver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ private function runLocally(
5454
$env = $this->buildEnvironment($cursorApiKey, $githubToken);
5555

5656
$process = new Process(
57-
[$agentPath, '-p', '--force', '--trust', '-m', CursorCliAgentBinaryManager::DEFAULT_MODEL, '--output-format', 'stream-json', $prompt],
57+
[$agentPath, '-p', '--force', '--trust', '--model', CursorCliAgentBinaryManager::DEFAULT_MODEL, '--output-format', 'stream-json', $prompt],
5858
$workingDirectory,
5959
$env,
6060
);
@@ -91,7 +91,7 @@ private function runInContainer(
9191
'-e', 'HOME=' . $agentHome,
9292
'-w', $workingDirectory,
9393
$containerName,
94-
$agentPath, '-p', '--force', '--trust', '-m', CursorCliAgentBinaryManager::DEFAULT_MODEL, '--output-format', 'stream-json', $prompt,
94+
$agentPath, '-p', '--force', '--trust', '--model', CursorCliAgentBinaryManager::DEFAULT_MODEL, '--output-format', 'stream-json', $prompt,
9595
]);
9696
$process->setInput('');
9797
$process->setTimeout(self::DEFAULT_TIMEOUT_SECONDS);

0 commit comments

Comments
 (0)