Describe the bug
Title: sessionStart hook is never fired
Description:
The sessionStart hook defined in .github/hooks/*.json is never executed, regardless of how the session is started (copilot fresh start, copilot --continue, or /resume).
Environment:
- Copilot CLI on macOS
- Hook config:
.github/hooks/parallela.json
Expected behavior:
sessionStart fires when a new session begins or an existing session is resumed, as documented at https://docs.github.com/en/copilot/concepts/agents/coding-agent/about-hooks
Actual behavior:
sessionEnd fires correctly on /exit
userPromptSubmitted, preToolUse, agentStop all fire correctly
sessionStart never fires — the hook script is never called
Verification:
Added logging to the hook script. Logs from all other hooks appear, but sessionStart produces no output at all, confirming the hook is not being invoked.
Workaround:
Currently detecting session start inside the userPromptSubmitted hook by checking for the absence of a session marker file.
Affected version
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
Additional context
No response
Describe the bug
Title:
sessionStarthook is never firedDescription:
The
sessionStarthook defined in.github/hooks/*.jsonis never executed, regardless of how the session is started (copilotfresh start,copilot --continue, or/resume).Environment:
.github/hooks/parallela.jsonExpected behavior:
sessionStartfires when a new session begins or an existing session is resumed, as documented at https://docs.github.com/en/copilot/concepts/agents/coding-agent/about-hooksActual behavior:
sessionEndfires correctly on/exituserPromptSubmitted,preToolUse,agentStopall fire correctlysessionStartnever fires — the hook script is never calledVerification:
Added logging to the hook script. Logs from all other hooks appear, but
sessionStartproduces no output at all, confirming the hook is not being invoked.Workaround:
Currently detecting session start inside the
userPromptSubmittedhook by checking for the absence of a session marker file.Affected version
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
Additional context
No response