Skip to content

fix: use hookSpecificOutput JSON for UserPromptSubmit mode changes#371

Open
nanaubusiness wants to merge 5 commits into
DietrichGebert:mainfrom
nanaubusiness:fix/runtime-userpromptsubmit-output
Open

fix: use hookSpecificOutput JSON for UserPromptSubmit mode changes#371
nanaubusiness wants to merge 5 commits into
DietrichGebert:mainfrom
nanaubusiness:fix/runtime-userpromptsubmit-output

Conversation

@nanaubusiness

Copy link
Copy Markdown

For native Claude Code, writing raw context to stdout on UserPromptSubmit replaces the user's prompt with the mode-change message. Using the JSON hookSpecificOutput form (already used for SubagentStart) properly supplements the prompt instead of replacing it.

Closes #363

Admin added 5 commits June 27, 2026 19:52
Previously '/ponytail:review' fell to getDefaultMode() instead of
activating review mode, because the condition checked for the
unreachable '/ponytail:ponytail-review' (wrong pattern). Also removes
the unreachable disjunct that could never be matched.

Closes DietrichGebert#361
In correctness.js, [\\d] in a raw string creates a character class
matching a literal backslash or 'd', not a digit. The intended
lookbehind/lookahead (?<!\d) and (?!\d) now work correctly.

Closes DietrichGebert#365
…ases

The pi-extension only registers slash commands (e.g. /ponytail), not
skill-style aliases (ponytail:ponytail). The claim was inaccurate.

Closes DietrichGebert#364
…ity.md

CodeWhale falls back to reading this file, but it did not exist.
Now added as a stub pointing to the canonical AGENTS.md.

Closes DietrichGebert#366
For native Claude Code, writing raw context to stdout on UserPromptSubmit
replaces the user's prompt with the mode-change message. Using the JSON
hookSpecificOutput form (already used for SubagentStart) properly
supplements the prompt instead of replacing it.

Closes DietrichGebert#363
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.

hooks/ponytail-runtime.js: UserPromptSubmit mode-change message replaces user prompt

1 participant