Skip to content

Commit d6b06bb

Browse files
committed
fix(workflow): handle delegated status for timer resume
Add delegated status check to resume timer when workflow status changes to running or delegated
1 parent 10bad8b commit d6b06bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cli/tui/routes/workflow/adapters/opentui.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export class OpenTUIAdapter extends BaseUIAdapter {
126126
timerService.stop()
127127
} else if (event.status === "paused") {
128128
timerService.pause("user")
129-
} else if (event.status === "running" && timerService.isPaused()) {
129+
} else if ((event.status === "running" || event.status === "delegated") && timerService.isPaused()) {
130130
timerService.resume()
131131
}
132132
this.actions.setWorkflowStatus(event.status)

0 commit comments

Comments
 (0)