fix: show stop state for active instant run button (#8917)

Switch the Run (Instant) actionbar button into a stop-state while
instant auto-queue is actively running, so users can explicitly stop
that mode from the same control.

Figma context:
https://www.figma.com/design/LVilZgHGk5RwWOkVN6yCEK/Queue-Progress-Modal?node-id=3381-6181&m=dev

## Screenshots (if applicable)



https://github.com/user-attachments/assets/a4aca6ab-eb0c-41a2-9f05-3af7ecf2bedd
This commit is contained in:
Benjamin Lu
2026-02-20 01:59:15 -08:00
committed by GitHub
parent 7feaefd39c
commit 541ad387b9
5 changed files with 263 additions and 11 deletions

View File

@@ -1,6 +1,7 @@
import { api } from '@/scripts/api'
import { app } from '@/scripts/app'
import {
isInstantRunningMode,
useQueuePendingTaskCountStore,
useQueueSettingsStore
} from '@/stores/queueStore'
@@ -29,7 +30,7 @@ export function setupAutoQueueHandler() {
internalCount = queueCountStore.count
if (!internalCount && !app.lastExecutionError) {
if (
queueSettingsStore.mode === 'instant' ||
isInstantRunningMode(queueSettingsStore.mode) ||
(queueSettingsStore.mode === 'change' && graphHasChanged)
) {
graphHasChanged = false