Repository navigation
Regenerate mise wrappers that still print mise's output to stdout - #8041
Merged
Merged
Conversation
omarchy-mise-install gained --quiet on its `mise use -g` line so a wrapper no longer prints mise's "tools: pkg@version" ahead of the tool's own output. That only changes wrappers written from then on, and the migration that installed the current ones is already marked complete, so every wrapper already on disk keeps polluting stdout: `claude --version` still answers with two lines, and a wrapper for a protocol-speaking command answers with a line its caller cannot parse. Rewrite them through omarchy-mise-install so the template stays in one place. Wrappers were written by four different generated forms over time and only the ones a later migration happened to regenerate moved forward, so all four are recognized. The whole file has to match one of them exactly, which leaves a wrapper someone has added a line to alone and makes a second run a no-op. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Mv1FyKG2VGZRdtknQ7YjU8
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an idempotent migration to regenerate stale mise wrappers using the current quiet template.
Changes:
- Recognizes and regenerates four historical wrapper formats.
- Preserves package and binary names while avoiding customized files, symlinks, and binaries.
- Adds comprehensive migration tests.
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
migrations/1787573629.sh |
Safely regenerates recognized stale mise wrappers. |
test/shell.d/mise-wrapper-quiet-migration-test.sh |
Tests historical formats, preservation, safety, and idempotence. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
3 tasks done
2 of 3 tasks
nick1udwig
pushed a commit
to nick1udwig/omarchy
that referenced
this pull request
Sep 9, 2026
…acom#8041) omarchy-mise-install gained --quiet on its `mise use -g` line so a wrapper no longer prints mise's "tools: pkg@version" ahead of the tool's own output. That only changes wrappers written from then on, and the migration that installed the current ones is already marked complete, so every wrapper already on disk keeps polluting stdout: `claude --version` still answers with two lines, and a wrapper for a protocol-speaking command answers with a line its caller cannot parse. Rewrite them through omarchy-mise-install so the template stays in one place. Wrappers were written by four different generated forms over time and only the ones a later migration happened to regenerate moved forward, so all four are recognized. The whole file has to match one of them exactly, which leaves a wrapper someone has added a line to alone and makes a second run a no-op. Claude-Session: https://claude.ai/code/session_01Mv1FyKG2VGZRdtknQ7YjU8 Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
1 task done
This was referenced Oct 8, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
omarchy-mise-installgained--quieton itsmise use -gline in #6940 so a wrapper no longer prints mise's owntools: pkg@versionline ahead of the tool's output. But the generator only writes wrappers as they are installed, and the migration that installed the current set (1785846769.sh) is already marked complete on every existing machine — so nothing rewrites what is already on disk.The result on a 4.0.1rc1 box that was installed before the fix:
All 13 wrappers in
~/.local/binare affected there (claude,codex,copilot,crush,gemini,gh,ghui,grok,hunk,omp,opencode,pi,playwright). Only a fresh install gets the fix today. It is more than cosmetic for a wrapper whose caller parses stdout.#7929 anticipated the new wrapper text — it loosened
1785846769.sh's grep from'mise use -g "oh-my-pi"'to'mise use -g .*"oh-my-pi"'— but that edit landed on an already-applied migration, so it never re-runs.What this does
Rewrites the wrappers through
omarchy-mise-install, so the template stays in one place, following1784909971.sh's precedent.Wrappers were written by four different generated forms over time, and only the ones a later migration happened to regenerate moved forward, so a machine can still be carrying any of them:
mise use -g "$package"+exec "$bin" "$@"mise use -g "$package"+exec mise exec …1784909971.shran+ || exit 1,mise x+ export MISE_MINIMUM_RELEASE_AGE=0--quietAll four are recognized and brought up to the current template.
The whole file has to match one of those forms exactly, rebuilt from the package and bin the file itself names. That way a wrapper someone has added a line to is left alone rather than silently regenerated without it, and a wrapper already carrying
--quietmatches nothing, which is what makes a second run a no-op.~/.local/binalso holds real binaries —uvanduvxland there from the Python dev env — so the size is checked before reading, rather than pulling a 30MB executable into memory to discover it is not a wrapper.Testing
test/shell.d/mise-wrapper-quiet-migration-test.shruns the realomarchy-mise-installfrom the checkout against a fake$HOME, so it proves the template written today rather than a copy that could drift. It covers all four stale forms, package/bin preservation (including scoped npm andgithub:/aqua:packages), idempotence, a missing~/.local/bin, and that hand-written scripts, mismatched files, symlinks, native binaries, and customized wrappers are left alone.Verified against a real 4.0.1rc1 machine: all 13 stale wrappers repaired, nothing else in
~/.local/bintouched.