From 10e60b786f1ae6fb9bfd8fc69098ac281e42aedf Mon Sep 17 00:00:00 2001 From: Ramin Tadayon Date: Wed, 11 Dec 2024 10:02:09 -0700 Subject: [PATCH] Fixes Start Work flow not terminating after creating a branch --- src/plus/startWork/startWork.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plus/startWork/startWork.ts b/src/plus/startWork/startWork.ts index dac902ac06c34..6b817154893bc 100644 --- a/src/plus/startWork/startWork.ts +++ b/src/plus/startWork/startWork.ts @@ -229,10 +229,12 @@ export class StartWorkCommand extends QuickCommand { }, this.pickedVia, ); - if (result === StepResultBreak) { + if (result !== StepResultBreak) { state.counter = 0; continue; } + + endSteps(state); } return state.counter < 0 ? StepResultBreak : undefined;