continue icon indicating copy to clipboard operation
continue copied to clipboard

[Bug] Uncaught TypeError: Cannot read properties of undefined (reading 'title') when switching models

Open Neo82-z opened this issue 11 months ago • 2 comments

Before submitting your bug report

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]

Neo82-z avatar Dec 08 '25 02:12 Neo82-z

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.

continue avatar Dec 08 '25 02:12 continue

Fixed by https://github.com/continuedev/continue/pull/8954 will be in GA soon!

RomneyDa avatar Jan 14 '26 21:01 RomneyDa