Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
[Medium impact] The PR appears safe to merge; no actionable new issue was established. SummaryLets the Work PATH cleanup finish when Mise is absent and no matching trust grant remains.
|
Mise expands a leading ~/ in MISE_STATE_DIR, so a value set somewhere that does not expand it (an env file read without a shell) still puts trust records under the home directory. The migration took the variable literally, looked in a relative ~/ directory, found no grant, and without Mise completed while the grant survived to reapply the project bin path once Mise is back. Co-Authored-By: Codex Medium <noreply@openai.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Codex Medium <noreply@openai.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Reviewed and verified on an Omarchy worker VM with I pushed two commits to your branch:
Second opinion: Codex Medium reviewed it in three rounds. It found the As your description says, #12174 renames this file, so whichever lands second needs a rebase. This is waiting on CI for the new head, then on the maintainer. |
The only conflict was test/shell.d/mise-work-path-test.sh, which quattro deleted with the other migration suites. The cleanup now lives in omarchy-mise-remove-work-bin-path, and the no-Mise cases test that command. Co-authored-by: Wiktor Ziębka <Thelost77@users.noreply.github.com>
|
Re-reviewed at Verified on an Omarchy worker VM with Second opinion: Codex Medium and muse-wonder (via pi, thinking high) reviewed the new head and found nothing open. Both could read this session's notes, so their agreement isn't fully independent. Both also checked how the migration finds the command under One thing left alone, since it is only wording: with Mise absent and no grant, a custom config still gets "Mise trust for this custom config was revoked". The config isn't trusted either way. #12174 still renames this migration. Now that the file is a single call, whichever lands second has a trivial rebase. Nothing is waiting on you. The maintainer still has to decide whether to edit the shipped migration in place (the only way to reach machines already stuck on it) and to carry the hidden command. |
migrations/1789095456.shcallsmise trust --untrustwithout checking thatmiseis installed. On a machine where the user removedmise-bin,omarchy updatestops with/usr/share/omarchy/migrations/1789095456.sh: line 54: mise: command not found, and every later migration stays pending. The guard in the newer1790863209.sh(omarchy-cmd-present mise || return 0) does not help here, because this migration runs first.Without Mise there is usually no trust to revoke. A grant can still be left in Mise's state, and it applies again once Mise is back. The cleanup now looks for a
~/Workgrant intrusted-configsthe same way it already looks inignored-configs(Mise stores both as symlinks to the trusted path). With no grant, it skips the revoke, using the sameomarchy-cmd-present mise || return 0pattern as1790863209.sh, and still removes the stock config or strips the project bin path from a custom one. With a grant, it stays pending and says to runomarchy pkg add mise-bin, as the Hermes retirement does. AMISE_STATE_DIRthat starts with a literal~/is expanded the way Mise expands it.Since #16302 removed the migration tests, the logic moved into a hidden command,
bin/omarchy-mise-remove-work-bin-path, and the migration now just calls it. The behaviour for machines with Mise is unchanged.test/shell.d/mise-work-path-test.shruns the command against a PATH with nomiseand covers three cases:omarchy pkg add mise-bin, and a later run with Mise revokes the grantMISE_STATE_DIRstarts with~/All three pass on mise 2026.11.3. Running the migration as
omarchy-migratedoes (bash -euo pipefail) gives the same results, andomarchy commands --checkpasses.This changes the file that #12174 renames. Whichever lands second needs a rebase; the fix does not depend on the file name.
🤖 Generated with Claude Code