Skip to content

fix(coding-agent): preserve Homebrew update ownership - #846

Merged
snimu merged 1 commit into
PrimeIntellect-ai:mainfrom
fettpl:fix/homebrew-self-update
Aug 7, 2026
Merged

snimu merged 1 commit into
PrimeIntellect-ai:mainfrom
fettpl:fix/homebrew-self-update

Conversation

@fettpl

@fettpl fettpl commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • detect npm packages installed inside a Homebrew Cellar as Homebrew-managed
  • prevent prime-agent update from constructing an npm command that mutates the versioned keg
  • direct Homebrew users to brew upgrade prime-agent

Verification

  • npx tsx ../../node_modules/vitest/dist/cli.js --run test/config.test.ts (21 tests passed)
  • npm run check
  • reproduced against the local 0.7.0 formula install: the current release constructs npm --prefix /opt/homebrew/Cellar/prime-agent/0.7.0/libexec install -g prime-agent with normal permissions

Fixes #844. Supports the official Homebrew submission tracked in #843.

@badlogic please review the package-manager ownership behavior.

Note

Prevent self-update for Homebrew-managed installs and show brew upgrade instructions

  • Adds isHomebrewInstall() in config.ts to detect Cellar keg paths (/cellar/ + /libexec/lib/node_modules/) and classifies them as "homebrew" in detectInstallMethod().
  • getSelfUpdateCommandForMethod() returns undefined for Homebrew installs, suppressing self-update attempts.
  • getSelfUpdateUnavailableInstruction() now returns "Update with: brew upgrade <APP_NAME>" for Homebrew installs instead of a generic message.
  • Homebrew installs report no global package roots via getGlobalPackageRoots().

Macroscope summarized ec712a6.

snimu
snimu previously approved these changes Aug 7, 2026
@snimu
snimu force-pushed the fix/homebrew-self-update branch from ec712a6 to 4740c65 Compare August 7, 2026 18:41
@snimu
snimu merged commit 10fb172 into PrimeIntellect-ai:main Aug 7, 2026
18 of 20 checks passed
zhengr pushed a commit to zhengr/prime-agent that referenced this pull request Aug 8, 2026
zhengr pushed a commit to zhengr/prime-agent that referenced this pull request Aug 8, 2026
@fettpl
fettpl deleted the fix/homebrew-self-update branch August 8, 2026 08:19
sethkarten pushed a commit that referenced this pull request Aug 11, 2026
Patch release. Bug fixes, small UX additions behind existing surfaces, and a
dependency consolidation; no breaking changes, per the no-major-releases
policy.

Contents since v0.7.1:
- #838 in-place queue editing (Alt+Up/Alt+Down browse, Enter/Alt+Enter apply)
  and queue preservation on interrupt
- #850/#851/#852 worker lifecycle truthfulness, timed-out stop finalization,
  and stale-registration self-heal (the "Session worker is not connected"
  family)
- #1226 Down Arrow stays in a nonempty prompt until the cursor reaches the end
- #767 independent expand/collapse for tool calls, a2a messages, and thinking
- #1135 agents view keeps expansion state when leaving and returning
- #647 login URL copy action
- #521 privacy-safe agent analytics with disclosure and opt-out
- #846 Homebrew ownership preserved on self-update
- #772 sent a2a messages show only message text when expanded
- #632 consolidated dependency updates (undici 7.29, biome 2.5.5, marked 18,
  typescript 7 dev-only, typebox 1.3, aws-sdk bedrock, vitest 4.1.10, et al.)
- #1132 stale Gemini test model update (test-only)

Missing changelog entries for #838/#850/#851/#852 are added under 0.7.2.

Lockstep bump across the root package and the four published packages;
example and private workspaces untouched. Lockfile updated surgically
(version fields and inter-package ranges only).
0oAstro pushed a commit to 0oAstro/fulcrum that referenced this pull request Aug 11, 2026
Patch release. Bug fixes, small UX additions behind existing surfaces, and a
dependency consolidation; no breaking changes, per the no-major-releases
policy.

Contents since v0.7.1:
- PrimeIntellect-ai#838 in-place queue editing (Alt+Up/Alt+Down browse, Enter/Alt+Enter apply)
  and queue preservation on interrupt
- PrimeIntellect-ai#850/PrimeIntellect-ai#851/PrimeIntellect-ai#852 worker lifecycle truthfulness, timed-out stop finalization,
  and stale-registration self-heal (the "Session worker is not connected"
  family)
- PrimeIntellect-ai#1226 Down Arrow stays in a nonempty prompt until the cursor reaches the end
- PrimeIntellect-ai#767 independent expand/collapse for tool calls, a2a messages, and thinking
- PrimeIntellect-ai#1135 agents view keeps expansion state when leaving and returning
- PrimeIntellect-ai#647 login URL copy action
- PrimeIntellect-ai#521 privacy-safe agent analytics with disclosure and opt-out
- PrimeIntellect-ai#846 Homebrew ownership preserved on self-update
- PrimeIntellect-ai#772 sent a2a messages show only message text when expanded
- PrimeIntellect-ai#632 consolidated dependency updates (undici 7.29, biome 2.5.5, marked 18,
  typescript 7 dev-only, typebox 1.3, aws-sdk bedrock, vitest 4.1.10, et al.)
- PrimeIntellect-ai#1132 stale Gemini test model update (test-only)

Missing changelog entries for PrimeIntellect-ai#838/PrimeIntellect-ai#850/PrimeIntellect-ai#851/PrimeIntellect-ai#852 are added under 0.7.2.

Lockstep bump across the root package and the four published packages;
example and private workspaces untouched. Lockfile updated surgically
(version fields and inter-package ranges only).
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.

coding-agent: keep Homebrew installs package-manager owned

2 participants