Open
Description
Describe the bug
I'm experiencing an issue with implementing my custom GitHub Copilot extension. When I try to send copilot_errors and copilot_references to the Copilot platform from my extension code, the references and errors are not rendered in GitHub Copilot Chat and also not in VS Code Chat.
To Reproduce
- Create a GitHub Copilot Extension with GitHub App.
- Download the sample extension from example prompt with user confirmation.
- Test the behavior by replacing the
user confirmation
with references event and errors event using the following code snippets:
copilot_references
const event = "copilot_references";
const data = [{
"type": "blackbeard.story",
"id": "snippet"
}];
response.write(`event: ${event}\ndata: ${JSON.stringify(data)}\n`);
or using preview-sdk.js
response.write(createReferencesEvent(data));
copilot_errors
const event = "copilot_errors";
const data = [{
"type": "function",
"code": "recentchanges",
"message": "There was an error",
"identifier": "github/hello-world"
}];
response.write(`event: ${event}\ndata: ${JSON.stringify(data)}\n`);
or using preview-sdk.js
response.write(createErrorsEvent(data));
Github Copilot Chat UI
VS Code Copilot Chat
Expected behavior
The copilot_errors and copilot_references rendered correctly in both GitHub Copilot Chat and VS Code Chat.
Desktop (please complete the following information):
- OS: MacOS Sequoia 15.5
- Browser: Edge
- Version 136.0.3240.76