-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat: improve autocomplete tooltip when no balance #4856
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat: improve autocomplete tooltip when no balance #4856
Conversation
When a user has a Kilo Code account with no credits, the autocomplete status bar now shows a helpful message explaining that they need to add credits to use autocomplete, rather than just showing a generic token error. This follows the messaging improvements made in PR #4784 for the settings UI.
🦋 Changeset detectedLatest commit: 7d3bc65 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Code Review SummaryStatus: No Issues Found | Recommendation: Merge This PR improves autocomplete tooltip messaging by replacing the generic
Key Changes
Implementation Notes
Files Reviewed (27 files)
|
…e tooltip - Add clickable 'Open Settings' link to tooltip messages using MarkdownString - Add 'no usable provider' error message when no autocomplete provider is configured - Add hasNoUsableProvider flag to track when model is loaded but no provider available - Update all tooltip messages to use MarkdownString for command link support
…essage Updated the noUsableProvider tooltip message to include the full list of supported autocomplete providers: Kilo Code, Mistral, OpenRouter, Requesty, Bedrock, HuggingFace, LiteLLM, LM Studio, and Ollama.
Instead of hardcoding the list of supported autocomplete providers, now dynamically generates the list from AUTOCOMPLETE_PROVIDER_MODELS and PROVIDER_DISPLAY_NAMES. This ensures the tooltip stays in sync with the actual supported providers.
Updated the noCredits and noUsableProvider tooltip messages to match the formatting and wording used in the webview-ui settings panel. Added bold titles and better formatting with newlines for improved readability in the status bar tooltip.
- Remove renderTokenError() method from GhostStatusBar - Simplify render() to only check hasKilocodeProfileWithNoBalance and hasNoUsableProvider - Remove hasValidToken property from GhostStatusBarStateProps - Remove hasValidApiToken() method from GhostServiceManager - Remove tokenError translation from all 22 locale files
This PR improves the autocomplete tooltip messaging when a user has no credits in their Kilo Code account.
Changes
When a user has a Kilo Code account with no credits, the autocomplete status bar now shows a helpful message explaining that they need to add credits to use autocomplete, rather than just showing a generic token error.
This follows the messaging improvements made in PR #4784 for the settings UI.
Files Changed
src/services/ghost/types.ts: AddedhasKilocodeProfileWithNoBalanceproperty toGhostStatusBarStatePropssrc/services/ghost/GhostServiceManager.ts: Pass thehasKilocodeProfileWithNoBalanceflag to GhostStatusBarsrc/services/ghost/GhostStatusBar.ts: AddedrenderNoCreditsError()method to show a helpful no-credits messagesrc/i18n/locales/en/kilocode.json: AddednoCreditstranslation key for the tooltip message.changeset/quiet-moons-sell.md: Added changeset for this change