microsoft / microsoft/vscode

[Error] unhandlederror-Uncaught TypeError: Cannot read properties of undefined (reading 'toString')

Open
#326,994 2 comments 0 reactions 1 assignee Assigned to @connor4312 View on GitHub
ai-analyzed ai-generated bug error-telemetry recent-regression stable-anomaly
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

## Error Message
````
unhandlederror-Uncaught TypeError: Cannot read properties of undefined (reading 'toString')
````

## Stack Trace
    at m1e.get ([./src/vs/workbench/contrib/chat/common/model/chatModelStore.ts:99:31](https://github.com/microsoft/vscode/blob/8a7abeba6e03ea3af87bfbce9a1b7e48fed567b8/src/vs/workbench/contrib/chat/common/model/chatModelStore.ts#L99))
    at I1e.notifyUserAction ([./src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.ts:361:0](https://github.com/microsoft/vscode/blob/8a7abeba6e03ea3af87bfbce9a1b7e48fed567b8/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.ts#L361))
    at Sae._notifyAction ([./src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.ts:316:0](https://github.com/microsoft/vscode/blob/8a7abeba6e03ea3af87bfbce9a1b7e48fed567b8/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.ts#L316))
    at Sae._notifySessionAction ([./src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.ts:272:0](https://github.com/microsoft/vscode/blob/8a7abeba6e03ea3af87bfbce9a1b7e48fed567b8/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.ts#L272))
    at Tt.runner ([./src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.ts:101:0](https://github.com/microsoft/vscode/blob/8a7abeba6e03ea3af87bfbce9a1b7e48fed567b8/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.ts#L101))
    at Tt.doRun ([./src/vs/base/common/async.ts:1258:7](https://github.com/microsoft/vscode/blob/8a7abeba6e03ea3af87bfbce9a1b7e48fed567b8/src/vs/base/common/async.ts#L1258))
    at Tt.onTimeout ([./src/vs/base/common/async.ts:1253:8](https://github.com/microsoft/vscode/blob/8a7abeba6e03ea3af87bfbce9a1b7e48fed567b8/src/vs/base/common/async.ts#L1253))

Raw Stack Trace (minified)

````
TypeError: Cannot read properties of undefined (reading 'toString') at m1e.get (out/vs/workbench/workbench.desktop.main.js:3020:59665) at I1e.notifyUserAction (out/vs/workbench/workbench.desktop.main.js:3028:7160) at Sae._notifyAction (out/vs/workbench/workbench.desktop.main.js:3338:19148) at Sae._notifySessionAction (out/vs/workbench/workbench.desktop.main.js:3338:18002) at Tt.runner (out/vs/workbench/workbench.desktop.main.js:3338:15621) at Tt.doRun (out/vs/workbench/workbench.desktop.main.js:434:81598) at Tt.onTimeout (out/vs/workbench/workbench.desktop.main.js:434:81569)
````

## Details
| Property | Value |
| --- | --- |
| Bucket ID | [`49dea19b-8cd8-f0ae-e69a-e8d7a595b62f`](https://errors.code.visualstudio.com/bucket/49dea19b-8cd8-f0ae-e69a-e8d7a595b62f?product=VSCode&extension=core&commit=8a7abeba6e03ea3af87bfbce9a1b7e48fed567b8) |
| Version | 1.129.1 |
| Commit | [`8a7abeba`](https://insiders.vscode.dev/github/microsoft/vscode/tree/8a7abeba6e03ea3af87bfbce9a1b7e48fed567b8) |
| Last Seen | Tue Jul 21 2026 23:50:04 GMT+0000 (Coordinated Universal Time) |
| Platforms | Windows, Mac, Linux |
| Product | VSCode |

---
*This issue was automatically created from the VS Code Errors Dashboard*

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.