Skip to content

fix(chezmoi): ignore Claude Code credential + settings-backup runtime files - #328

Merged
laurigates merged 1 commit into
mainfrom
fix/ignore-claude-runtime-credential-files
Jul 16, 2026
Merged

fix(chezmoi): ignore Claude Code credential + settings-backup runtime files#328
laurigates merged 1 commit into
mainfrom
fix/ignore-claude-runtime-credential-files

Conversation

@laurigates

Copy link
Copy Markdown
Owner

What

Adds two entries to exact_dot_claude/.chezmoiignore under the runtime-files section: .credentials.json and settings.json.backup.*.

Why

~/.claude is an exact_ tree, so any unlisted top-level entry is deleted on chezmoi apply. While preparing #327, chezmoi status ~/.claude showed pending D lines for:

  • .credentials.json — Claude Code auth state; deleting it would log the CLI out
  • settings.json.backup.<timestamp> — written by Claude Code (2026-07-16) before migrating settings

Neither was registered in .chezmoiignore, so the next apply would have silently removed both. This is the same failure class as the friction-reports/ deletion incident documented in chezmoi-conventions.md.

🤖 Generated with Claude Code

https://claude.ai/code/session_012ybMwaDwhwhXsvMfBLk8Gq

… files

~/.claude is an exact_ tree, so any unlisted top-level entry is DELETED
on chezmoi apply. chezmoi status showed pending D lines for
.credentials.json (Claude Code auth state) and
settings.json.backup.<timestamp> (written by Claude Code before
migrating settings) — neither was in .chezmoiignore, so the next apply
would have silently removed them. Register both as unmanaged runtime
files.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012ybMwaDwhwhXsvMfBLk8Gq
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Broken Links Detected

Summary

Status Count
🔍 Total 170
✅ Successful 160
⏳ Timeouts 0
🔀 Redirected 0
👻 Excluded 9
❓ Unknown 0
🚫 Errors 1

Errors per input

Errors in exact_dot_claude/docs/prds/daily-catchup.PRD.md


Please fix the broken links before merging.

@laurigates
laurigates merged commit 5cdd917 into main Jul 16, 2026
7 of 8 checks passed
@laurigates
laurigates deleted the fix/ignore-claude-runtime-credential-files branch July 16, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant