Skip to content

Conversation

@Pierozi
Copy link
Contributor

@Pierozi Pierozi commented Feb 3, 2026

Summary

  • Add ~/.local/state/claude to allow_read and allow_write for lock files
  • Add ~/.cache/claude to allow_read and allow_write for staging

Problem

Claude Code 2.x uses XDG-style directories:

  • ~/.local/state/claude/locks/ for lock files
  • ~/.cache/claude/staging/ for staging

The existing profile only allowed ~/.local/share/claude, causing OAuth token refresh to fail when the lock file write was denied.

Test plan

  • Run sx claude and verify OAuth refresh works without 401 errors
  • Verify lock files can be created in ~/.local/state/claude/locks/
  • Verify staging works in ~/.cache/claude/staging/

Claude Code 2.x uses XDG-style directories for state and cache:
- ~/.local/state/claude/ for lock files
- ~/.cache/claude/ for staging

Without these paths, OAuth token refresh fails because the lock
file write to ~/.local/state/claude/locks/ is denied.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants