Skip to content

fix(hooks): make statusline nudge informational - #1410

Open
duathron wants to merge 1 commit into
DietrichGebert:mainfrom
duathron:fix/statusline-hint-wording
Open

duathron wants to merge 1 commit into
DietrichGebert:mainfrom
duathron:fix/statusline-hint-wording

Conversation

@duathron

Copy link
Copy Markdown

On the first session start without a statusline, and after an update that leaves the configured path dangling, ponytail-activate.js adds a note to the context. Each version of that note ends with "Proactively offer to set this up / fix this for the user on first interaction." That tells the model to start a change to the user's settings.json on its own. A plugin shouldn't steer the agent toward editing the user's config, even with a confirmation step in between.

This PR keeps every fact in the three notes (BROKEN, SETUP, and the manual-setup path) and drops the call to action:

  • The lead-ins now state what is wrong and what the fix would be: "The fix is to point that command at …, quoted for the shell, keeping the rest of the command as it is", and "To enable it, the user can add this to …: ".
  • Each note ends with: "Mention this to the user once; change settings.json only if they ask for it."
  • The logic is unchanged: the once-only flag, isShellSafe, the snippet and the paths.
  • tests/hooks.test.js: new assertions for all three branches, checking the wording and that "Proactively" doesn't appear. It also adds a scenario for the manual-setup branch, which had no test before, using a config dir with $ in its name.

Tests: node --test tests/*.test.js gives 143 of 144 passing. The one failure is csv: correct pandas one-liner passes, which also fails on main in my environment (no pandas). npm test --prefix pi-extension passes 30 of 30.

🤖 Generated with Claude Code

https://claude.ai/code/session_01J9HLRpQYgqTqGkrBigkfaS

The SessionStart statusline hint told the model to "proactively offer"
and to edit settings.json. Reword all three variants as statements of
fact for the user, ending with "Mention this to the user once; change
settings.json only if they ask for it." Paths, snippet, once-only flag
and shell-safety logic are unchanged. Tests pin the wording on the
setup, broken-path and unsafe-path branches.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.

1 participant