viberadar 0.3.150 → 0.3.151
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui/dashboard.html +2 -2
- package/package.json +1 -1
package/dist/ui/dashboard.html
CHANGED
|
@@ -6693,10 +6693,10 @@ function connectSSE() {
|
|
|
6693
6693
|
const startedPaths = getTaskFilePaths(task, featureKey, filePath, selectedFilePaths);
|
|
6694
6694
|
startedPaths.forEach(p => { agentQueuedPaths.delete(p); agentRunningPaths.add(p); });
|
|
6695
6695
|
renderContent();
|
|
6696
|
-
// Close
|
|
6696
|
+
// Close PREVIOUS session only if it belongs to a different run (queue case: agent-done not fired between tasks)
|
|
6697
6697
|
if (runningSessionId) {
|
|
6698
6698
|
const prev = consoleSessions.find(s => s.id === runningSessionId);
|
|
6699
|
-
if (prev && prev.status === 'running') updateSessionStatus(runningSessionId, 'ok');
|
|
6699
|
+
if (prev && prev.status === 'running' && prev.runId !== runId) updateSessionStatus(runningSessionId, 'ok');
|
|
6700
6700
|
}
|
|
6701
6701
|
const id = runId ? ensureSessionForRun({ runId, title, phase: 'running' }, true) : createSession(title);
|
|
6702
6702
|
runningSessionId = id;
|