From 257c3596de6b44f18fccdcd3bb349ee76b582e3c Mon Sep 17 00:00:00 2001 From: B <6723574+louisgv@users.noreply.github.com> Date: Fri, 27 Mar 2026 12:45:24 +0000 Subject: [PATCH] fix(cursor): remove stale ~/.cursor/bin references missed in #3058 migration Clean up three remaining stale references to ~/.cursor/bin that were not caught in the #3058 path migration: - manifest.json: update notes field to reflect ~/.local/bin/agent - sh/e2e/lib/provision.sh: remove ~/.cursor/bin from path_prefix - sh/e2e/lib/verify.sh: remove ~/.cursor/bin from binary check PATH Fixes #3065 Agent: issue-fixer Co-Authored-By: Claude Sonnet 4.5 --- manifest.json | 2 +- sh/e2e/lib/provision.sh | 2 +- sh/e2e/lib/verify.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manifest.json b/manifest.json index d79549a71..ac5887382 100644 --- a/manifest.json +++ b/manifest.json @@ -332,7 +332,7 @@ } } }, - "notes": "Works with OpenRouter via --endpoint flag pointing to openrouter.ai/api/v1 and CURSOR_API_KEY set to OpenRouter key. Binary installs to ~/.cursor/bin/agent.", + "notes": "Works with OpenRouter via --endpoint flag pointing to openrouter.ai/api/v1 and CURSOR_API_KEY set to OpenRouter key. Binary installs to ~/.local/bin/agent.", "icon": "https://raw.githubusercontent.com/OpenRouterTeam/spawn/main/assets/agents/cursor.png", "featured_cloud": [ "digitalocean", diff --git a/sh/e2e/lib/provision.sh b/sh/e2e/lib/provision.sh index 63a0e25af..39553fdc5 100644 --- a/sh/e2e/lib/provision.sh +++ b/sh/e2e/lib/provision.sh @@ -378,7 +378,7 @@ _ensure_agent_binary() { # PATH includes all common binary locations for detection. local bin_name="" local install_cmd="" - local path_prefix='export PATH="$HOME/.npm-global/bin:$HOME/.bun/bin:$HOME/.local/bin:$HOME/.cargo/bin:$HOME/.claude/local/bin:$HOME/.cursor/bin:/usr/local/bin:$PATH"' + local path_prefix='export PATH="$HOME/.npm-global/bin:$HOME/.bun/bin:$HOME/.local/bin:$HOME/.cargo/bin:$HOME/.claude/local/bin:/usr/local/bin:$PATH"' case "${agent}" in claude) diff --git a/sh/e2e/lib/verify.sh b/sh/e2e/lib/verify.sh index f23fbaa9d..1724a4d68 100644 --- a/sh/e2e/lib/verify.sh +++ b/sh/e2e/lib/verify.sh @@ -755,7 +755,7 @@ verify_cursor() { # Binary check — cursor installs to ~/.local/bin/agent (since 2026-03-25) log_step "Checking cursor binary..." - if cloud_exec "${app}" "PATH=\$HOME/.local/bin:\$HOME/.cursor/bin:\$HOME/.bun/bin:\$PATH command -v agent" >/dev/null 2>&1; then + if cloud_exec "${app}" "PATH=\$HOME/.local/bin:\$HOME/.bun/bin:\$PATH command -v agent" >/dev/null 2>&1; then log_ok "cursor (agent) binary found" else log_err "cursor (agent) binary not found"