Vscode extension: Change the default directory for sessions.

Open 💬 0 comments Opened May 29, 2026 by huangsijun17

What version of the IDE extension are you using?

1.122.0

What subscription do you have?

coding plan

Which IDE are you using?

VS Code

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

I performed a series of operations in a project folder, wanting to keep the historical session to go to another project. So, I chose to restore the previous session in another directory. But the AI told me that its working path was still in the previous folder.

What steps can reproduce the bug?

Open directory A in VS Code and create a new CodeX session.
Open directory B in VS Code and restore the previous session.
Ask AI, about your work path, he will run commands similar to pwd or Get-Location, and then tell you that he is in directory A.

What is the expected behavior?

_No response_

Additional information

版本: 1.122.0 (user setup)
提交: 6a49527b96e326fe62fbdb56f60e16877c9aa724
日期: 2026-05-27T14:03:01-07:00
Electron: 39.8.8
ElectronBuildId: 13870025
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200

View original on GitHub ↗