continue-custom/gui
Dallin Romney 92c4d19813
fix: "No chat model selected" error on startup (#11672)
* 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`.
2026-03-24 13:05:10 -07:00
..
public feat: model updates and + z.ai (#10638) 2026-02-20 00:35:44 -08:00
src fix: "No chat model selected" error on startup (#11672) 2026-03-24 13:05:10 -07:00
.eslintrc.json remove all barrel extensions 2025-06-19 13:42:43 -07:00
.gitignore feat: implement Sentry error tracking with privacy-first anonymization (#6881) 2025-08-14 16:54:21 -07:00
index.html chore: prettier bulk apply in gui 2024-11-10 21:45:13 -08:00
indexConsole.html Add rich logging of LLM interactions 2025-04-07 14:11:38 -04:00
package-lock.json Update Node.js LTS to v20.20.1 (#11506) 2026-03-24 11:36:07 -07:00
package.json Update Node.js LTS to v20.20.1 (#11506) 2026-03-24 11:36:07 -07:00
postcss.config.cjs chore: prettier bulk apply in gui 2024-11-10 21:45:13 -08:00
README.md ✨ merge preview to main (#575) 2023-10-22 19:34:44 -07:00
rules.md chore: hub.continue.dev -> continue.dev 2026-01-30 15:47:00 -08:00
tailwind.config.cjs dallins feedback 2025-09-09 00:54:09 -07:00
tsconfig.json typescript rectification 2025-03-24 21:05:38 -07:00
tsconfig.node.json ✨ merge preview to main (#575) 2023-10-22 19:34:44 -07:00
vite.config.ts feat: implement Sentry error tracking with privacy-first anonymization (#6881) 2025-08-14 16:54:21 -07:00

Continue React App

The Continue React app is a notebook-like interface to the Continue server. It allows the user to submit arbitrary text input, then communicates with the server to takes steps, which are displayed as a sequence of editable cells. The React app should sit beside an IDE, as in the VS Code extension.