From e610e938e202ef0d9b1435cfea29d15bed81d2dd Mon Sep 17 00:00:00 2001 From: Zihang Xu Date: Sun, 22 Feb 2026 14:59:50 +0800 Subject: [PATCH] Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- pkg/providers/github_copilot_provider.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/providers/github_copilot_provider.go b/pkg/providers/github_copilot_provider.go index fa67363f6..b2442b6d5 100644 --- a/pkg/providers/github_copilot_provider.go +++ b/pkg/providers/github_copilot_provider.go @@ -69,10 +69,7 @@ func (p *GitHubCopilotProvider) Chat( }) } - fullcontent, err := json.Marshal(out) - if err != nil { - return nil, fmt.Errorf("failed to marshal messages: %w", err) - } + fullcontent, _ := json.Marshal(out) content, err := p.session.Send(ctx, copilot.MessageOptions{ Prompt: string(fullcontent),