Skip to content

[Bug] Issues with rendering copilot_errors and copilot_references in GitHub Copilot Chat and VS Code Chat #38

Open
@Izzzu

Description

@Izzzu

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

  1. Create a GitHub Copilot Extension with GitHub App.
  2. Download the sample extension from example prompt with user confirmation.
  3. 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
Image
VS Code Copilot Chat
Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions