Skip to content

Statusline setup nudge hardcodes ~/.claude/settings.json, ignoring CLAUDE_CONFIG_DIR #255

Description

@halindrome

Problem

ponytail-activate.js's "STATUSLINE SETUP NEEDED" nudge hardcodes ~/.claude/settings.json as the file to edit. When CLAUDE_CONFIG_DIR is set, the flag file and settings live under that directory instead — so the nudge sends the user to the wrong file, and the statusline never gets configured.

This is the same CLAUDE_CONFIG_DIR override already honored for the .ponytail-active flag (issue #34); the nudge text just didn't follow suit.

Fix

Use the already-resolved settingsPath (computed from getClaudeDir(), which honors CLAUDE_CONFIG_DIR) in both nudge branches — the shell-safe snippet and the manual-config fallback — instead of the literal ~/.claude/settings.json.

Scope

  • hooks/ponytail-activate.js — two string substitutions
  • tests/hooks.test.js — assert the nudge references CLAUDE_CONFIG_DIR/settings.json and not ~/.claude/settings.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions