Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 10, 2025

Summary

Added "Open" button to issue/PR and notification thread summaries in panel-chat and quick-chat.

Changes Made

  • Add "Open" button to notification summary tool (summarizeNotificationsTool.ts)
  • Add "Open" button to issue/PR summary tool (summarizeIssueTool.ts)
  • Add issueNumber and itemType fields to FetchIssueResult (fetchIssueTool.ts)
  • Use VS Code URI handlers instead of direct GitHub URLs
  • Run linters and ensure code quality
  • Address code review feedback
  • Run security checks (CodeQL - no alerts)

Implementation Details

The "Open" button:

  • Opens the issue/PR/notification webview within VS Code using the extension's URI handler
  • Uses toOpenIssueWebviewUri for issues and toOpenPullRequestWebviewUri for pull requests
  • Appears alongside "Mark as Read" and "Mark as Done" buttons for notifications
  • Follows the same pattern as existing command buttons using TOOL_COMMAND_RESULT
  • Only appears when all necessary information (owner, repo, issue number, item type) is available

All automated checks passed successfully.

Original prompt

This section details on the original issue you should resolve

<issue_title>Add button to open the issue or PR or thread from a summary in panel-chat or quick-chat</issue_title>
<issue_description>Currently after summarizing an issue/PR/notification thread, we add a button that says Mark as Read at the end. It would be nice to have another button to open the issue/PR/notification thread after having read the summary. I imagine there may be people who may want to see the original.

cc @alexr00 @lszomoru </issue_description>

Comments on the Issue (you are @copilot in this section)

@lszomoru Absolutely. We have have "Mark as Read", "Mark as Done", and "Open" actions.

💡 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 and others added 2 commits December 10, 2025 11:42
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
const itemType = options.input.itemType;
if (owner && repo && issueNumber && itemType) {
const type = itemType === 'issue' ? 'issues' : 'pull';
const url = `https://github.com/${owner}/${repo}/${type}/${issueNumber}`;
Copy link
Member

Choose a reason for hiding this comment

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

@copilot Don't use a github.com url, instead use a uri for our urihandler with toOpenIssueWebviewUri or toOpenPullRequestWebviewUri.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated to use toOpenIssueWebviewUri and toOpenPullRequestWebviewUri instead of direct GitHub URLs. The Open button now uses the VS Code URI handler to open the webview within VS Code. (commit e314a3e)

Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
Copilot AI changed the title [WIP] Add button to open issue or PR from summary Add button to open issue or PR from summary Dec 16, 2025
Copilot AI requested a review from alexr00 December 16, 2025 11:24
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.

Add button to open the issue or PR or thread from a summary in panel-chat or quick-chat

2 participants