File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 66import vscode from 'vscode' ;
77import { Repository } from '../api/api' ;
88import { AuthProvider } from '../common/authentication' ;
9- import { COPILOT_LOGINS } from '../common/copilot' ;
9+ import { COPILOT_LOGINS , CopilotPRStatus } from '../common/copilot' ;
1010import { commands } from '../common/executeCommands' ;
1111import { Disposable } from '../common/lifecycle' ;
1212import Logger from '../common/logger' ;
@@ -280,6 +280,15 @@ export class CopilotRemoteAgentManager extends Disposable {
280280 // Group 2 is this, url-encoded:
281281 // {"owner":"monalisa","repo":"app","pullRequestNumber":18}
282282 let followUpPR : number | undefined = this . parseFollowup ( followup , repoInfo ) ;
283+
284+ // Check if the currently active PR is a coding agent PR
285+ if ( ! followUpPR ) {
286+ const activePR = repoInfo . fm . activePullRequest ;
287+ if ( activePR && this . _stateModel . get ( owner , repo , activePR . number ) !== CopilotPRStatus . None ) {
288+ followUpPR = activePR . number ;
289+ }
290+ }
291+
283292 if ( followUpPR ) {
284293 return this . addFollowUpToExistingPR ( followUpPR , userPrompt , summary ) ;
285294 }
You can’t perform that action at this time.
0 commit comments