Skip to content

Commit 812e7b6

Browse files
committed
fix(mobile): show Stop for pending background work
1 parent 19f2b5b commit 812e7b6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎apps/mobile/src/features/threads/ThreadRouteScreen.tsx‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,11 @@ function ThreadRouteContent(
10521052
threadSyncStatus={selectedThreadDetailState.status}
10531053
historyControls={historyControls}
10541054
activeThreadBusy={composer.activeThreadBusy}
1055-
canStopThread={awaitingBootstrapTurn || composer.interruptibleRunId !== null}
1055+
canStopThread={
1056+
awaitingBootstrapTurn ||
1057+
composer.interruptibleRunId !== null ||
1058+
selectedThread.pendingBackgroundTasks.length > 0
1059+
}
10561060
queuedRunEdit={composer.queuedRunEdit}
10571061
composerDraftKey={composer.composerDraftKey}
10581062
followUpBehavior={composer.followUpBehavior}

0 commit comments

Comments
 (0)