Skip to content

Fix CLI when installed via PATH symlink - #12

Merged
Aurora Capital (auroracapital) merged 1 commit into
mainfrom
fix/cli-symlink-resolve
Jul 30, 2026
Merged

Fix CLI when installed via PATH symlink#12
Aurora Capital (auroracapital) merged 1 commit into
mainfrom
fix/cli-symlink-resolve

Conversation

@auroracapital

@auroracapital Aurora Capital (auroracapital) commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Summary

cli/desktop-act used dirname $0, which breaks when the script is
symlinked into ~/.local/bin. It now follows symlinks to find the real
repo root.

Test plan

  • Global install: desktop-act which / status via ~/.local/bin/desktop-act
  • CI green

Note

Low Risk
Only the bash CLI wrapper changes; no auth, MCP, or desktop automation logic is touched.

Overview
Fixes global desktop-act installs where the script is symlinked into ~/.local/bin (or similar). Previously ROOT came from dirname $0, which pointed at the symlink directory instead of the real repo, so venv Python and desktop_act_cli.py could not be found.

The entrypoint now walks BASH_SOURCE[0] through symlinks (absolute and relative targets) and uses cd -P so ROOT is the repository root next to cli/.

Reviewed by Cursor Bugbot for commit 134b6f0. Bugbot is set up for automated code reviews on this repo. Configure here.

Follow BASH_SOURCE symlinks so a PATH install under ~/.local/bin
resolves the real repo root and venv.
@cursor

cursor Bot commented Jul 30, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_ec159389-a3a1-41a0-8f05-09f3c583f96a)

@coderabbitai

coderabbitai Bot commented Jul 30, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@auroracapital, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 18 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: de2856d8-6ec3-4e4b-ba19-d364200e330a

📥 Commits

Reviewing files that changed from the base of the PR and between 2ccebb0 and 134b6f0.

📒 Files selected for processing (1)
  • cli/desktop-act

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@auroracapital
Aurora Capital (auroracapital) merged commit 86fe8ac into main Jul 30, 2026
10 checks passed
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.

1 participant