-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add Session_ID to Hook Inputs #2108
Description
Describe the feature or problem you'd like to solve
Hook input jsons lack a session_id field
Proposed solution
Currently the copilot cli session id is not passed in to hooks when they execute. This should be added as a common field across the hook Input Jsons. This would allow any code executing as a result of the hook to have an authoritative answer for its origin.
Example prompts or workflows
Any cases where hooks are used across multiple copilot cli instances concurrently.
As an example, the service I am working on facilitates cooperative AI cli interactions (primarily hook driven) and needs to be able to disambiguate between which of the local cli sessions invoked the hook.
Additional context
Copilot CLI Hook Inputs: https://docs.github.com/en/copilot/reference/hooks-configuration
Claude Equivalent: https://code.claude.com/docs/en/hooks#hook-input-and-output