claude-code - 💡(How to fix) Fix Trust dialog repeats every launch on Windows 11 22H2 (OS-specific bug) [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#51619Fetched 2026-04-22 07:57:24
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×3

Investigated the trust dialog persistence bug across three Windows systems with identical Claude Code version (2.1.116) and found a clear OS-specific pattern.

Root Cause

Hope this OS-version comparison helps narrow down the root cause! 🙏

Fix Action

Fix / Workaround

Workaround (Win11 22H2)

RAW_BUFFERClick to expand / collapse

Bug Report: Trust Dialog Repeats Every Launch on Windows 11 22H2

Related to: #3366 (locked)

Summary

Investigated the trust dialog persistence bug across three Windows systems with identical Claude Code version (2.1.116) and found a clear OS-specific pattern.

Reproduction Pattern

SystemOSTrust Dialog Behavior
Notebook 1Windows 10Never appears after first accept ✅
Notebook 2Windows 11 22H2Appears every single launch
Notebook 3Windows 11 25H2Appears only on first launch ✅

Investigation Results

All three systems have identical configuration:

  • No ~/.claude/projects/.../settings.json found on any system
  • No Anthropic/Claude entries in Windows Credential Manager (cmdkey /list)
  • No Anthropic/Claude registry keys (checked HKCU\Software\Anthropic)
  • ~/.claude/settings.json contains only { "autoUpdatesChannel": "latest" }
  • ~/.claude/settings.local.json exists with permissions entries on all three
  • ~/.claude/projects/ contains only .jsonl session files — no trust state file

Despite identical file structures, only Win11 22H2 shows the repeated trust dialog.

Key Finding

The trust acceptance state does not persist between sessions exclusively on Windows 11 22H2. Windows 10 and Windows 11 24H2 handle it correctly with the same Claude Code version.

We could not locate where trust state is stored on the working systems (Win10, Win11 25H2) — it's not in any file, registry key, or Credential Manager entry we checked. This makes it difficult to pinpoint the exact failure on 22H2, but the OS version correlation is clear.

Workaround (Win11 22H2)

PowerShell wrapper using SendKeys to auto-accept the dialog on launch.

Environment

  • Claude Code version: 2.1.116
  • Affected OS: Windows 11 22H2
  • Unaffected OS: Windows 10, Windows 11 25H2

Hope this OS-version comparison helps narrow down the root cause! 🙏

extent analysis

TL;DR

The trust dialog repetition on Windows 11 22H2 can be mitigated by using a PowerShell wrapper with SendKeys to auto-accept the dialog on launch.

Guidance

  • Investigate the differences in how Windows 11 22H2 handles trust state persistence compared to Windows 10 and Windows 11 25H2.
  • Review the SendKeys PowerShell wrapper workaround provided for Windows 11 22H2 to understand its implementation and potential limitations.
  • Consider exploring alternative methods for storing trust state, such as using a dedicated file or registry key, to improve persistence across sessions.
  • Verify that the issue is not related to the ~/.claude/settings.json or ~/.claude/settings.local.json files by testing with modified configurations.

Example

No code example is provided due to the lack of specific implementation details in the issue.

Notes

The root cause of the issue is unclear, and the provided workaround may not be a permanent solution. Further investigation is needed to determine why Windows 11 22H2 handles trust state persistence differently than other affected systems.

Recommendation

Apply the provided PowerShell wrapper workaround using SendKeys to auto-accept the dialog on launch, as it is the most straightforward solution currently available.

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 Trust dialog repeats every launch on Windows 11 22H2 (OS-specific bug) [1 participants]