From 086cefc2d494333dca209a160b4ea151c3f39cff Mon Sep 17 00:00:00 2001 From: Osvaldo Ortega Date: Thu, 28 Aug 2025 15:52:55 -0700 Subject: [PATCH] Swap inline chat action --- package.json | 2 +- src/commands.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 0a1df40bb5..ec70ffb930 100644 --- a/package.json +++ b/package.json @@ -3433,7 +3433,7 @@ ], "chat/chatSessions": [ { - "command": "pr.openDescription", + "command": "pr.openChanges", "when": "chatSessionType == copilot-swe-agent", "group": "inline" }, diff --git a/src/commands.ts b/src/commands.ts index 3fe9f98c59..a9de2ad237 100644 --- a/src/commands.ts +++ b/src/commands.ts @@ -770,7 +770,7 @@ export function registerCommands( })); context.subscriptions.push( - vscode.commands.registerCommand('pr.openChanges', async (pr: PRNode | RepositoryChangesNode | PullRequestModel | OverviewContext | undefined) => { + vscode.commands.registerCommand('pr.openChanges', async (pr: PRNode | RepositoryChangesNode | PullRequestModel | OverviewContext | ChatSessionWithPR | undefined) => { if (pr === undefined) { // This is unexpected, but has happened a few times. Logger.error('Unexpectedly received undefined when picking a PR.', logId); @@ -783,6 +783,8 @@ export function registerCommands( pullRequestModel = pr.pullRequestModel; } else if (pr instanceof PullRequestModel) { pullRequestModel = pr; + } else if (isChatSessionWithPR(pr)) { + pullRequestModel = pr.pullRequest; } else { const resolved = await resolvePr(pr as OverviewContext); pullRequestModel = resolved?.pr;