Skip to content

Preserve user launcher symlinks during Mise refresh - #14778

Closed
thebytorsnowdog wants to merge 1 commit into
omacom:fix/issue-7101from
thebytorsnowdog:contrib/pr-14539-preserve-native-links
Closed

thebytorsnowdog wants to merge 1 commit into
omacom:fix/issue-7101from
thebytorsnowdog:contrib/pr-14539-preserve-native-links

Conversation

@thebytorsnowdog

Copy link
Copy Markdown
Contributor

Follow-up to #14539. This PR targets fix/issue-7101, the existing PR's branch in omacom/omarchy, and contains only our correction on top of dd8ee5f7081a. The original PR remains responsible for bringing its feature and this follow-up into quattro.

Mise refresh now leaves user launcher symlinks in place, including native Claude/Codex links, dangling links and links to recognized wrapper bytes. The wrapper recognizer accepts only regular nonlinks; generated regular wrappers still refresh and absent wrappers still install.

This intentionally changes the author's symlink replacement policy to match the default-agent ownership contract. Historical Omarchy generators wrote regular scripts, so a target inside a Mise directory does not prove link ownership. Add real-writer and refresh-leaf fixtures checking original link text, target bytes/modes and regular-wrapper behavior. All 14 focused checks pass, with the same 14 on a clean Quattro 2519fd9 merge; original-source and recognizer-follow-link controls fail the intended invariants. No provider installation/authentication or desktop acceptance ran.

Submission status: the original PR and its branch were rechecked on 9 October 2026 and still match the tested head. Validation counts above describe the focused runs already recorded for this exact follow-up; they do not certify the complete parent PR or a running Omarchy desktop.

@greptile-apps

greptile-apps Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium impact] This follow-up appears safe to merge.

Summary

omarchy-mise-install now preserves launcher symlinks instead of replacing them.

  • Mise refresh keeps user launcher links in place.

Intent acknowledged by thebytorsnowdog: preserving all launcher symlinks, including dangling links and links to historical wrappers, is intentional because a link's target does not establish Omarchy ownership.

Review was based on code inspection. No tests or desktop checks were run.

Reviews (1) · Last reviewed commit: "Preserve user launcher symlinks during M..." · Reviewed by Greptile

@jandrusk

Copy link
Copy Markdown

Preserving user launcher symlinks (instead of replacing them because the target lives under a Mise dir) matches the ownership contract, and the real-writer fixtures help. Ready as a stacked follow-up on #14539 / fix/issue-7101.

@omarchybot

Copy link
Copy Markdown
Collaborator

I read this pull request at c8fb055, and compared it with its parent #14539 and with #11484, an older open fix for #7101. Nothing was run on a worker.

This pull request has no class label yet. I read it as a bug fix: on its base, fix/issue-7101, a symlink at ~/.local/bin/<command> is still replaced, so the links that Claude Code's and Codex's native installers create are swapped back to mise wrappers on the next update. A label needs a second model to agree on the class, and the second opinion (Codex Medium) did not run because omabot's daily review budget was spent. It will be asked again on a later pass.

Here is what one model's reading found, with no second opinion behind it. The change does what it says. omarchy_wrapper now rejects a symlink, and the guard at bin/omarchy-mise-install:87 keeps any symlink, including a dangling one. It is stacked on #14539, and omabot's review there recommended #11484 as the fix to take forward instead of #14539. #11484 already keeps absolute, relative and dangling symlinks, and its test/shell.d/mise-install-preservation-test.sh checks all three. So this pull request covers a case that #11484 already handles. It would matter only if the maintainer picks #14539. Whichever fix lands also has to change test/shell.d/mise-provision-test.sh on quattro, which still requires provisioning to replace a user's symlink at ~/.local/bin/kimi, cursor-agent and muse.

This waits on the maintainer, who is choosing between the fixes for #7101 on #14539.

@thebytorsnowdog thebytorsnowdog closed this by deleting the head repository Nov 10, 2026
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.

3 participants