Skip to content

docs(extending): add stdin row to hooks-vs-aliases comparison - #2529

Merged
max-sixty merged 1 commit into
mainfrom
alias-json
May 2, 2026
Merged

max-sixty merged 1 commit into
mainfrom
alias-json

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

The comparison table in extending.md covered invocation, positional handling, approval flags, source filters, and template-context extras — but never said anything about stdin. Hooks have always received the template context as JSON on stdin (documented in hook.md), and since #2380 aliases inherit the parent's stdin so pipes pass through and interactive TUIs (wt switch) keep the tty. Adding a row makes the contract discoverable from the aliases page rather than only from the CHANGELOG.

🤖 Generated with Claude Code

Hooks receive template-context JSON on stdin; aliases inherit the parent's
stdin so pipes pass through and interactive TUIs (e.g. `wt switch`) keep the
tty. Both contracts existed in code and CHANGELOG, but the comparison table
in extending.md never said so explicitly.

Co-Authored-By: Claude <[email protected]>
@max-sixty
max-sixty merged commit b12ac07 into main May 2, 2026
27 checks passed
@max-sixty
max-sixty deleted the alias-json branch May 2, 2026 17:55
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.

2 participants