Skip to content

Install Grok through mise's first-party package - #13889

Closed
j-c-m wants to merge 1 commit into
omacom:quattrofrom
j-c-m:fix/grok-mise-registry
Closed

j-c-m wants to merge 1 commit into
omacom:quattrofrom
j-c-m:fix/grok-mise-registry

Conversation

@j-c-m

@j-c-m j-c-m commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

This replaces Omarchy's Grok install, npm:@xai-official/grok, with mise's first-party grok package. The npm package is a launcher that keeps ~/.grok/bin/grok when that file already exists, and mise does not run its postinstall, so grok --version stays on the old binary after the package is upgraded. #7247 switches to the same package. It rewrites the stub and leaves the npm tool in the global mise config, so the mise shim stays ahead of ~/.local/bin and keeps running the launcher.

Fresh installs and omarchy default agent grok now request grok. The migration rewrites Omarchy's npm wrapper unless the grok command is one the user installed, removes npm:@xai-official/grok from the global config, uninstalls its leftover files, and removes ~/.local/bin/agent when that symlink points at ~/.grok, including a relative or dangling target. With preinstalls removed, it only deletes Omarchy's npm wrapper and that symlink. The manual tells people to run grok and to skip the x.ai curl installer. Grok Bot stays the desktop chat app.

AGENT

A finding is either of these:

  • The behavior this pull request describes does not happen.
  • The diff breaks behavior the base branch had, and the description does not say that behavior is changing.

These are not findings:

  • A gap the base branch already had.
  • A layout or failure the user does not hit.

Do not post an automated review unless you are affiliated with Omarchy.

@greptile-apps

greptile-apps Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[High risk] Migrates Grok installation from npm package to mise first-party tool.

The PR appears safe to merge based on the changes since the previous review.

Summary

The PR switches Grok installation to mise’s first-party package, migrates existing npm-backed installations, and updates the manual and tests. Since the previous review, the migration was renamed and its test references were updated.

Reviews (5) · Last reviewed commit: "Install Grok through mise's first-party ..."

Comment thread migrations/1790703856.sh Resolved
@j-c-m
j-c-m force-pushed the fix/grok-mise-registry branch from 2313f01 to c2faf8a Compare September 30, 2026 19:04
Comment thread migrations/1790703856.sh Resolved
@j-c-m
j-c-m force-pushed the fix/grok-mise-registry branch from c2faf8a to 715a866 Compare September 30, 2026 19:42
Comment thread migrations/1790703856.sh Resolved
@jandrusk

jandrusk commented Oct 1, 2026

Copy link
Copy Markdown

Blocking (merge conflict): this PR and #13867 both add migrations/1790703856.sh with unrelated content (Grok mise vs Bluetooth power). Whichever merges second will clobber the other.

Please retarget this migration to a fresh unused timestamp under migrations/ (tip of quattro is currently around 1790702606.sh).

Also overlaps #7247 (“Install Grok through mise's first-party registry”) — worth coordinating so only one Grok→mise migration lands.

The npm launcher keeps an old ~/.grok/bin binary because mise skips its
postinstall. Use mise's grok tool, and drop the npm tool so its shim
does not stay ahead of the stub.
@j-c-m
j-c-m force-pushed the fix/grok-mise-registry branch from d771dd7 to facdcf3 Compare October 1, 2026 14:00
@j-c-m

j-c-m commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

Blocking (merge conflict): this PR and #13867 both add migrations/1790703856.sh with unrelated content (Grok mise vs Bluetooth power). Whichever merges second will clobber the other.

Please retarget this migration to a fresh unused timestamp under migrations/ (tip of quattro is currently around 1790702606.sh).

Also overlaps #7247 (“Install Grok through mise's first-party registry”) — worth coordinating so only one Grok→mise migration lands.

While this is transitively valid for this PR, this is an actual bug in the migration generation script. I think when running automated agent reviews it needs to be kept in mind the final integration will need to be an AI driven merge that can intelligently resolve conflicts as numerous PRs are not going to stack clean depending on merge order.

@dhh

dhh commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Thank you! Brought in unchanged, with your authorship, in #14004, which also removes the update workaround #13992 had added for the npm launcher, since your change fixes the cause.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants