[BUG] The "Trust this workspace?" dialog appears every single time
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?
Environment
- Claude Code version: 2.1.123
- OS: Windows 11 (client), Ubuntu 24.04 (remote server)
- Connection method: Claude Code UI remote connection
- Remote workspace path:
/home/ubuntu/AIAsistant
Problem
The "Trust this workspace?" dialog appears every single time I connect to my remote Ubuntu server via the Claude Code UI. Clicking "Trust Workspace" has no effect — the dialog reappears on the next connection. The dialog always shows:
Execution allowed by: Unable to verify remote workspace trust
What Should Happen?
Environment
- Claude Code version: 2.1.123
- OS: Windows 11 (client), Ubuntu 24.04 (remote server)
- Connection method: Claude Code UI remote connection
- Remote workspace path:
/home/ubuntu/AIAsistant
Problem
The "Trust this workspace?" dialog appears every single time I connect to my remote Ubuntu server via the Claude Code UI. Clicking "Trust Workspace" should be effective — the dialog should disappears on the next connection.
Error Messages/Logs
Steps to Reproduce
Environment
- Claude Code version: 2.1.123
- OS: Windows 11 (client), Ubuntu 24.04 (remote server)
- Connection method: Claude Code UI remote connection
- Remote workspace path:
/home/ubuntu/AIAsistant
Problem
The "Trust this workspace?" dialog appears every single time I connect to my remote Ubuntu server via the Claude Code UI. Clicking "Trust Workspace" has no effect — the dialog reappears on the next connection. The dialog always shows:
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
Claude Code 2.1.100
Claude Code Version
Updated Claude Code from 2.1.119 to 2.1.123
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
PowerShell
Additional Information
All attempted workarounds — none worked
- Added workspace path to
~/.claude/trusted_workspaces.jsonon the remote server - Fixed malformed JSON in
~/.claude/settings.jsonon the remote server and addedtrustedWorkspaceskey - Added workspace path to
%USERPROFILE%\.claude\trusted_workspaces.jsonon the Windows client - Added
"defaultMode": "bypassPermissions"to%USERPROFILE%\.claude\settings.local.jsonon the Windows client - Updated Claude Code from 2.1.119 to 2.1.123
None of the above had any effect. The trust dialog continues to appear on every connection.
Root cause analysis
After reviewing debug logs, it appears the Claude Code UI remote connection mode uses a completely different trust verification mechanism that does not read from any of the local or remote config files. The trusted_workspaces.json and settings.json modifications are simply ignored when connecting via the UI remote connection flow.
Impact
This is a significant workflow disruption. Every remote session requires manually dismissing this dialog, and it cannot be suppressed through any available configuration. Users are spending considerable time and resources attempting workarounds that have no effect.
Please prioritize a fix for the UI remote connection trust persistence. At minimum, document which config file actually controls trust for this connection mode.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗