Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

catrielmuller
Copy link
Contributor

@catrielmuller catrielmuller commented Oct 14, 2025

Context

Resolve: #3000

Implementation

  • Enforce validation on the config.json
  • Show the error as instructions
  • Exit the cli when the config is invalid

Screenshots

image image

How to Test

  1. Remove your kilocodeToken from kilocode config
  2. Run `kilocode "tell me more about this project"

@catrielmuller catrielmuller requested review from RSO and Copilot October 14, 2025 20:56
Copy link

changeset-bot bot commented Oct 14, 2025

⚠️ No Changeset found

Latest commit: 47ebd17

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

@Copilot 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

This PR implements configuration validation on CLI initialization to ensure users have valid provider configurations before running commands. The validation enforces that selected providers have proper credentials and shows helpful error messages when configuration is incomplete.

Key changes:

  • Added comprehensive config validation with provider-specific credential checking
  • Enhanced welcome message to display configuration error instructions
  • Modified UI to exit gracefully when configuration is invalid

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
cli/src/config/validation.ts Added provider-specific validation functions and enhanced config validation logic
cli/src/state/atoms/config.ts Added configValidAtom to expose validation results to UI components
cli/src/ui/UI.tsx Integrated config validation checks and exit behavior for invalid configurations
cli/src/ui/utils/welcomeMessage.ts Added function to convert validation errors into user-friendly instructions
cli/src/ui/messages/cli/WelcomeMessage.tsx Enhanced instruction handling to support custom error messages
cli/src/config/persistence.ts Made getConfigPath synchronous and improved merge function documentation
Test files Updated test configurations to use valid credentials that meet new validation requirements

cli/src/ui/UI.tsx Outdated Show resolved Hide resolved
cli/src/config/persistence.ts Show resolved Hide resolved
@RSO RSO merged commit 9b3a500 into main Oct 15, 2025
11 checks passed
@RSO RSO deleted the catrielmuller/3000-no-provider-config branch October 15, 2025 08:48
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.

kilo "prompt" doesn't do anything when user is not signed in

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.