v0.1.12: skip API-key prompt for codex in merlion model#20
Merged
Conversation
v0.1.10 added a codex special-case to `merlion setup` so the wizard checks ~/.codex/auth.json instead of trying to read a phantom env var. I missed the parallel path in `merlion model` — both `merlion model` (no-arg wizard) and `merlion model codex:gpt-5.5` (shortcut) still ran the generic API-key prompt for codex, then printed the misleading hint "Add `(codex login / ~/.codex/auth.json)=...` to .env" which the user reasonably interpreted as a shell command and ran as `codex login / ~/.codex/auth.json` (= unrecognized subcommand). Mirror the setup-wizard fix in both model_cmd paths: - Skip the API-key prompt when the provider is codex. - Print "Codex auth detected (~/.codex/auth.json)" if the file exists, or "Run `codex login`" with a clear standalone-command hint otherwise. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
v0.1.10 fixed this for
merlion setupbut I missedmerlion model. Both paths (no-arg wizard andmerlion model codex:...shortcut) still ran the generic API-key prompt and printed a misleading hint that looked like a shell command.Fixed: when the provider is codex, skip the API-key prompt and print a clear status line ("Codex auth detected" / "Run
codex login").🤖 Generated with Claude Code