Skip to content

feat(setup): enhance platform setup with API key verification and imp…#1415

Merged
RealKai42 merged 2 commits intomainfrom
kaiyi/login-401-hint
Mar 12, 2026
Merged

feat(setup): enhance platform setup with API key verification and imp…#1415
RealKai42 merged 2 commits intomainfrom
kaiyi/login-401-hint

Conversation

@RealKai42
Copy link
Copy Markdown
Collaborator

@RealKai42 RealKai42 commented Mar 12, 2026

fixed #1412

  • Show a hint when API key auth returns 401 on non-Kimi-Code platforms, suggesting the user may need to select "Kimi Code" instead
  • Add a loading spinner while verifying the API key
  • Display a setup summary (platform, model, thinking mode) on success
  • Default thinking mode selection to "on"

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked the related issue, if any.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have run make gen-changelog to update the changelog.
  • I have run make gen-docs to update the user documentation.

Open with Devin

Copilot AI review requested due to automatic review settings March 12, 2026 07:12
Copy link
Copy Markdown
Contributor

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

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 potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Improves the interactive CLI platform setup flow by adding clearer feedback during API key verification, better guidance on common misconfiguration (Kimi Code key used on other platforms), and a more informative success summary.

Changes:

  • Add a Rich status spinner while verifying the API key via model listing.
  • Provide a targeted hint on 401 responses for non–Kimi Code platforms.
  • Show a post-setup summary (platform/model/thinking) and default “thinking mode” selection to on when applicable.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

Add support for logging in with kimi-code API key

2 participants