Skip to content

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

Open
MatrixA wants to merge 2 commits intoslopus:mainfrom
MatrixA:MatrixA/fix-codex-install-hint
Open

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

Conversation

@MatrixA
Copy link

@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 15, 2026 13:11
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>
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