[Bug] Uncaught TypeError: Cannot read properties of undefined (reading 'title') when switching models
Before submitting your bug report
- [x] I've tried using the "Ask AI" feature on the Continue docs site to see if the docs have an answer
- [x] I'm not able to find a related conversation on GitHub discussions that reports the same bug
- [x] I'm not able to find an open issue that reports the same bug
- [x] I've seen the troubleshooting guide on the Continue Docs
Relevant environment info
- OS:
- Continue version:
- IDE version:
- Model:
- config:
OR link to agent in Continue hub:
Description
Description I encountered a Cannot read properties of undefined (reading 'title') error when trying to switch to the Gemini model after configuring it in config.json. The extension seems to crash or fails to load the model list correctly.
To reproduce
1.Open config.json in the Continue extension. 2.Add a new configuration for the Gemini model (Google Gemini). 3.Save the config file. 4.Attempt to select the new model from the dropdown menu (or reload the window). 5.Error appears: "Cannot read properties of undefined (reading 'title')".
Log output
OS: [e.g., Windows 11 ]
VS Code version: [e.g., 1.95.0]
Continue extension version: [e.g., v0.9.x]
Related/duplicate issues:
Duplicate issues (same error with Gemini model selection):
- #8993 - 'title' being read as undefined
- #8946 - When add a model, choose google gemini api, and then click "Model" DropDownList, it throw "Cannot read properties of undefined (reading 'title')"
- #8932 - [Bug] "Cannot read properties of undefined (reading 'title')" when selecting Gemini model
- #8896 - Cannot read properties of undefined (reading 'title')
- #8880 - Cannot read properties of undefined (reading 'title')
- #8893 - Getting Error
- #8846 - Cannot choose Provider Gemini
- #8943 - I can't select a specific model from Google Gemini
- #8947 - Gemini AI - Continue
Related PR:
- #8954 - fix: HOTFIX gemini model add form (closed, fixed the issue)
Note: Issues #8896, #8846, #8880, #8893, #8932, #8943, #8946, and #8947 were closed after PR #8954 was merged, which removed a nonexistent model reference (models.gemini25ProExp) causing the selector to break.
Fixed by https://github.com/continuedev/continue/pull/8954 will be in GA soon!