-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[FEATURE] terminalSequence field on hook #4882
Copy link
Copy link
Open
Labels
category/cliCommand line interface and interactionCommand line interface and interactionpriority/P3Low - Minor, cosmetic, nice-to-fix issuesLow - Minor, cosmetic, nice-to-fix issuesroadmap/hooks-eventsRoadmap: Hook and event systemRoadmap: Hook and event systemscope/interactiveInteractive CLI featuresInteractive CLI featuresscope/shellShell command executionShell command executiontype/feature-requestNew feature or enhancement requestNew feature or enhancement request
Metadata
Metadata
Assignees
Labels
category/cliCommand line interface and interactionCommand line interface and interactionpriority/P3Low - Minor, cosmetic, nice-to-fix issuesLow - Minor, cosmetic, nice-to-fix issuesroadmap/hooks-eventsRoadmap: Hook and event systemRoadmap: Hook and event systemscope/interactiveInteractive CLI featuresInteractive CLI featuresscope/shellShell command executionShell command executiontype/feature-requestNew feature or enhancement requestNew feature or enhancement request
Type
Fields
Give feedbackNo fields configured for issues without a type.
What would you like to be added?
ClaudeCode v2.1.141 release added a terminalSequence field to hook JSON output so hooks can emit terminal-side effects such as desktop notifications, window-title updates, and bells without a controlling terminal.
Why is this needed?
anthropics/claude-code#36850
Additional context
Example:
{ "hooks": { "PermissionRequest": [ { "matcher": "", "hooks": [{ "type": "command", "command": "~/.claude/hooks/notify.sh" }] } ], "Stop": [ { "matcher": "", "hooks": [{ "type": "command", "command": "~/.claude/hooks/notify.sh" }] } ] } }