Skip to content

fix: statusline setup nudge honors CLAUDE_CONFIG_DIR#338

Open
Lakshya77089 wants to merge 1 commit into
DietrichGebert:mainfrom
Lakshya77089:fix-nudge-claude-config-dir
Open

fix: statusline setup nudge honors CLAUDE_CONFIG_DIR#338
Lakshya77089 wants to merge 1 commit into
DietrichGebert:mainfrom
Lakshya77089:fix-nudge-claude-config-dir

Conversation

@Lakshya77089

Copy link
Copy Markdown
Contributor

Fixes #250.

#34 made ponytail-activate.js detect a missing statusline in getClaudeDir()/settings.json (so it honors CLAUDE_CONFIG_DIR), but the user-facing setup nudge still hardcoded ~/.claude/settings.json in both branches:

  • shell-safe: "To enable, add this to ~/.claude/settings.json: "
  • manual/shell-unsafe: "...to ~/.claude/settings.json, quoting/escaping the path for your shell."

So when CLAUDE_CONFIG_DIR points elsewhere, ponytail correctly notices the missing statusline in the custom dir, then tells the user (and the agent) to write the config into ~/.claude/settings.json — the wrong file. The badge never activates and the agent edits a file Claude Code is not reading.

This points the nudge at the settingsPath the hook already computes, so it matches where the statusline is actually detected. Sibling to the read-path fix in #154.

Verified: extended the existing CLAUDE_CONFIG_DIR test to assert the nudge references <CLAUDE_CONFIG_DIR>/settings.json. Full suite green; no behavior change when CLAUDE_CONFIG_DIR is unset (nudge then resolves to the home ~/.claude/settings.json path as before).

The activation hook detects a missing statusline in getClaudeDir()/settings.json
(CLAUDE_CONFIG_DIR-aware) but the nudge text told the user and the agent to add
the statusLine config to ~/.claude/settings.json. With CLAUDE_CONFIG_DIR set,
that is the wrong file: Claude Code never reads it and the badge never turns on.
Point the nudge at the settingsPath the hook already computed, in both the
shell-safe and manual branches.

Fixes DietrichGebert#250
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant