Skip to content

Hooks show no session end entry #298769

Closed

Description

I see this:

Image

But the hooks.json has this:

{
	"version": 1,
	"hooks": {
		"sessionStart": [
			{
				"type": "command",
				"bash": "if [ -f ~/.vscode-worktree-setup ]; then nohup npm ci > /tmp/npm-ci-$(date +%Y-%m-%d_%H-%M-%S).log 2>&1 & fi"
			}
		],
		"sessionEnd": [
			{
				"type": "command",
				"bash": "if [ -f ~/.vscode-worktree-setup ]; then nohup npm run compile fi"
			}
		],
		"userPromptSubmitted": [
			{
				"type": "command",
				"bash": ""
			}
		],
		"preToolUse": [
			{
				"type": "command",
				"bash": ""
			}
		],
		"postToolUse": [
			{
				"type": "command",
				"bash": ""
			}
		]
	}
}

Activity

  1. added
    bug
    on Mar 2, 2026
  2. bpasero commented on Mar 3, 2026

    @bpasero
    ContributorAuthor
    Image Image

    ⏫ full list

  3. added
    unreleased
    on Mar 3, 2026
  4. added this to the 1.111.0 milestone on Mar 3, 2026
  5. added
    insiders-released
    and removed
    unreleased
    on Mar 4, 2026
  6. pwang347 commented on Mar 5, 2026

    @pwang347
    Contributor

    To validate:

    1. Create a hooks file with sessionEnd (ask Copilot to follow instructions in https://docs.github.com/en/copilot/reference/hooks-configuration#session-end-hook)
    2. Run Open Customizations (Preview) command and verify that the hook shows up.
    3. Run Configure Hooks and verify that you see hooks organized by agent type
    4. In the Sessions app, we should see only Copilot CLI hooks. Ie. this list: https://docs.github.com/en/copilot/concepts/agents/coding-agent/about-hooks#types-of-hooks
  7. locked and limited conversation to collaborators on Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

ai-customizationsbugchat-hooksinsiders-releasedverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions