[BUG] WorkspaceTrustError: Workspace requires trust approval before starting a session.

Status Fixed / completed
Reported on v2.1.133
Maintainer reply None cached
Activity 6 comments · opened May 8, 2026 · closed Aug 25, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

I can't use the code app at all, even after trusting the files it's still showing me this error

What Should Happen?

Code should accept the trust and allow me to keep working on the project

Error Messages/Logs

Try sending your message again. If it keeps happening, share feedback so we can investigate.
WorkspaceTrustError: Workspace requires trust approval before starting a session.

Steps to Reproduce

Only way to reproduce the issue is by starting a new session and seeing if it gives you the error

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.133

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

I can use claude in my terminal, it's just the app that doesn't work

View original on GitHub ↗

6 Comments

ben-einstein · 3 months ago

Same for me!

It appears this happens only when the folder to trust contains spaces. Was able to resolve this by hypenating the folder instead of spaces between words.

martinnaithani · 2 months ago

Any update on this as I cannot create new workspace due to this issue

NickBurrus · 2 months ago

I just started working out of my computers terminal since I couldn’t get
the issue to resolve on the app

On Tue, Jun 2, 2026 at 8:11 AM martinnaithani @.***>
wrote:

martinnaithani left a comment (anthropics/claude-code#57276) <https://github.com/anthropics/claude-code/issues/57276#issuecomment-4602245701> Any update on this as I cannot create new workspace due to this issue — Reply to this email directly, view it on GitHub <https://github.com/anthropics/claude-code/issues/57276?email_source=notifications&email_token=BUJMKBVZHQKZIU6QWVC4I6L452775A5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTINRQGIZDINJXGAY2M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-4602245701>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/BUJMKBTHRBGGMRZU3RAOK6T452775AVCNFSM6AAAAACYV6QJLWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DMMBSGI2DKNZQGE> . Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS <https://github.com/notifications/mobile/ios/BUJMKBQHSTC66VVMQVKR7WT452775A5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTINRQGIZDINJXGAY2M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KUZTPN52GK4S7NFXXG> and Android <https://github.com/notifications/mobile/android/BUJMKBWCRZ4PVONPA2MPZTL452775A5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTINRQGIZDINJXGAY2M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2K4ZTPN52GK4S7MFXGI4TPNFSA>. Download it today! You are receiving this because you authored the thread.Message ID: @.***>
ariddellw · 2 months ago

same here, so frustraiting

ariddellw · 2 months ago

I just found a solution that worked for me. first if you are a macOS user press:

command+shift+H

that would lead you to the root folder then create a folder there. delete the previews folder you created. once its created click the root foolder and allow the permissions again. then it should start working normal

martinnovoa22 · 1 month ago

Same issue on Windows, and I can confirm it's specific to git worktrees (not just the base repo folder).

Repro: base repo folder C:\Users\<user>\project is trusted and works fine in the desktop app. A git worktree add under C:\Users\<user>\project\.claude\worktrees\some-worktree (branch claude/some-worktree, created by the desktop app's own "worktree" checkbox) shows the trust banner and blocks with the exact error from this issue. Confirmed in %APPDATA%\Claude\logs\main.log:

[info] LocalSessions.saveTrust: cwd=C:\Users\<user>\project
[info] Saved workspace trust for C:\Users\<user>\project
[error] Cannot start session: workspace C:\Users\<user>\project\.claude\worktrees\some-worktree is not trusted

So trust for the parent repo does not extend to its worktrees — each worktree needs to be trusted independently, but there's no way to do that (the dialog doesn't offer an approve action, only "View details" showing the same error text and "Try again", which re-triggers the same failure).

Also confirming what's noted in #9113: manually adding the worktree's exact path to preferences.localAgentModeTrustedFolders in %APPDATA%\Claude\claude_desktop_config.json and fully restarting the app does not resolve it — the session still fails with "is not trusted" for that exact path even though it's present in the list. So that key doesn't appear to be what the desktop app's checkTrust/saveTrust actually consults; the real trust store for this dialog seems to live elsewhere (couldn't locate it after checking config.json, Preferences, Local Storage LevelDB, and DIPS).

This is a real blocker for anyone using git worktrees with the desktop app's Code tab on Windows. Workaround for now: use the CLI/terminal or the VS Code extension for worktree sessions instead of the standalone desktop app.