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