Skip to content

fix(soul): make LLMNotSet error message actionable for fresh installs#2488

Open
nankingjing wants to merge 2 commits into
MoonshotAI:mainfrom
nankingjing:fix-llm-not-set-msg
Open

fix(soul): make LLMNotSet error message actionable for fresh installs#2488
nankingjing wants to merge 2 commits into
MoonshotAI:mainfrom
nankingjing:fix-llm-not-set-msg

Conversation

@nankingjing

@nankingjing nankingjing commented Jul 10, 2026

Copy link
Copy Markdown

Summary

Closes #2456

Fresh installs (via Homebrew brew install kimi-cli) show LLM not set when running any command before kimi login. The error message gives no guidance on what to do next.

Change

Updated LLMNotSet exception default message from:

LLM not set

to:

LLM not set. Run `kimi login` to sign in, or set a model in your config file (~/.kimi/config.toml).

This benefits the print UI (--print) and CLI error paths which currently only show the bare message. The shell UI already overrides this with its own contextual message (send "/login" to login), so shell users are unaffected.

Files changed

  • src/kimi_cli/soul/__init__.py: Updated LLMNotSet.__init__ message
  • tests/core/test_exceptions.py: Updated inline snapshot

🤖 Generated with Claude Code


Open in Devin Review

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

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.

Bug: Fresh install reports "LLM not set" with no guidance to run login

1 participant