claude-code - 💡(How to fix) Fix [BUG] The "Trust this workspace?" dialog appears every single time [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#54628Fetched 2026-04-30 06:40:25
View on GitHub
Comments
0
Participants
1
Timeline
5
Reactions
0
Author
Participants
Timeline (top)
labeled ×5

Error Message

Error Messages/Logs

Root Cause

Root cause analysis

Fix Action

Fix / Workaround

All attempted workarounds — none worked

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.

Code Example

Execution allowed by: Unable to verify remote workspace trust

---
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • 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

  1. Added workspace path to ~/.claude/trusted_workspaces.json on the remote server
  2. Fixed malformed JSON in ~/.claude/settings.json on the remote server and added trustedWorkspaces key
  3. Added workspace path to %USERPROFILE%\.claude\trusted_workspaces.json on the Windows client
  4. Added "defaultMode": "bypassPermissions" to %USERPROFILE%\.claude\settings.local.json on the Windows client
  5. 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.

extent analysis

TL;DR

The issue can be resolved by modifying the configuration file that controls trust for the UI remote connection mode, which is not currently documented.

Guidance

  • Investigate the Claude Code UI remote connection mode's trust verification mechanism to determine the correct configuration file to modify.
  • Review the debug logs to understand how the trust verification mechanism works and what configuration files are being read.
  • Consider reaching out to the Claude Code support team or checking the official documentation for guidance on configuring trust for UI remote connections.
  • If possible, test the connection using a different method, such as the command-line interface, to see if the issue is specific to the UI remote connection mode.

Example

No code snippet is provided as the issue is related to configuration files and the correct file to modify is not specified.

Notes

The root cause analysis suggests that the UI remote connection mode uses a different trust verification mechanism that does not read from the local or remote config files that were modified. The issue is specific to the UI remote connection mode and does not affect other connection methods.

Recommendation

Apply a workaround by investigating alternative configuration files or methods to configure trust for the UI remote connection mode, as the current configuration files are being ignored.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] The "Trust this workspace?" dialog appears every single time [1 participants]