* fix: resolve "No chat model selected" error and GUI/core model mismatch
Three fixes for the model selection bugs reported in #11656 and 12+ related issues:
1. Fix loadConfig() init ordering: await isInitialized before checking
currentProfile, consistent with getSerializedConfig(). Prevents
returning config: undefined during initialization race.
2. Avoid full config reload on model selection: The config/updateSelectedModel
handler now updates the model in the cached config in-place instead of
doing a full reloadConfig(). This eliminates the window where
selectedModelByRole.chat is null during reload, and prevents the
configUpdate from core overwriting the GUI's optimistic selection.
3. Guard against undefined config in GUI: handleConfigUpdate now also
checks !configResult.config alongside configLoadInterrupted, preventing
EMPTY_CONFIG (with chat: null) from being applied.
* fix: resolve "No chat model selected" error on startup
Two fixes for the "No chat model selected" error reported in #11656 and
12+ related issues across all providers:
1. Fix loadConfig() init ordering (ConfigHandler.ts): Move
`await this.isInitialized` before the `!this.currentProfile` check,
matching the pattern already used in getSerializedConfig(). Without
this, loadConfig() called during initialization returns
config: undefined because currentProfile hasn't been set yet.
2. Guard against undefined config in GUI (ParallelListeners.tsx):
handleConfigUpdate now also checks `!configResult.config` alongside
configLoadInterrupted, preventing EMPTY_CONFIG (with
selectedModelByRole.chat: null) from being applied.
* fix: provide valid mock config to fix GUI test failures
The added `!configResult.config` guard in ParallelListeners caused tests
to bail early since MockIdeMessenger returned `config: undefined`.
During config loading in core, if any non-YAML files are in .continue/agents
or .continue/assistants directories, it tries to load them as configs. This
change filters out .md files by explicitly setting fileExtType to 'yaml' when
loading agent and assistant config profiles.
The getAllDotContinueDefinitionFiles function already supports filtering by
file extension type, but it wasn't being used in ConfigHandler. This ensures
only .yaml and .yml files are loaded as config profiles, preventing errors
when markdown documentation files exist in the agents/assistants directories.
Co-authored-by: dallin <dallin@continue.dev>
Generated with [Continue](https://continue.dev)
Co-Authored-By: Continue <noreply@continue.dev>
This commit refactors how IdeSettings and ControlPlaneClient are accessed throughout
the configuration system to improve state management and reduce coupling.
Previously, ideSettingsPromise was passed down from the top-level ConfigHandler
through various profile loaders and clients. This created a rigid dependency chain
and required manual promise replacement when settings were updated. Similarly,
downstream components could hold onto stale instances of ControlPlaneClient after a
change in authentication state.
The key changes are:
- Removed ideSettingsPromise prop drilling: Components that require IDE settings
now fetch them directly from the IDE object (ide.getIdeSettings()) when
needed.
- Updated globalLocalProfileManager during every cascadeInit: This ensures it
always holds the most recent ControlPlaneClient, preventing issues with stale
client objects after re-authentication.
- Simplified constructors: The constructors for ConfigHandler, ControlPlaneClient,
and various loaders have been simplified to reflect these changes, primarily by
passing the IDE object directly instead of its derived promises.
* feat: add sentry to core
* feat: implement comprehensive Sentry error tracking with privacy-first anonymization
- Add Sentry ErrorBoundary components following React best practices
- Implement shared anonymization logic between core and GUI environments
- Create organized sentry directory structure with clean exports
- Add Continue team member access control (@continue.dev email check)
- Preserve node_modules package names for debugging while anonymizing user paths
- Include comprehensive test coverage for all anonymization scenarios
- Set up source maps for readable production error stack traces
- Add browser-compatible hashing without crypto module dependency
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* feat: complete Sentry integration with GUI components and tests
- Add GUI TelemetryProviders with Sentry ErrorBoundary
- Create shared isContinueTeamMember utilities for both core and GUI
- Update all imports and dependencies for new sentry structure
- Add comprehensive test coverage and fix all TypeScript issues
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* prettier
* fix: resolve GUI build errors by removing sentry index.ts and using specific imports
- Remove problematic index.ts that was pulling Node.js-specific Sentry code into browser bundle
- Update GUI to import specifically from anonymization.ts and constants.ts files
- Update core imports to use specific SentryLogger.ts import path
- GUI build now succeeds with proper source map upload to Sentry
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* fix: move TelemetryProviders inside AuthProvider to fix test failures
- Move TelemetryProviders from main.tsx to Layout.tsx inside AuthProvider
- Fixes "useAuth must be used within an AuthProvider" error in tests
- TelemetryProviders now has access to auth context for Continue team member check
- GUI build and functionality remain working correctly
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* prettier
* merge main
* Update package.json
* fix tests
* fix errors
* Update extension.ts
* disable sentry in tests/local dev
* add additional error handling
* Update SentryLogger.ts
* remove global try/catch
* remove test code
* linting
* Update SentryLogger.ts
* more logs
* Update core.ts
* lower sampling rate
* fix tests
* feat: use `Logger`
* Update logger.ts
* Update logger.ts
Co-Authored-By: Claude <noreply@anthropic.com>
* lint fixes
Co-Authored-By: Claude <noreply@anthropic.com>
* fix: rename logger.ts to Logger.ts for case sensitivity
This fixes TypeScript compilation errors in CI where the file
was tracked as lowercase logger.ts but referenced as Logger.ts
in imports.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* address ting-wai's feedback
* Update core.ts
---------
Co-authored-by: Claude <noreply@anthropic.com>
- Import Telemetry from util/posthog.js in ConfigHandler
- Track start and end time of reloadConfig method using performance.now()
- Send "config_reload" telemetry event with duration, reason, totalConfigLoads, and configLoadInterrupted
- Helps track config loading performance bottlenecks and understand reload patterns
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>