Skip to content

Add Session_ID to Hook Inputs #2108

@ala24013

Description

@ala24013

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions