Skip to content

Enrich Hook data (add sessionId and assistantResponse to hook events) #2458

@QuinnBast

Description

@QuinnBast

Describe the feature or problem you'd like to solve

When a github hook is triggered, it should include the session ID as part of the hook data.

Proposed solution

Currently, when interacting with the Copilot Hooks, there is no way to tell when a sessionEnd hook gets triggered for a particular session. The sessionEnd hook also doesn't include the assistant's final response or summary message for the session.

If possible, these hooks could be greatly improved (especially sessionEnd), by adding a reference to the copilot sessionId (the sessionStart could benefit from this too), this could let us track sessions in external systems and properly alert/close off and report on the status of a specific conversation using these hooks. Currently, this is not possible.

It would also be useful to be able to get the assistant's response within the sessionEnd hook as well.

Example prompts or workflows

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions