Trust dialog repeats every launch on Windows 11 22H2 (OS-specific bug)
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
| System | OS | Trust Dialog Behavior |
|--------|----|-----------------------|
| Notebook 1 | Windows 10 | Never appears after first accept ✅ |
| Notebook 2 | Windows 11 22H2 | Appears every single launch ❌ |
| Notebook 3 | Windows 11 25H2 | Appears only on first launch ✅ |
Investigation Results
All three systems have identical configuration:
- No
~/.claude/projects/.../settings.jsonfound on any system - No Anthropic/Claude entries in Windows Credential Manager (
cmdkey /list) - No Anthropic/Claude registry keys (checked
HKCU\Software\Anthropic) ~/.claude/settings.jsoncontains only{ "autoUpdatesChannel": "latest" }~/.claude/settings.local.jsonexists with permissions entries on all three~/.claude/projects/contains only.jsonlsession 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! 🙏
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗