fix(hooks): stop cavecrew model overrides rewriting a source checkout
resolvePluginRoot returns the repo root when the hook runs from a clone, so with any CAVECREW_*_MODEL set every SessionStart rewrote tracked agents/*.md and dirtied the tree. Skip when the plugin root sits inside a git work tree; an installed plugin under $CLAUDE_CONFIG_DIR still gets overrides. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SqmbqWDtNexzDfH5V3BMRz
J
Julius Brussee committed
6c95972cd4d9d0bf9e90b6ba99607bc2b7ac6748
Parent: 7789c2f