提交更新

This commit is contained in:
super
2026-06-08 18:31:55 +08:00
parent 98e0e54309
commit 967eedcad7
7 changed files with 394 additions and 98 deletions

View File

@@ -1498,12 +1498,26 @@ async function refreshTaskBatch() {
saveTaskDetailsToStorage()
await loadHistory()
syncPollingIdsWithHistory()
if (changed) await loadDashboard()
if (changed) {
await loadDashboard()
void resumeLoopExecutionIfNeeded()
}
} catch {
/* polling noise */
}
}
async function resumeLoopExecutionIfNeeded() {
if (disposed || loopDispatching.value || !activeLoopRunId.value) return
try {
const loop = await syncActiveLoopRun()
if (!loop || loop.status === 'SUCCESS' || loop.status === 'FAILED' || loop.status === 'STOPPED') return
await runLoopExecution(loop.id)
} catch {
/* loop recovery noise */
}
}
function scheduleNextPoll(immediate = false) {
if (disposed) return
if (pollTimer.value) {