Skip to content

fix(mqlaunch): honour MACOS_SCRIPTS_HOME, route REPL perf/dev/demo, NO_COLOR - #309

Merged
MCamner merged 1 commit into
mainfrom
fix/mqlaunch-wrapper-repl-gaps
Nov 8, 2026
Merged

MCamner merged 1 commit into
mainfrom
fix/mqlaunch-wrapper-repl-gaps

Conversation

@MCamner

@MCamner MCamner commented Nov 8, 2026

Copy link
Copy Markdown
Owner

Four verified gaps in the mqlaunch entry points.

Changes

  • Install dir: bin/mqlaunch and mqlaunch-repl.sh fall back to MACOS_SCRIPTS_HOME (what install.sh exports) before $HOME/macos-scripts. Before: with only MACOS_SCRIPTS_HOME set, bin/mqlaunch help exited 1.
  • REPL perf/dev/demo: delegate to mqlaunch.sh perf|dev|demo. Before: perf/dev executed bridge files that only define functions (status 0, no effect); demo called a nonexistent run_demo (status 127).
  • dashboard --no-color: the wrapper's dashboard shortcut bypassed mqlaunch.sh, where --no-color is stripped, so argparse rejected it. The wrapper now strips it and exports NO_COLOR=1.
  • REPL NO_COLOR: color variables are empty when NO_COLOR is set.

Verification

  • tests/mqlaunch-wrapper-repl-smoke.sh (new, registered in manifest + test-all): failed before the fix, passes after.
  • tools/scripts/test-all.sh: exit 0 (shell lint 259 files passed).
  • Real runs: help via MACOS_SCRIPTS_HOME exit 0; dashboard --no-color --json prints JSON; REPL demo completes; perf opens Performance Hub; dev opens the dev menu.

🤖 Generated with Claude Code

…O_COLOR

- bin/mqlaunch and the REPL fall back to MACOS_SCRIPTS_HOME (what install.sh
  exports) before $HOME/macos-scripts; an install elsewhere exited 1.
- REPL perf/dev/demo delegate to mqlaunch.sh's command router. They executed
  bridge files that only define functions (status 0, no effect), and demo
  called a nonexistent run_demo (status 127).
- The wrapper's dashboard shortcut strips --no-color and exports NO_COLOR, as
  mqlaunch.sh does; `mqlaunch dashboard --no-color` was rejected by argparse.
- The REPL's colors are empty when NO_COLOR is set.

tests/mqlaunch-wrapper-repl-smoke.sh covers all four.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MCamner
MCamner merged commit d3c7ce5 into main Nov 8, 2026
3 checks passed
@MCamner
MCamner deleted the fix/mqlaunch-wrapper-repl-gaps branch November 8, 2026 13:56
MCamner added a commit that referenced this pull request Nov 8, 2026
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@MCamner MCamner mentioned this pull request Nov 16, 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.

1 participant