Skip to content

Commit 74a0b45

Browse files
Copilotjoshspicer
andcommitted
Simplify active PR detection logic to use truthy check
Co-authored-by: joshspicer <23246594+joshspicer@users.noreply.github.com>
1 parent 4dd8398 commit 74a0b45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/github/copilotRemoteAgent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ export class CopilotRemoteAgentManager extends Disposable {
284284
// Check if the currently active PR is a coding agent PR
285285
if (!followUpPR) {
286286
const activePR = repoInfo.fm.activePullRequest;
287-
if (activePR && this._stateModel.get(owner, repo, activePR.number) !== CopilotPRStatus.None) {
287+
if (activePR && this._stateModel.get(owner, repo, activePR.number)) {
288288
followUpPR = activePR.number;
289289
}
290290
}

0 commit comments

Comments
 (0)