mise wrappers made before --quiet pollute stdout, and the regeneration migration can no longer parse them
What happened
omarchy-mise-install gained --quiet on its mise use -g line at some point, but nothing regenerates wrappers written before that change. On this machine 11 of them were still stale, and every one corrupted piped stdout:
$ gh auth status 2>/dev/null | head -1
mise ~/.config/mise/config.toml tools: [email protected]
That line is written by mise use -g to stdout (it survives 2>/dev/null and disappears under 1>/dev/null), and the wrapper runs that command on every single invocation.
The concrete failure that led me here: ~/.config/git/config sets
credential.https://github.com.helper = !gh auth git-credential
Git resolves gh through PATH to the wrapper, so the banner became the first line of the credential-helper protocol:
$ git push -u origin some-branch
warning: invalid credential line: mise ~/.config/mise/config.toml tools: [email protected]
fatal: could not read Username for 'https://github.com': No such device or address
Every push, fetch and clone over HTTPS fails while a stale gh wrapper is on PATH. Anything else that pipes one of these tools is silently corrupted too.
Expected
Wrappers generated before --quiet get regenerated, or otherwise stop writing to stdout.
The regeneration migration can no longer parse its own output
This is the part worth a closer look. migrations/1784909971.sh ("Regenerate mise wrappers to stop them recursing through PATH") is the one place that rebuilds wrappers in bulk, and it was written against the older wrapper format:
package=$(sed -n 's/^mise use -g "\(.*\)"$/\1/p' "$wrapper")
bin=$(sed -n 's/^exec "\(.*\)" "\$@"$/\1/p' "$wrapper")
Both patterns fail against the format omarchy-mise-install emits today:
| Line in a current wrapper | Pattern | Matches? |
|---|---|---|
mise use -g "gh" || exit 1 |
^mise use -g "\(.*\)"$ |
no — line no longer ends in " |
exec mise x "gh" -- "gh" "$@" |
^exec "\(.*\)" "\$@"$ |
no — no longer a bare exec "<path>" |
Simulating that loop over today's wrappers:
gh: package='' bin='' -> SKIPPED
claude: package='' bin='' -> SKIPPED
ghui: package='' bin='' -> SKIPPED
Since package and bin both come back empty, the if [[ -n $package && -n $bin ]] guard skips every wrapper, silently. So a new migration written by copying this loop would appear to run and change nothing.
Steps to reproduce
- Have a wrapper generated before
--quietwas added — e.g.~/.local/bin/ghcontainingmise use -g "gh" || exit 1. gh auth status 2>/dev/null | head -1→ prints the mise banner instead ofgithub.com.- With
credential.https://github.com.helper = !gh auth git-credentialset,git pushto any HTTPS remote →invalid credential linethenfatal: could not read Username.
Affected wrappers on this machine
claude, copilot, crush, gemini, gh, ghui, hunk, omp, opencode, pi, playwright — all dated 2026-08-25. cursor-agent, hermes and muse were already current, presumably regenerated by their own later migrations.
Suggested fix
A migration that regenerates stale wrappers, with patterns matching the format actually on disk. Parsing the package from the mise use -g line and the bin from the exec mise x ... -- <bin> line preserves non-trivial specs (npm:@kitlangton/ghui, aqua:modem-dev/hunk, github:can1357/oh-my-pi), which regenerating from the command name alone would lose. It may be worth making the parser tolerant of both wrapper generations, given this is the second format change it has to survive.
I fixed my own machine by extracting each package/bin pair and re-running omarchy-mise-install per wrapper; the resulting diff was exactly one line each (--quiet), and git push works again.
System
- Omarchy
4.0.3-1 - mise
2026.9.1 linux-x64 - Wrappers written
2026-08-25
No debug log attached: omarchy debug --no-sudo --print isn't a command in 4.0.3 (Unknown Omarchy command). This one is hardware-independent anyway — it reproduces from the wrapper contents plus the git credential-helper config.
🤖 Generated with Claude Code
This is already fixed on quattro, but no release ships the fix yet. #8041 added migrations/1787573629.sh, which regenerates every wrapper written before --quiet: the four-line form you have, the form without the MISE_MINIMUM_RELEASE_AGE export, and the older mise exec and bare exec forms. It takes the package and bin from each wrapper, so npm:@kitlangton/ghui, aqua:modem-dev/hunk and github:can1357/oh-my-pi survive. It only rewrites a file that matches one of those generated forms exactly, so a wrapper someone has edited is left alone. That migration is not in v4.0.3 or v4.0.4. omarchy-migrate runs every migration that has no completion marker, whatever its timestamp, so it will run on your machine with the first release built from quattro.
What was checked, on a disposable Omarchy worker:
- A stale
ghwrapper in your exact format printedmise ~/.config/mise/config.toml tools: [email protected]to stdout, ahead ofgh --version, with stderr discarded. After running1787573629.sh, the wrapper carried--quietand stdout held only gh's own output. - Wrappers for
gh,claude,ghui,hunkandompin the pre---quietformat went through every bulk-regeneration migration in each tree. On v4.0.3 all five stayed unchanged. Onquattroall five came back with--quiet, with their package specs intact. test/shell.d/mise-wrapper-quiet-migration-test.shpassed, 9 of 9, on the worker's compositor session.
You're right that the sed patterns in migrations/1784909971.sh cannot parse today's wrappers. That doesn't block anything, though. That migration only repaired the earlier PATH-recursion format and is already marked complete wherever it ran. The stdout cleanup is the separate migration above, and its parser accepts all four generations. One limit: it skips any file in ~/.local/bin over 1 KB, so a generated wrapper with an extremely long package spec would be missed. None of the specs you list comes close.
#13994 reports the same thing.
Codex Medium reviewed this as a second opinion, reading the migration, its test, omarchy-migrate and the v4.0.3 and v4.0.4 trees. It reached the same conclusion and found no remaining defect. It read the same material this review did, so treat that as agreement, not independent confirmation. Nothing is left to fix in code. This waits on the maintainer to ship a release from quattro, and the issue can close once that release is out.