Fix CLI when installed via PATH symlink - #12
Conversation
Follow BASH_SOURCE symlinks so a PATH install under ~/.local/bin resolves the real repo root and venv.
Bugbot couldn't run - usage limit reachedBugbot 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) |
|
Warning Review limit reached
Next review available in: 18 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the 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. 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. Comment |
Summary
cli/desktop-actuseddirname $0, which breaks when the script issymlinked into
~/.local/bin. It now follows symlinks to find the realrepo root.
Test plan
desktop-act which/statusvia~/.local/bin/desktop-actNote
Low Risk
Only the bash CLI wrapper changes; no auth, MCP, or desktop automation logic is touched.
Overview
Fixes global
desktop-actinstalls where the script is symlinked into~/.local/bin(or similar). PreviouslyROOTcame fromdirname $0, which pointed at the symlink directory instead of the real repo, so venv Python anddesktop_act_cli.pycould not be found.The entrypoint now walks
BASH_SOURCE[0]through symlinks (absolute and relative targets) and usescd -PsoROOTis the repository root next tocli/.Reviewed by Cursor Bugbot for commit 134b6f0. Bugbot is set up for automated code reviews on this repo. Configure here.