Skip to content

fix(brew): install app from service context - #45

Merged
DevVig merged 1 commit into
mainfrom
fix/brew-service-app-install-v0.2.0
Jul 18, 2026
Merged

DevVig merged 1 commit into
mainfrom
fix/brew-service-app-install-v0.2.0

Conversation

@DevVig

@DevVig DevVig commented Jul 18, 2026

Copy link
Copy Markdown
Owner

Homebrew 6 sandboxes formula post-install hooks and blocks writes to the user Applications directory. Install a marker-guarded service wrapper in the Cellar so brew services start microbridge copies the app in the user session before starting the daemon.\n\nValidated locally with the published v0.2.0 archives: wrapper installed, marker created, and app version reported 0.2.0.

Copilot AI review requested due to automatic review settings July 18, 2026 17:54
@coderabbitai

coderabbitai Bot commented Jul 18, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 23 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: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: e6d2c04c-2009-4359-9ed0-a6a7771e9f0c

📥 Commits

Reviewing files that changed from the base of the PR and between 460d5c1 and a4e698f.

📒 Files selected for processing (1)
  • Formula/microbridge.rb

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

@DevVig
DevVig merged commit bcb46cc into main Jul 18, 2026
7 checks passed
@DevVig
DevVig deleted the fix/brew-service-app-install-v0.2.0 branch July 18, 2026 17:55

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Homebrew formula to work around Homebrew 6’s sandboxing of post_install by moving the “copy Microbridge.app into ~/Applications with a marker” behavior into a service-time wrapper script executed in the user session.

Changes:

  • Remove the post_install approach and install a libexec/microbridge-service wrapper during install.
  • Update the Homebrew service to run the wrapper instead of calling microbridged directly.
  • Update caveats and tweak the formula test assertion style.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Formula/microbridge.rb
Comment on lines +68 to +72
source_app="#{opt_prefix}/Microbridge.app"
apps_dir="${HOME}/Applications"
dest="${apps_dir}/Microbridge.app"
marker="${dest}/.microbridge-brew"
/bin/mkdir -p "${apps_dir}"
Comment thread Formula/microbridge.rb
Comment on lines 115 to 118
test do
assert_match "Usage", shell_output("#{bin}/microbridgectl help")
assert_predicate prefix/"Microbridge.app", :exist?
assert_path_exists prefix/"Microbridge.app"
end
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