Answer: Citations arrive on the final assistant.message event, not on assistant.message_delta events, so you should wait for the final message before rendering source markers. The citations data contains sources and spans, where each span has startIndex, endIndex, and references with sourceId values. Status: Confirmed Entry: tool/github-copilot/features/read-citations-messages Revision: 3 Digest: sha256:cb66cb8eeee44bca (changes whenever the content changes) Timeline: Created: 2026-11-13T03:27:49Z Last changed: 2026-11-18T13:03:05Z (citations structure: — → sources, spans) Last verified: 2026-11-20T13:08:02Z Next check: 2026-11-21T13:08:02Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of event | assistant.message | [1] | 2026-11-20 timing | Wait for the final message before you render source markers. | [1] | 2026-11-20 citations structure | sources, spans | [1] | 2026-11-20 reference field | sourceId | [1] | 2026-11-20 Sources: [1] GitHub. "Citations - GitHub Docs". https://docs.github.com/en/copilot/how-tos/copilot-sdk/features/citations Role: primary. Accessed: 2026-11-20T13:08:02Z Quote: "Citations arrive on the final assistant.message event, not on assistant.message_delta events." (Supports: event) Quote: "Wait for the final message before you render source markers." (Supports: timing) Quote: "const { sources, spans } = event. data . citations ;" (Supports: citations structure) Quote: "const source = sourceById. get (reference. sourceId );" (Supports: reference field) Snapshot SHA-256: fae4b29414f1bd153da6460ac33b10090b6ea384d22d10cf0def84dc308adb6f (captured 2026-11-18T13:03:04Z) 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:05Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:08:02Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:08:02Z Last attempt: 2026-11-20T13:08:02Z Notes and limitations: Extracted automatically from a single official source (section "Read citations from assistant messages"). Related: https://latestn.com/tool/github-copilot/features/readme-generator-prompt-overview What does the GitHub Copilot README generator prompt do? https://latestn.com/tool/github-copilot/features/reduce-nested-logic How can GitHub Copilot help reduce nested logic in my code? https://latestn.com/tool/github-copilot/features/reduce-security-debt How can GitHub Copilot help reduce security debt in my company? https://latestn.com/tool/github-copilot/features/pull-request-questions How do I ask GitHub Copilot Chat about a pull request? https://latestn.com/tool/github-copilot/features/pull-request-summary How do I create a pull request summary with GitHub Copilot? https://latestn.com/tool/github-copilot/features/queueing-enqueue-mode How do I queue messages in the GitHub Copilot SDK instead of interrupting the current turn? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-18T13:03:05Z | changed | citations structure: — → sources, spans | [1] 2026-11-18T13:03:05Z | changed | timing: — → Wait for the final message before you render source markers. | [1] 2026-11-18T13:03:05Z | changed | label fallback order: title → — | [1] 2026-11-18T13:03:05Z | changed | span end field: endIndex → — | [1] 2026-11-18T13:03:05Z | changed | span fields: startIndex → — | [1] 2026-11-18T13:03:05Z | changed | offset unit: UTF-16 code units → — | [1] 2026-11-17T13:25:52Z | changed | label fallback order: — → title | [1] 2026-11-17T13:25:52Z | changed | reference field: — → sourceId | [1] 2026-11-17T13:25:52Z | changed | span end field: — → endIndex | [1] 2026-11-17T13:25:52Z | changed | span fields: — → startIndex | [1] 2026-11-17T13:25:52Z | changed | offset unit: — → UTF-16 code units | [1] 2026-11-17T13:25:52Z | changed | reference lookup: sourceId → — | [1] 2026-11-17T13:25:52Z | changed | citation structure: sources, spans → — | [1] 2026-11-17T13:25:52Z | changed | span offsets: UTF-16 code units → — | [1] 2026-11-17T13:25:52Z | changed | timing: Wait for the final message before you render source markers. → — | [1] 2026-11-13T03:27:49Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/features/read-citations-messages/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/read-citations-messages POST: https://latestn.com/dispute/tool/github-copilot/features/read-citations-messages with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/features/read-citations-messages?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I read citations from GitHub Copilot SDK assistant messages? Revision 3, last verified 2026-11-20T13:08:02Z. https://latestn.com/tool/github-copilot/features/read-citations-messages (accessed 2026-11-21T09:53:15Z). @misc{LatestN_tool_github_copilot_features_read_citations_messages_r3, title = {How do I read citations from GitHub Copilot SDK assistant messages?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/features/read-citations-messages}}, note = {Revision 3; digest sha256:cb66cb8eeee44bca; last verified 2026-11-20T13:08:02Z; accessed 2026-11-21T09:53:15Z} } 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/read-citations-messages