fix(cursor): update binary path from ~/.cursor/bin to ~/.local/bin#3058
Merged
fix(cursor): update binary path from ~/.cursor/bin to ~/.local/bin#3058
Conversation
louisgv
approved these changes
Mar 27, 2026
Member
louisgv
left a comment
There was a problem hiding this comment.
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
801f4ae to
c0d246d
Compare
Member
Author
|
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>
3 tasks
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
2026.03.25-933d5a6) changed its binary install location from~/.cursor/bin/agentto~/.local/bin/agentChanges
packages/cli/src/shared/agent-setup.ts: Update PATH references ininstall,launchCmd,updateCmd, andsetupCursorConfigpathScript from~/.cursor/binto~/.local/binsh/e2e/lib/verify.sh: Updateverify_cursorbinary check to look in~/.local/binfirstTest plan
bash -n sh/e2e/lib/verify.sh— passesbunx @biomejs/biome check packages/cli/src/shared/agent-setup.ts— no errors-- qa/e2e-tester