[Error] unhandlederror-Cannot resolve workspace for working directory URI: unknown:/

Open
#320,622 1 comment 0 reactions 1 assignee View on GitHub

@bryanchen-d is already working on this.

Since Jun 9, 2026.

Assessment

This issue has not been assessed yet.

Description

*fix ai-generated bug error-telemetry recent-regression stable-anomaly

Error Message

unhandlederror-Cannot resolve workspace for working directory URI: unknown:/

Stack Trace

    at av._createNewSubsequentChat (./src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsProvider.ts:1802:0)
    at av.createNewChat (./src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsProvider.ts:1774:0)
    at Zat.openNewChatInSession (./src/vs/sessions/services/sessions/browser/sessionsManagementService.ts:632:50)
    at G.run (./src/vs/sessions/contrib/sessions/browser/sessionsActions.ts:241:0)
    at handler (./src/vs/platform/actions/common/actions.ts:728:41)
    at fn (./src/vs/platform/instantiation/common/instantiationService.ts:109:10)
    at XYe._tryExecuteCommand (./src/vs/workbench/services/commands/common/commandService.ts:99:45)
    at XYe.executeCommand (./src/vs/workbench/services/commands/common/commandService.ts:63:16)
    at Ro.run (./src/vs/platform/actions/common/actions.ts:650:30)
    at Ya.runAction (./src/vs/base/common/actions.ts:199:0)
    at Ya.run (./src/vs/base/common/actions.ts:190:0)
    at ic.onClick (./src/vs/platform/actions/browser/menuEntryActionViewItem.ts:218:0)
    at HTMLLIElement. (./src/vs/base/browser/ui/actionbar/actionViewItems.ts:157:0)

Raw Stack Trace (minified)
Error: Cannot resolve workspace for working directory URI: unknown:/     at av._createNewSubsequentChat (out/vs/sessions/sessions.desktop.main.js:3921:35087)     at av.createNewChat (out/vs/sessions/sessions.desktop.main.js:3921:34551)     at Zat.openNewChatInSession (out/vs/sessions/sessions.desktop.main.js:3945:57845)     at G.run (out/vs/sessions/sessions.desktop.main.js:3924:31810)     at handler (out/vs/sessions/sessions.desktop.main.js:441:38258)     at a.invokeFunction (out/vs/sessions/sessions.desktop.main.js:1408:943)     at XYe._tryExecuteCommand (out/vs/sessions/sessions.desktop.main.js:1314:4959)     at XYe.executeCommand (out/vs/sessions/sessions.desktop.main.js:1314:4373)     at Ro.run (out/vs/sessions/sessions.desktop.main.js:441:37935)     at Ya.runAction (out/vs/sessions/sessions.desktop.main.js:439:30104)     at Ya.run (out/vs/sessions/sessions.desktop.main.js:439:30007)     at ic.onClick (out/vs/sessions/sessions.desktop.main.js:882:125265)     at HTMLLIElement.<anonymous> (out/vs/sessions/sessions.desktop.main.js:879:17175)

Details

Property Value
Bucket ID 9963fa59-a983-99a2-f251-4e29ad60f654
Version 1.123.0
Commit 6a44c352
Last Seen Mon Jun 08 2026 23:57:52 GMT+0000 (Coordinated Universal Time)
Platforms Mac, Windows, Linux
Product VSCode

This issue was automatically created from the VS Code Errors Dashboard

Dominant language
TypeScript
Stars
193k
Forks
42.9k
PR merge metrics
PR metrics pending

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/vscode

All issues in microsoft/vscode

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.