From db24aadb8699b6eac2b2cee801132584b1e57650 Mon Sep 17 00:00:00 2001 From: PratikDhanave Date: Tue, 22 Sep 2026 08:40:26 +0530 Subject: [PATCH] Fix copilotprovider citations godoc: field is on SessionConfig The comment said native citations are enabled via AgentConfig.EnableCitations, but AgentConfig has no such field; the flag lives on AgentConfig.SessionConfig.EnableCitations (the Copilot SDK SessionConfig). Correct the reference. --- provider/copilotprovider/copilot.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/provider/copilotprovider/copilot.go b/provider/copilotprovider/copilot.go index 66a49cae..f5fe73d1 100644 --- a/provider/copilotprovider/copilot.go +++ b/provider/copilotprovider/copilot.go @@ -672,8 +672,9 @@ func (p *provider) assistantMessageUpdate(event copilot.SessionEvent, data *copi ContentHeader: message.ContentHeader{RawRepresentation: event}, Text: data.Content, } - // Surface native model citations (enabled via AgentConfig.EnableCitations) - // as CitationAnnotations, mirroring the OpenAI chat/Responses providers. + // Surface native model citations (enabled via + // AgentConfig.SessionConfig.EnableCitations) as CitationAnnotations, + // mirroring the OpenAI chat/Responses providers. if data.Citations != nil { for _, source := range data.Citations.Sources { fileID := firstNonNilString(source.Path)