viberadar 0.3.40 → 0.3.41

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.
@@ -2186,6 +2186,11 @@ function connectSSE() {
2186
2186
  setAgentRunning(true);
2187
2187
  const { title, queueLength = 0 } = JSON.parse(e.data);
2188
2188
  updateQueueBadge(queueLength);
2189
+ // Close previous session (queue case: agent-done not fired between tasks)
2190
+ if (runningSessionId) {
2191
+ const prev = consoleSessions.find(s => s.id === runningSessionId);
2192
+ if (prev && prev.status === 'running') updateSessionStatus(runningSessionId, 'ok');
2193
+ }
2189
2194
  const id = createSession(title);
2190
2195
  runningSessionId = id;
2191
2196
  document.getElementById('agentPanelTitle').textContent = '🤖 ' + title;
@@ -2236,7 +2241,13 @@ function connectSSE() {
2236
2241
  ${files.map(f => `<div style="font-size:11px;color:var(--dim);margin-top:3px">📄 ${f}</div>`).join('')}
2237
2242
  `;
2238
2243
  const targetId = runningSessionId || activeSessionId;
2239
- if (targetId) appendToSession(targetId, box);
2244
+ if (targetId) {
2245
+ appendToSession(targetId, box);
2246
+ // Mark session status from test results immediately
2247
+ if (runningSessionId === targetId) {
2248
+ updateSessionStatus(targetId, failed > 0 ? 'error' : 'ok');
2249
+ }
2250
+ }
2240
2251
  });
2241
2252
 
2242
2253
  es.addEventListener('agent-error', (e) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viberadar",
3
- "version": "0.3.40",
3
+ "version": "0.3.41",
4
4
  "description": "Live module map with test coverage for vibecoding projects",
5
5
  "main": "./dist/cli.js",
6
6
  "bin": {