Remove scan queue and enable parallel plugin scans

Remove the scan queue mechanism that serialized plugin scans. Each scan now runs in its own temporary chat context immediately upon request, allowing multiple scans to execute in parallel. Update UI to reflect that scans are no longer queued and remove the "queued" state tracking from store and API.
This commit is contained in:
frdel 2026-03-28 18:52:17 +01:00
parent 4cbb320587
commit 1eb78607c9
4 changed files with 16 additions and 54 deletions

View file

@ -40,11 +40,9 @@
<!-- Actions -->
<div class="scan-actions">
<button class="button" @click="$store.pluginScan.copyPrompt()">Copy Prompt</button>
<button class="button confirm" @click="$store.pluginScan.runScan()"
:disabled="$store.pluginScan.scanning || $store.pluginScan.queued">
<span x-show="$store.pluginScan.queued"><span class="scan-spinner"></span>Queued…</span>
<span x-show="$store.pluginScan.scanning && !$store.pluginScan.queued"><span class="scan-spinner"></span>Scanning…</span>
<span x-show="!$store.pluginScan.scanning && !$store.pluginScan.queued">Run Scan</span>
<button class="button confirm" @click="$store.pluginScan.runScan()">
<span x-show="$store.pluginScan.scanning"><span class="scan-spinner"></span>Run Another Scan</span>
<span x-show="!$store.pluginScan.scanning">Run Scan</span>
</button>
<button class="button" @click="$store.pluginScan.openChatInNewWindow()"
x-show="$store.pluginScan.scanCtxId"