Skip to content

fix(happy-cli): show install instructions when codex is not installed#858

Merged
bra1nDump merged 2 commits intoslopus:mainfrom
MatrixA:MatrixA/fix-codex-install-hint
Apr 1, 2026
Merged

fix(happy-cli): show install instructions when codex is not installed#858
bra1nDump merged 2 commits intoslopus:mainfrom
MatrixA:MatrixA/fix-codex-install-hint

Conversation

@MatrixA
Copy link
Copy Markdown
Contributor

@MatrixA MatrixA commented Mar 15, 2026

Summary

  • Add early Codex CLI install check in runCodex() before rendering the TUI, so users see a clean formatted error with install instructions instead of the raw Error: spawn codex ENOENT
  • Align the error message style with happy claude's existing not-installed message

Test plan

  • Uninstall or rename the codex binary, run happy codex — should show formatted install instructions without rendering the TUI
  • With codex installed, run happy codex — should work normally

MatrixA and others added 2 commits March 31, 2026 18:32
Add early codex CLI check before rendering TUI so users see a clean
error message with install instructions instead of "spawn codex ENOENT".

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Align with official Codex install methods: npm and brew install --cask.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@MatrixA MatrixA force-pushed the MatrixA/fix-codex-install-hint branch from cd6e7ef to 8cfbe58 Compare March 31, 2026 10:33
@bra1nDump bra1nDump merged commit 571770f into slopus:main Apr 1, 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.

2 participants