simoncck commited on
Commit
fb36c37
·
verified ·
1 Parent(s): 1f5c188

Update browser_automation_ui.html

Browse files
Files changed (1) hide show
  1. browser_automation_ui.html +7 -4
browser_automation_ui.html CHANGED
@@ -378,12 +378,15 @@
378
  sessionId = data.session_id;
379
  currentSessionId = data.session_id;
380
 
381
- // Update any status label if you have one
382
- const statusEl = document.getElementById("statusBar");
383
- if (statusEl) statusEl.textContent = `Active session: ${sessionId}`;
 
 
 
384
 
385
  // Refresh list and auto‑highlight
386
- await refreshSessions();
387
  } catch (err) {
388
  alert(err.message || err);
389
  }
 
378
  sessionId = data.session_id;
379
  currentSessionId = data.session_id;
380
 
381
+ if (sessionId) {
382
+ sessions.push(resp.session_id);
383
+ renderSessionList();
384
+ showToast(`Launched browser: ${resp.session_id.substring(0, 8)}…`, 'success');
385
+ await refreshSessions();
386
+ }
387
 
388
  // Refresh list and auto‑highlight
389
+ //await refreshSessions();
390
  } catch (err) {
391
  alert(err.message || err);
392
  }