Answer: The session end hook receives five end reasons: "complete", "error", "abort", "timeout", and "user_exit". Status: Confirmed Entry: tool/github-copilot/agents-and-automation/session-end-reasons Revision: 3 Digest: sha256:fbc86628cc4e5b11 (changes whenever the content changes) Timeline: Created: 2026-11-13T12:56:42Z Last changed: 2026-11-18T13:04:20Z (end reasons: — → complete) Last verified: 2026-11-20T13:09:07Z Next check: 2026-11-21T13:09:07Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of end reasons | complete | [1] | 2026-11-20 Sources: [1] GitHub. "Session lifecycle hooks - GitHub Docs". https://docs.github.com/en/copilot/how-tos/copilot-sdk/hooks/session-lifecycle Role: primary. Accessed: 2026-11-20T13:09:07Z Quote: ""complete" Session completed normally" (Supports: end reasons) Snapshot SHA-256: c3b2940e63c2d5b4375f09e3c10e3dbeda70a4f09f16d8e5858af613f941621b (captured 2026-11-18T13:04:20Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-18T13:04:20Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:09:07Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:09:07Z Last attempt: 2026-11-20T13:09:07Z Notes and limitations: Extracted automatically from a single official source (section "End reasons"). Related: https://latestn.com/tool/github-copilot/agents-and-automation/session-idle-vs-task-complete What is the difference between session.idle and session.task_complete in the GitHub Copilot SDK? https://latestn.com/tool/github-copilot/agents-and-automation/session-lifecycle-hooks-best-practices What are the best practices for using GitHub Copilot SDK session lifecycle hooks? https://latestn.com/tool/github-copilot/agents-and-automation/session-resume-persistence How do I resume a GitHub Copilot SDK session and keep it persistent? https://latestn.com/tool/github-copilot/agents-and-automation/select-agent-at-session-creation How do I select a specific agent when creating a GitHub Copilot SDK session? https://latestn.com/tool/github-copilot/agents-and-automation/semantic-search-cloud-agent How does semantic code search work in the GitHub Copilot cloud agent? https://latestn.com/tool/github-copilot/agents-and-automation/send-errors-to-monitoring How do I send GitHub Copilot SDK errors to a monitoring service or alert on critical errors? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-18T13:04:20Z | changed | end reasons: — → complete | [1] 2026-11-18T13:04:20Z | changed | end reason: complete → — | [1] 2026-11-16T12:53:05Z | changed | end reason: — → complete | [1] 2026-11-16T12:53:05Z | changed | End reason 5: user_exit → — | [1] 2026-11-16T12:53:05Z | changed | End reason 4: timeout → — | [1] 2026-11-16T12:53:05Z | changed | End reason 3: abort → — | [1] 2026-11-16T12:53:05Z | changed | End reason 2: error → — | [1] 2026-11-16T12:53:05Z | changed | End reason 1: complete → — | [1] 2026-11-13T12:56:42Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/agents-and-automation/session-end-reasons/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/github-copilot/agents-and-automation/session-end-reasons POST: https://latestn.com/dispute/tool/github-copilot/agents-and-automation/session-end-reasons with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/agents-and-automation/session-end-reasons?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). What end reasons does the GitHub Copilot SDK session end hook receive? Revision 3, last verified 2026-11-20T13:09:07Z. https://latestn.com/tool/github-copilot/agents-and-automation/session-end-reasons (accessed 2026-11-21T09:58:55Z). @misc{LatestN_tool_github_copilot_agents_and_automation_session_end_reasons_r3, title = {What end reasons does the GitHub Copilot SDK session end hook receive?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/agents-and-automation/session-end-reasons}}, note = {Revision 3; digest sha256:fbc86628cc4e5b11; last verified 2026-11-20T13:09:07Z; accessed 2026-11-21T09:58:55Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/github-copilot/agents-and-automation/session-end-reasons