claude: link ~/.claude.json straight to persistent storage #1500

Merged
JakeHillion merged 1 commits from jj/plvmvumpotlw into main 2026-12-05 20:21:51 +00:00
1 Commits
Author SHA1 Message Date
JakeHillion ed060a431a claude: link ~/.claude.json straight to persistent storage
commit-validation / validate-single-commit (pull_request) Successful in 10s
buildbot/nix-eval Build done. (30 warnings)
buildbot/nix-build Build done.
buildbot/nix-effects Build done.
Claude Code saves ~/.claude.json by writing a new file next to the target
and renaming it over it, following a symlink only one level. The
impermanence module persisted the file as a link to a home-manager store
entry that links on to /data, so Claude Code tried to write into the
read-only store and every save failed. The persisted file has not changed
since it was created, so each session starts from stale state, including
a cached model list that marks Fable as unavailable.

Replaced the file persistence with an activation step that links
~/.claude.json directly to its file in persistent storage. One level of
symlink leads Claude Code to write and rename within /data, and the
existing file is kept.

Test plan:
- CI
- Built maverick's toplevel: the activation links ~/.claude.json to
  /data/users/jake/.claude.json and home-manager no longer manages it
2026-12-05 20:20:10 +00:00