Skip to content

fix(macos): launch mise-installed CLI from Spotlight - #1138

Merged
iamtoruk merged 1 commit into
mainfrom
fix/1124-spotlight-launch
Aug 25, 2026
Merged

iamtoruk merged 1 commit into
mainfrom
fix/1124-spotlight-launch

Conversation

@ozymandiashh

Copy link
Copy Markdown
Collaborator

Summary

  • add mise's stable shim directory to the PATH inherited by menubar child processes
  • respect MISE_DATA_DIR when LaunchServices provides it, with mise's default data directory as the fallback
  • add a behavior-level Swift regression fixture for an npm-backend launcher that must resolve node from the mise shim
  • document the GUI PATH behavior and release note

Reproduction

The persisted CLI path can point at mise's npm-backend launcher while Spotlight supplies only the system PATH. Before this change, the equivalent fixture fails exactly like the report:

$ env -i HOME=<fixture-home> PATH=/usr/bin:/bin env -- \
    <fixture-home>/.local/share/mise/installs/npm-codeburn/latest/node_modules/.bin/codeburn --version
.../codeburn: line 2: exec: node: not found
exit=127

The production PATH augmentation now adds <fixture-home>/.local/share/mise/shims; the same launcher resolves the fake node shim and exits 0 with mise-node-ok.

Why this is safe

The process remains argv-based through /usr/bin/env --; no shell or string interpolation was added. This only extends the existing GUI PATH handling for Volta, npm-global, asdf, and nvm with mise's documented stable shim location.

Validation

  • production CodeburnCLI.augmentedPath behavior harness: pass
  • new Swift test file type-checks with the local Testing macro plugin
  • swift build -c release: pass
  • npx tsc --noEmit: pass
  • npm run build:cli: pass
  • root Vitest suite: 3,305 passed; two unrelated concurrency/timeout cases failed in the full parallel run, then both files passed immediately in isolation (17/17)
  • git diff --check: pass

Fixes #1124

@iamtoruk
iamtoruk merged commit 7a2e03e into main Aug 25, 2026
6 checks passed
@iamtoruk
iamtoruk deleted the fix/1124-spotlight-launch branch August 25, 2026 11:20
iamtoruk added a commit that referenced this pull request Aug 25, 2026
CLI-only patch: cold-start input responsiveness (#1141, fixes #1139),
provider-recorded session lineage capture (#1140), disk-persisted
status snapshot with fail-closed save gate (#999), mise Spotlight
launch fix (#1138). Apps stay 0.9.21; payloads add-only, contract
holds.
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.

Can't start CodeBurnMenubar from Spotlight (macOS)

2 participants