Skip to content

GitHub Copilot Extension Confirmations return unmarshaled error #252681

Closed
microsoft/vscode-copilot-chat
#21
@theodoracheng

Description

@theodoracheng

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.101.1, Commit 18e3a1e
  • OS Version: macOS Sequoia 15.5

Today if a user uses any GitHub Copilot extension and invokes a confirmation, it returns an error that it cannot be unmarshaled.

Image

Request Failed: 400 json: cannot unmarshal number into Go struct field Message.messages.copilot_confirmations of type []*agentprompt.ClientConfirmation

It looks like VS Code is sending "copilot_confirmations":1 as the confirmation.

The expected body would be

copilot_confirmations:[ 
  {
      state: "accepted/dismissed"
   }
]

Steps to Reproduce:

  1. Open a new Copilot chat in VS Code and enter @blackbeard-agent confirmations
  2. This is a test extension to explicitly invoke a a confirmation
  3. Click accept or dismiss

From my testing, I seecopilot_confirmations sending a 1 for both a confirmation and dismissal.
This has been happening for at least a month, and was first reported in this issue #250344

Metadata

Metadata

Assignees

Labels

author-verification-requestedIssues potentially verifiable by issue authorbugIssue identified by VS Code Team member as probable bugchatverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions