Previously, setupClaudeSettings would silently create an empty settings map when json.Unmarshal failed, then write just a prompt field to the file - destroying all existing user settings (permissions, hooks, etc). Now returns a clear error asking the user to fix the JSON syntax manually, preserving their original file contents. Also properly handles permission errors when reading existing files. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Jimmy Stridh <jimmystridh@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com>
43 KiB
43 KiB