Skip to content

moving new chat to editor fails with 'The editor could not be opened due to an unexpected error.' #275183

@eleanorjboyd

Description

@eleanorjboyd

Testing #274957

steps:

  1. switch to custom agent
  2. click to open chat in editor
  3. 🐛 the following error message appears

error logs:


2025-11-04 08:59:22.573 [trace] [Window] CommandService#executeCommand _setContext
2025-11-04 08:59:22.573 [trace] [Window] CommandService#executeCommand inlineChat.hideHint
2025-11-04 08:59:22.573 [debug] [Window] [EditorAction2] NOT running command because its precondition is FALSE inlineChat.hideHint inlineChatShowingHint
2025-11-04 08:59:22.575 [error] [Window] ChatSessionStore: Error reading chat session file 68c6a017-7f6a-4c2d-888e-15daa39e6bbb Unable to read file '/Users/eleanorboyd/Library/Application Support/Code - Insiders/User/workspaceStorage/62c4b5c5459db8940b2a3174af907105/chatSessions/68c6a017-7f6a-4c2d-888e-15daa39e6bbb.json' (Error: Unable to resolve nonexistent file '/Users/eleanorboyd/Library/Application Support/Code - Insiders/User/workspaceStorage/62c4b5c5459db8940b2a3174af907105/chatSessions/68c6a017-7f6a-4c2d-888e-15daa39e6bbb.json')
2025-11-04 08:59:22.575 [error] [Window] Error: Failed to get model for chat editor. resource: vscode-chat-session://local/NjhjNmEwMTctN2Y2YS00YzJkLTg4OGUtMTVkYWEzOWU2YmJi
    at KIe.setInput (vscode-file://vscode-app/Applications/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2214:9184)
    at async nJe.S (vscode-file://vscode-app/Applications/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:697:58520)
    at async nJe.L (vscode-file://vscode-app/Applications/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:697:57080)
    at async nJe.openEditor (vscode-file://vscode-app/Applications/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:697:56162)
    at async vscode-file://vscode-app/Applications/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:809:23355
    at async m1i (vscode-file://vscode-app/Applications/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2214:12059)

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions