From a60001ac90cdcab0a59332b7f592824816c3a095 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 13 Feb 2026 20:31:24 +0000 Subject: [PATCH 1/2] Initial plan From c34d8a547ff18ae7324c06b44ef197c72bbeafa9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 13 Feb 2026 20:36:44 +0000 Subject: [PATCH 2/2] Remove 'delegate to agent' / 'assign to coding agent' command and related code Remove the issue.assignToCodingAgent command, its registration, implementation, package.json entries, localization string, and update documentation to remove references to "Delegate to coding agent" and outdated CodeLens mentions. This functionality is moving to the Copilot Chat extension. Co-authored-by: joshspicer <23246594+joshspicer@users.noreply.github.com> --- documentation/IssueFeatures.md | 9 ++---- package.json | 16 ---------- package.nls.json | 1 - src/issues/issueFeatureRegistrar.ts | 47 ----------------------------- 4 files changed, 2 insertions(+), 71 deletions(-) diff --git a/documentation/IssueFeatures.md b/documentation/IssueFeatures.md index 72abd5f90e..95cdeb0099 100644 --- a/documentation/IssueFeatures.md +++ b/documentation/IssueFeatures.md @@ -1,15 +1,10 @@ We've added some experimental GitHub issue features. -# Code actions and CodeLens +# Code actions -Wherever there is a `TODO` comment in your code, two actions are available: +Wherever there is a `TODO` comment in your code, a code action is available via the lightbulb quick fix menu: -1. **CodeLens**: Clickable actions appear directly above the TODO comment line for quick access -2. **Code actions**: The same actions are available via the lightbulb quick fix menu - -Both provide two options: - **Create Issue from Comment**: Takes your text selection and creates a GitHub issue with the selection as a permalink in the issue body. It also inserts the issue number after the `TODO`. -- **Delegate to coding agent**: Starts a Copilot coding agent session to work on the TODO task (when available) ![Create Issue from Comment](images/createIssueFromComment.gif) diff --git a/package.json b/package.json index c3c8b84ff7..c91fb894f4 100644 --- a/package.json +++ b/package.json @@ -1794,13 +1794,6 @@ "category": "%command.issues.category%", "icon": "$(sparkle)" }, - { - "command": "issue.assignToCodingAgent", - "title": "%command.issue.assignToCodingAgent.title%", - "category": "%command.issues.category%", - "icon": "$(send-to-remote-agent)", - "enablement": "config.githubPullRequests.codingAgent.enabled" - }, { "command": "issues.configureIssuesViewlet", "title": "%command.issues.configureIssuesViewlet.title%", @@ -2495,10 +2488,6 @@ "command": "issue.openIssue", "when": "false" }, - { - "command": "issue.assignToCodingAgent", - "when": "false" - }, { "command": "issue.copyIssueNumber", "when": "false" @@ -3076,11 +3065,6 @@ "when": "view == issues:github && viewItem =~ /^(link)?(current|continue)?issue/ && github.copilot-chat.activated && config.githubPullRequests.experimental.chat && !config.chat.disableAIFeatures", "group": "issues_1@1" }, - { - "command": "issue.assignToCodingAgent", - "when": "view == issues:github && viewItem =~ /^(link)?(current|continue)?issue/ && config.githubPullRequests.codingAgent.enabled && !config.chat.disableAIFeatures", - "group": "issues_1@2" - }, { "command": "issue.copyIssueNumber", "when": "view == issues:github && viewItem =~ /^(link)?(current|continue)?issue/", diff --git a/package.nls.json b/package.nls.json index 2361712a3d..1c8fcdf567 100644 --- a/package.nls.json +++ b/package.nls.json @@ -342,7 +342,6 @@ "command.issues.configureIssuesViewlet.title": "Configure...", "command.issue.chatSummarizeIssue.title": "Summarize With Copilot", "command.issue.chatSuggestFix.title": "Suggest a Fix with Copilot", - "command.issue.assignToCodingAgent.title": "Assign to Coding Agent", "command.notifications.category": "GitHub Notifications", "command.notifications.refresh.title": "Refresh", "command.notifications.pri.title": "Prioritize", diff --git a/src/issues/issueFeatureRegistrar.ts b/src/issues/issueFeatureRegistrar.ts index c0edf0e1e7..44f458b78e 100644 --- a/src/issues/issueFeatureRegistrar.ts +++ b/src/issues/issueFeatureRegistrar.ts @@ -141,19 +141,6 @@ export class IssueFeatureRegistrar extends Disposable { this, ), ); - this._register( - vscode.commands.registerCommand( - 'issue.assignToCodingAgent', - (issueModel: any) => { - /* __GDPR__ - "issue.assignToCodingAgent" : {} - */ - this.telemetry.sendTelemetryEvent('issue.assignToCodingAgent'); - return this.assignToCodingAgent(issueModel); - }, - this, - ), - ); this._register( vscode.commands.registerCommand( 'issue.copyGithubPermalink', @@ -1673,38 +1660,4 @@ ${options?.body ?? ''}\n return undefined; } - async assignToCodingAgent(issueModel: any) { - if (!issueModel) { - return; - } - - // Check if the issue model is an IssueModel - if (!(issueModel instanceof IssueModel)) { - return; - } - - try { - // Get the folder manager for this issue - const folderManager = this.manager.getManagerForIssueModel(issueModel); - if (!folderManager) { - vscode.window.showErrorMessage(vscode.l10n.t('Failed to find repository for issue #{0}', issueModel.number)); - return; - } - - // Get assignable users and find the copilot user - const assignableUsers = await folderManager.getAssignableUsers(); - const copilotUser = assignableUsers[issueModel.remote.remoteName]?.find(user => COPILOT_ACCOUNTS[user.login]); - - if (!copilotUser) { - vscode.window.showErrorMessage(vscode.l10n.t('Copilot coding agent is not available for assignment in this repository')); - return; - } - - // Assign the issue to the copilot user - await issueModel.replaceAssignees([...(issueModel.assignees ?? []), copilotUser]); - vscode.window.showInformationMessage(vscode.l10n.t('Issue #{0} has been assigned to Copilot coding agent', issueModel.number)); - } catch (error) { - vscode.window.showErrorMessage(vscode.l10n.t('Failed to assign issue to coding agent: {0}', error.message)); - } - } }