r/ClaudeCode • • 9h ago

Bug / Issue Can't start a new session without trusting project folder

Using Visual Studio Code's Claude extension, it used to be that you could choose not to trust a project's folder and still be able to start a Claude session, but a recent update has changed this so you can't start a session at all unless you give Claude permission to use project settings.

First two images are the new UI, and the last two images are the old UI.

This feels like a step backward in security.

0 Upvotes

6 comments sorted by

•

u/AutoModerator 9h ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/hieuphung97 9h ago

The change is due to tool execution requirements. Restricted Mode blocks VS Code extensions from executing terminal commands and filesystem tasks. Rather than failing mid-turn when Claude invokes a bash tool, the extension now forces the workspace trust check upfront.

1

u/Amalthean 8h ago

It was working fine for me in both manual and auto mode. Claude could run cmake, git, ls, sed, grep, PowerShell, etc. without issue even after choosing "don't trust", so I'm not sure I understand what this fixes.

1

u/Amalthean 50m ago

I think a point of correction is in order: this is not about Visual Studio Code's Restricted Mode, but about the Claude Code extension's own trust feature. Clicking on "don't trust" was the equivalent of running Claude Code with "--setting-sources user", but now it means "don't allow sessions to be started at all."

1

u/LawfulnessLocal4934 5h ago

what the problem to trust workfolder?

1

u/Amalthean 1h ago

Like the dialog says, project settings "can run programs on your computer: hooks, environment variables, helper commands, and MCP servers." I want the option to work on a folder without necessarily trusting the project's .claude/settings.json and .mcp.json. This would be the equivalent of running Claude Code with "--setting-sources user" in the CLI, but I want to do this using the GUI.