Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 11, 2026

Adds workbench.action.chat.reportIssueWithOutput command to capture output channel contents and pre-populate the issue reporter.

Implementation

  • New ReportChatIssueWithOutputAction in chatSetupContributions.ts
  • Uses ITextModelService.createModelReference(channel.uri) to safely read output channel content via public API
  • Attempts to retrieve GitHub Copilot Chat output channel, falls back to Window output channel (rendererLog) if unavailable
  • Accepts optional issueTitle and issueBody parameters that are passed through to the issue reporter
  • Pre-fills issue reporter data field with output channel contents or inlined localized fallback message
  • Gated on ChatContextKeys.enabled and ChatContextKeys.Setup.installed
  • Output channel ID extracted to defaultChat constant

Usage

// Basic usage via F1 command palette
F1 > "Report GitHub Copilot Chat Issue"

// Programmatic usage with optional parameters
await commandService.executeCommand('workbench.action.chat.reportIssueWithOutput');

// With custom title and body
await commandService.executeCommand('workbench.action.chat.reportIssueWithOutput', {
  issueTitle: 'Custom Issue Title',
  issueBody: 'Custom issue description'
});

Opens issue reporter with:

  • GitHub Copilot Chat extension pre-selected
  • Output channel contents (GitHub Copilot Chat or Window) in additional data field
  • Optional pre-populated issue title and body
  • Diagnostic logging for troubleshooting
Original prompt

Register another action around the chatSetup code that will grab the contents of GitHub Copilot Chat Output Channel and open the issue reporter with the contents as additional information


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI self-assigned this Jan 11, 2026
Copilot AI changed the title [WIP] Add functionality to open issue reporter with chat output Add action to report GitHub Copilot Chat issues with output channel contents Jan 11, 2026
Copilot AI requested a review from TylerLeonhardt January 11, 2026 17:04
@TylerLeonhardt
Copy link
Member

@copilot if the GitHub Copilot Chat output channel is not available, can you attach the Window output channel?

Also, can you allow the issue title and body (not data) to be passed in and plumbed through?

Copy link
Contributor Author

Copilot AI commented Jan 11, 2026

@copilot if the GitHub Copilot Chat output channel is not available, can you attach the Window output channel?

Also, can you allow the issue title and body (not data) to be passed in and plumbed thro...

Done in commit 9b51a84:

  • Falls back to Window output channel (rendererLog) when GitHub Copilot Chat output channel is not available
  • Added optional options parameter with issueTitle and issueBody fields that are passed through to the issue reporter

Usage example:

// With default behavior
await commandService.executeCommand('workbench.action.chat.reportIssueWithOutput');

// With custom title and body
await commandService.executeCommand('workbench.action.chat.reportIssueWithOutput', {
  issueTitle: 'Custom Issue Title',
  issueBody: 'Custom issue description'
});

completionsRefreshTokenCommand: product.defaultChatAgent?.completionsRefreshTokenCommand ?? '',
chatRefreshTokenCommand: product.defaultChatAgent?.chatRefreshTokenCommand ?? '',
outputChannelId: 'GitHub Copilot Chat',
outputChannelUnavailableMessage: localize('chatOutputChannelUnavailable', "GitHub Copilot Chat output channel not available. Please ensure the GitHub Copilot Chat extension is active and try again. If the issue persists, you can manually include relevant information from the Output panel (View > Output > GitHub Copilot Chat)."),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot This can be inlined in the Action.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in commit fafa670 - moved the localize call inline in the Action.

Copy link
Member

@TylerLeonhardt TylerLeonhardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Example issue: #287023

@bpasero bpasero self-requested a review January 11, 2026 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants