fix: restore HAPPY_HOME_DIR to PVC so settings survive pod restarts #19

Merged
cpfarhood merged 1 commits from fix/happy-home-dir into main 2026-02-20 18:22:33 +00:00
cpfarhood commented 2026-02-20 18:20:05 +00:00 (Migrated from github.com)

Summary

Moving HAPPY_HOME_DIR to /workspace (emptyDir) was too aggressive — it wiped Happy Coder's auth tokens, config, and daemon state on every pod restart, causing both settings loss and boot failures.

The stale lock problem that motivated the move is already handled by the rm -f in init-repo.sh. There was no need to move the whole home dir.

Changes:

  • Restore happyHomeDir default to /home/user/.happy (on the home PVC)
  • Update the lock cleanup comment to reflect the actual rationale

Test plan

  • Deploy and confirm Happy Coder starts on boot
  • Restart pod — confirm settings and auth persist
  • Confirm daemon.state.json.lock is cleaned up correctly on restart

🤖 Generated with Claude Code

## Summary Moving `HAPPY_HOME_DIR` to `/workspace` (emptyDir) was too aggressive — it wiped Happy Coder's auth tokens, config, and daemon state on every pod restart, causing both settings loss and boot failures. The stale lock problem that motivated the move is already handled by the `rm -f` in `init-repo.sh`. There was no need to move the whole home dir. **Changes:** - Restore `happyHomeDir` default to `/home/user/.happy` (on the home PVC) - Update the lock cleanup comment to reflect the actual rationale ## Test plan - [ ] Deploy and confirm Happy Coder starts on boot - [ ] Restart pod — confirm settings and auth persist - [ ] Confirm `daemon.state.json.lock` is cleaned up correctly on restart 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.