Skip to content

[Bug] "Cannot read properties of undefined (reading 'title')" when selecting Gemini model #8932

@chulavege1

Description

@chulavege1

Before submitting your bug report

Relevant environment info

**OS:** macOS (Darwin arm64 25.1.0)
**Continue version:** 1.3.24
**IDE version:** VSCode 1.106.3 (Universal)
**Model:** Gemini (Google)

Description

When attempting to switch the active model to a Gemini provider model via the UI dropdown, the extension crashes immediately. An error screen titled "Oops! Something went wrong" appears with the specific error message: Cannot read properties of undefined (reading 'title').

This prevents me from using any Gemini models.

My config.yaml - name: Annigilator Dev Assistant
version: 1.0.0
schema: v1

systemMessage: |
Paste params there for customizing the system message.

models:

  • name: Qwen2.5-Coder 7B
    provider: ollama
    model: qwen2.5-coder:7b
    apiBase: http://localhost:11434
    default: true

autocomplete:
model: qwen2.5-coder:7b
provider: ollama
apiBase: http://localhost:11434
temperature: 0.1

experimental:
enableAgentMode: true
autoAcceptAgentEdits: true

tools:

  • name: read_file
    policy: Automatic
  • name: create_new_file
    policy: Automatic
  • name: edit_existing_file
    policy: Automatic
  • name: run_terminal_command
    policy: Automatic
  • name: ls
    policy: Automatic
  • name: file_glob_search
    policy: Automatic

contextProviders:

  • type: file
    params:
    globs:
    - "**/*"
    maxFileSize: 100000

To reproduce

  1. Open VS Code with Continue extension installed (v1.3.24).
  2. Open the Continue sidebar panel.
  3. Click on the model selector dropdown (bottom-left or top-right depending on layout).
  4. Navigate to the "Gemini" provider section.
  5. Click on any configured Gemini model to select it.
  6. Result: The "Oops! Something went wrong" error screen appears instantly.

Log output

TypeError: Cannot read properties of undefined (reading 'title')
    at children (index.js:424:45112)
    at n6 (index.js:412:46249)
    at slt (index.js:412:45860)
    at index.js:412:45692
    at Wut (index.js:424:40743)
    at Vu (XCircleIcon.js:38:17011)
    at As (XCircleIcon.js:40:1576)
    at ga (XCircleIcon.js:40:46199)
    at ma (XCircleIcon.js:40:39912)
    at gf (XCircleIcon.js:40:39840)
NKt @ index.js:2068
Vu @ XCircleIcon.js:38
ga @ XCircleIcon.js:40
ma @ XCircleIcon.js:40
gf @ XCircleIcon.js:40
kl @ XCircleIcon.js:40
fa @ XCircleIcon.js:40
Ft @ XCircleIcon.js:38
(anonymous) @ XCircleIcon.js:40
index.js:2068 TypeError: Cannot read properties of undefined (reading 'title')
    at children (index.js:424:45112)
    at n6 (index.js:412:46249)
    at slt (index.js:412:45860)
    at index.js:412:45692
    at Wut (index.js:424:40743)
    at Vu (XCircleIcon.js:38:17011)
    at As (XCircleIcon.js:40:1576)
    at ga (XCircleIcon.js:40:46199)
    at ma (XCircleIcon.js:40:39912)
    at gf (XCircleIcon.js:40:39840)
NKt @ index.js:2068
Vu @ XCircleIcon.js:38
ga @ XCircleIcon.js:40
ma @ XCircleIcon.js:40
gf @ XCircleIcon.js:40
kl @ XCircleIcon.js:40
po @ XCircleIcon.js:40
fa @ XCircleIcon.js:40
Ft @ XCircleIcon.js:38
(anonymous) @ XCircleIcon.js:40
XCircleIcon.js:40 TypeError: Cannot read properties of undefined (reading 'title')
    at children (index.js:424:45112)
    at n6 (index.js:412:46249)
    at slt (index.js:412:45860)
    at index.js:412:45692
    at Wut (index.js:424:40743)
    at Vu (XCircleIcon.js:38:17011)
    at As (XCircleIcon.js:40:1576)
    at ga (XCircleIcon.js:40:46199)
    at ma (XCircleIcon.js:40:39912)
    at gf (XCircleIcon.js:40:39840)
Gu @ XCircleIcon.js:40
u.componentDidCatch.n.callback @ XCircleIcon.js:40
ss @ XCircleIcon.js:38
ia @ XCircleIcon.js:40
oa @ XCircleIcon.js:40
hf @ XCircleIcon.js:40
kf @ XCircleIcon.js:40
un @ XCircleIcon.js:40
fa @ XCircleIcon.js:40
Ft @ XCircleIcon.js:38
(anonymous) @ XCircleIcon.js:40
index.js:52 React Router caught the following error during render TypeError: Cannot read properties of undefined (reading 'title')
    at children (index.js:424:45112)
    at n6 (index.js:412:46249)
    at slt (index.js:412:45860)
    at index.js:412:45692
    at Wut (index.js:424:40743)
    at Vu (XCircleIcon.js:38:17011)
    at As (XCircleIcon.js:40:1576)
    at ga (XCircleIcon.js:40:46199)
    at ma (XCircleIcon.js:40:39912)
    at gf (XCircleIcon.js:40:39840) {componentStack: '\n    at Wut (https://file+.vscode-resource.vscode-…-1.3.24-darwin-arm64/gui/assets/index.js:33:3072)'}
componentDidCatch @ index.js:52
u.componentDidCatch.n.callback @ XCircleIcon.js:40
ss @ XCircleIcon.js:38
ia @ XCircleIcon.js:40
oa @ XCircleIcon.js:40
hf @ XCircleIcon.js:40
kf @ XCircleIcon.js:40
un @ XCircleIcon.js:40
fa @ XCircleIcon.js:40
Ft @ XCircleIcon.js:38
(anonymous) @ XCircleIcon.js:40
index.js:2068 TypeError: Cannot read properties of undefined (reading 'title')
    at children (index.js:424:45112)
    at n6 (index.js:412:46249)
    at slt (index.js:412:45860)
    at index.js:412:45692
    at Wut (index.js:424:40743)
    at Vu (XCircleIcon.js:38:17011)
    at As (XCircleIcon.js:40:1576)
    at ga (XCircleIcon.js:40:46199)
    at ma (XCircleIcon.js:40:39912)
    at gf (XCircleIcon.js:40:39840)
NKt @ index.js:2068
Vu @ XCircleIcon.js:38
Zu @ XCircleIcon.js:40
ga @ XCircleIcon.js:40
ma @ XCircleIcon.js:40
gf @ XCircleIcon.js:40
kl @ XCircleIcon.js:40
ca @ XCircleIcon.js:40
et @ XCircleIcon.js:25
ct @ XCircleIcon.js:25

Metadata

Metadata

Assignees

Labels

area:configurationRelates to configuration optionside:vscodeRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behavioros:macHappening specifically on Mac

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions