Skip to content

Conversation

@markijbema
Copy link
Contributor

  • Add event listeners to GhostServiceManager to reload when profile changes
  • Listen for ProviderProfileChanged events from ClineProvider
  • Listen for VSCode configuration changes affecting kilo-code settings
  • Add test coverage for event listener registration

Fixes issue where autocomplete shows 'No suitable autocomplete model found' even after user logs in with a profile that supports autocomplete models like Codestral

image

- Add event listeners to GhostServiceManager to reload when profile changes
- Listen for ProviderProfileChanged events from ClineProvider
- Listen for VSCode configuration changes affecting kilo-code settings
- Add test coverage for event listener registration

Fixes issue where autocomplete shows 'No suitable autocomplete model found'
even after user logs in with a profile that supports autocomplete models like Codestral
@changeset-bot
Copy link

changeset-bot bot commented Oct 29, 2025

⚠️ No Changeset found

Latest commit: d9b7933

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

- Add explicit postStateToWebview() call after ghost.reload command
- Add postStateToWebview() after saveApiConfiguration triggers ghost reload
- Ensures UI immediately reflects updated autocomplete model info

This complements the event listener fix to ensure the UI properly
updates when autocomplete models become available after login
- Add 1-second delayed retry when no model found on first attempt
- Handles race condition where auth state is still settling after login
- Updates status bar and webview state after successful retry

This addresses timing issues where defaultProviderUsabilityChecker
completes after initial UI render, ensuring model info displays
correctly even with async authentication verification
- Trigger ghost.reload after fetchProfileDataRequest succeeds
- Ensures autocomplete model detection runs after profile/balance data loads
- Critical for detecting newly available models after login

This is the key fix - profile data fetch happens AFTER login completes,
so we need to reload ghost service at that point to detect available models
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.

2 participants