Skip to content

Commit 9076f7c

Browse files
author
spawn-qa-bot
committed
fix(cursor): update binary path from ~/.cursor/bin to ~/.local/bin
The cursor installer changed its binary install location from ~/.cursor/bin/agent to ~/.local/bin/agent (as of 2026-03-25 release). Updates: - agent-setup.ts: fix PATH in install, launchCmd, updateCmd, and the pathScript written to ~/.bashrc/~/.zshrc - verify.sh: fix E2E binary check to look in ~/.local/bin first - Bump CLI to 0.27.3 -- qa/e2e-tester
1 parent e44705d commit 9076f7c

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openrouter/spawn",
3-
"version": "0.27.2",
3+
"version": "0.27.3",
44
"type": "module",
55
"bin": {
66
"spawn": "cli.js"

packages/cli/src/shared/agent-setup.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,10 @@ async function setupCursorConfig(runner: CloudRunner, _apiKey: string): Promise<
207207
// Spawn rule should be world-readable (not sensitive)
208208
await runner.runServer("chmod 644 ~/.cursor/rules/spawn.mdc");
209209

210-
// Persist PATH so agent binary is available
210+
// Persist PATH so agent binary is available (cursor installs to ~/.local/bin since 2026-03-25)
211211
const pathScript = [
212-
'grep -q ".cursor/bin" ~/.bashrc 2>/dev/null || printf \'\\nexport PATH="$HOME/.cursor/bin:$PATH"\\n\' >> ~/.bashrc',
213-
'grep -q ".cursor/bin" ~/.zshrc 2>/dev/null || printf \'\\nexport PATH="$HOME/.cursor/bin:$PATH"\\n\' >> ~/.zshrc',
212+
'grep -q ".local/bin" ~/.bashrc 2>/dev/null || printf \'\\nexport PATH="$HOME/.local/bin:$PATH"\\n\' >> ~/.bashrc',
213+
'grep -q ".local/bin" ~/.zshrc 2>/dev/null || printf \'\\nexport PATH="$HOME/.local/bin:$PATH"\\n\' >> ~/.zshrc',
214214
].join(" && ");
215215

216216
await runner.runServer(pathScript);
@@ -1175,7 +1175,7 @@ function createAgents(runner: CloudRunner): Record<string, AgentConfig> {
11751175
runner,
11761176
"Cursor CLI",
11771177
"curl https://cursor.com/install -fsS | bash && " +
1178-
'export PATH="$HOME/.cursor/bin:$PATH" && ' +
1178+
'export PATH="$HOME/.local/bin:$PATH" && ' +
11791179
"agent --version",
11801180
),
11811181
envVars: (apiKey) => [
@@ -1184,8 +1184,8 @@ function createAgents(runner: CloudRunner): Record<string, AgentConfig> {
11841184
],
11851185
configure: (apiKey) => setupCursorConfig(runner, apiKey),
11861186
launchCmd: () =>
1187-
'source ~/.spawnrc 2>/dev/null; export PATH="$HOME/.cursor/bin:$PATH"; agent --endpoint https://openrouter.ai/api/v1',
1188-
updateCmd: 'export PATH="$HOME/.cursor/bin:$PATH"; agent update',
1187+
'source ~/.spawnrc 2>/dev/null; export PATH="$HOME/.local/bin:$PATH"; agent --endpoint https://openrouter.ai/api/v1',
1188+
updateCmd: 'export PATH="$HOME/.local/bin:$PATH"; agent update',
11891189
},
11901190
};
11911191
}

sh/e2e/lib/verify.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -753,9 +753,9 @@ verify_cursor() {
753753
local app="$1"
754754
local failures=0
755755

756-
# Binary check — cursor installs to ~/.cursor/bin/agent
756+
# Binary check — cursor installs to ~/.local/bin/agent (since 2026-03-25)
757757
log_step "Checking cursor binary..."
758-
if cloud_exec "${app}" "PATH=\$HOME/.cursor/bin:\$HOME/.bun/bin:\$PATH command -v agent" >/dev/null 2>&1; then
758+
if cloud_exec "${app}" "PATH=\$HOME/.local/bin:\$HOME/.cursor/bin:\$HOME/.bun/bin:\$PATH command -v agent" >/dev/null 2>&1; then
759759
log_ok "cursor (agent) binary found"
760760
else
761761
log_err "cursor (agent) binary not found"

0 commit comments

Comments
 (0)