Answer: Use Client::prepare_session or Client::prepare_resume_session to get a PreparedSession, subscribe to its event channel first, then call start(). Status: Confirmed Entry: tool/github-copilot/features/subscribe-before-session-starts Revision: 3 Digest: sha256:d7f454f804ec30e3 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:28:22Z Last changed: 2026-11-18T13:03:56Z (Default buffer capacity: — → 512 events) Last verified: 2026-11-20T13:08:45Z Next check: 2026-11-21T13:08:45Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Unit | Source | As of Method | Client::prepare_session | | [1] | 2026-11-20 Order | Subscribe first, then call start() | | [1] | 2026-11-20 Default buffer capacity | 512 events | events | [1] | 2026-11-20 Sources: [1] GitHub. "Streaming session events - GitHub Docs". https://docs.github.com/en/copilot/how-tos/copilot-sdk/features/streaming-events Role: primary. Accessed: 2026-11-20T13:08:46Z Quote: "Client::prepare_session and Client::prepare_resume_session return a PreparedSession" (Supports: Method) Quote: "Subscribe first, then call start() ." (Supports: Order) Quote: "The event buffer is finite—512 events unless event_buffer_capacity overrides it." (Supports: Default buffer capacity) Snapshot SHA-256: 49d08bb0960e81e7585477caf3153133ebaa4ef2ee58799a6f33fd2eee975601 (captured 2026-11-18T13:03:53Z) 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:03:56Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:08:45Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:08:45Z Last attempt: 2026-11-20T13:08:45Z Notes and limitations: Extracted automatically from a single official source (section "Subscribing before a session starts"). Related: https://latestn.com/tool/github-copilot/features/subscribe-to-streaming-events How do I subscribe to streaming events in the GitHub Copilot SDK? https://latestn.com/tool/github-copilot/features/summarize-pull-request How do I get a summary of a pull request with GitHub Copilot? https://latestn.com/tool/github-copilot/features/supported-hook-events Which hook events does GitHub Copilot support, such as sessionStart, preToolUse, and agentStop? https://latestn.com/tool/github-copilot/features/split-large-methods How do I use GitHub Copilot to split up large methods? https://latestn.com/tool/github-copilot/features/steering-immediate-mode How do I use steering to send an immediate message to a GitHub Copilot SDK session? https://latestn.com/tool/github-copilot/features/submit-question-copilot-chat How do I submit a question to GitHub Copilot Chat in GitHub? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-18T13:03:56Z | changed | Default buffer capacity: — → 512 events | [1] 2026-11-18T13:03:56Z | changed | Order: — → Subscribe first, then call start() | [1] 2026-11-18T13:03:56Z | changed | Method: — → Client::prepare_session | [1] 2026-11-18T13:03:56Z | changed | example capacity: 2048 → — | [1] 2026-11-18T13:03:56Z | changed | default buffer capacity: 512 events → — | [1] 2026-11-18T13:03:56Z | changed | order: Subscribe first, then call start() → — | [1] 2026-11-18T13:03:56Z | changed | method: Client::prepare_session → — | [1] 2026-11-16T12:52:44Z | changed | example capacity: — → 2048 | [1] 2026-11-16T12:52:44Z | changed | zero capacity behavior: 0 → — | [1] 2026-11-13T03:28:22Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/features/subscribe-before-session-starts/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/features/subscribe-before-session-starts POST: https://latestn.com/dispute/tool/github-copilot/features/subscribe-before-session-starts with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/features/subscribe-before-session-starts?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I subscribe to GitHub Copilot SDK events before a session starts? Revision 3, last verified 2026-11-20T13:08:45Z. https://latestn.com/tool/github-copilot/features/subscribe-before-session-starts (accessed 2026-11-21T09:53:22Z). @misc{LatestN_tool_github_copilot_features_subscribe_before_session_starts_r3, title = {How do I subscribe to GitHub Copilot SDK events before a session starts?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/features/subscribe-before-session-starts}}, note = {Revision 3; digest sha256:d7f454f804ec30e3; last verified 2026-11-20T13:08:45Z; accessed 2026-11-21T09:53:22Z} } 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/features/subscribe-before-session-starts