ponytail/hooks
Lakshya77089 795ec0ee36
fix: statusline reads flag from CLAUDE_CONFIG_DIR, not just ~/.claude (#34 follow-up) (#154)
Issue #34 made the hooks honor CLAUDE_CONFIG_DIR when writing the mode flag
($CLAUDE_CONFIG_DIR/.ponytail-active), enforced by tests/hooks.test.js. But
both statusline scripts still hardcoded $HOME/.claude/.ponytail-active, so any
user with CLAUDE_CONFIG_DIR set gets no badge — or a stale mode from a
pre-migration ~/.claude flag that never updates again.

Make both scripts resolve the flag the same way getClaudeDir() does: prefer
CLAUDE_CONFIG_DIR, fall back to ~/.claude. The fallback branch is identical to
the previous behavior, so unset-env users are unaffected. Also corrects the
now-inaccurate path comment in the activation hook header.
2026-06-18 22:50:17 +02:00
..
copilot-hooks.json Adding support for Copilot Marketplace plugin (#47) 2026-06-15 11:02:59 +02:00
hooks.json fix: hooks degrade gracefully when node is not on PATH (#57) 2026-06-15 11:23:59 +02:00
ponytail-activate.js fix: statusline reads flag from CLAUDE_CONFIG_DIR, not just ~/.claude (#34 follow-up) (#154) 2026-06-18 22:50:17 +02:00
ponytail-config.js fix: only deactivate on a standalone "stop ponytail" / "normal mode" (#162) 2026-06-18 22:50:03 +02:00
ponytail-instructions.js feat: refine ruleset from a full-project field review (#39) 2026-06-15 02:02:50 +02:00
ponytail-mode-tracker.js fix: only deactivate on a standalone "stop ponytail" / "normal mode" (#162) 2026-06-18 22:50:03 +02:00
ponytail-runtime.js Adding support for Copilot Marketplace plugin (#47) 2026-06-15 11:02:59 +02:00
ponytail-statusline.ps1 fix: statusline reads flag from CLAUDE_CONFIG_DIR, not just ~/.claude (#34 follow-up) (#154) 2026-06-18 22:50:17 +02:00
ponytail-statusline.sh fix: statusline reads flag from CLAUDE_CONFIG_DIR, not just ~/.claude (#34 follow-up) (#154) 2026-06-18 22:50:17 +02:00