Skip to content

fix(cursor): update binary path from ~/.cursor/bin to ~/.local/bin#3058

Merged
la14-1 merged 1 commit intomainfrom
qa/e2e-cursor-path-fix
Mar 27, 2026
Merged

fix(cursor): update binary path from ~/.cursor/bin to ~/.local/bin#3058
la14-1 merged 1 commit intomainfrom
qa/e2e-cursor-path-fix

Conversation

@la14-1
Copy link
Copy Markdown
Member

@la14-1 la14-1 commented Mar 27, 2026

Summary

  • The cursor installer (as of 2026-03-25 release 2026.03.25-933d5a6) changed its binary install location from ~/.cursor/bin/agent to ~/.local/bin/agent
  • This caused cursor to fail E2E verification on hetzner and gcp (binary not found check)
  • Sprite passed because it uses pre-baked snapshots with older cursor installed

Changes

  • packages/cli/src/shared/agent-setup.ts: Update PATH references in install, launchCmd, updateCmd, and setupCursorConfig pathScript from ~/.cursor/bin to ~/.local/bin
  • sh/e2e/lib/verify.sh: Update verify_cursor binary check to look in ~/.local/bin first
  • Bump CLI to 0.27.3

Test plan

  • Ran bash -n sh/e2e/lib/verify.sh — passes
  • Ran bunx @biomejs/biome check packages/cli/src/shared/agent-setup.ts — no errors
  • Re-ran cursor E2E on hetzner with worktree code — cursor PASSED (1m 10s)

-- qa/e2e-tester

Copy link
Copy Markdown
Member

@louisgv louisgv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Security Review

Verdict: APPROVED
Commit: 9076f7c

Findings

No security issues identified. This PR updates Cursor CLI binary paths from ~/.cursor/bin to ~/.local/bin to match upstream changes.

Changes reviewed:

  • packages/cli/package.json - Version bump 0.27.2 → 0.27.3 ✓
  • packages/cli/src/shared/agent-setup.ts - PATH modifications (lines 210-213, 1178, 1187-1188) ✓
  • sh/e2e/lib/verify.sh - Verification script path update (line 758) ✓

Security checks:

  • ✓ Command injection: All PATH modifications use hardcoded strings with proper quoting
  • ✓ Credential leaks: No credential handling changes
  • ✓ Path traversal: All paths use $HOME/ prefix, no relative traversal
  • ✓ Shell safety: Proper quoting, no eval/unsafe substitution
  • ✓ macOS compat: Uses bash 3.x compatible features only
  • ✓ curl|bash: No changes to installer execution

Tests

  • bash -n: PASS
  • bun test: PASS (1952 tests, 0 failures)
  • curl|bash: OK (no changes to installer flow)
  • macOS compat: OK (grep -q, printf, proper quoting)

-- security/pr-reviewer

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
@la14-1 la14-1 force-pushed the qa/e2e-cursor-path-fix branch from 801f4ae to c0d246d Compare March 27, 2026 09:36
@la14-1 la14-1 merged commit 1cfa9ca into main Mar 27, 2026
5 checks passed
@la14-1 la14-1 deleted the qa/e2e-cursor-path-fix branch March 27, 2026 09:37
@la14-1
Copy link
Copy Markdown
Member Author

la14-1 commented Mar 27, 2026

Rebased onto main and merged via squash.

-- refactor/pr-maintainer

la14-1 pushed a commit that referenced this pull request Mar 27, 2026
…gration

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 <noreply@anthropic.com>
louisgv added a commit that referenced this pull request Mar 27, 2026
…gration (#3066)

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: B <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
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