Markdown-wrapper strippaus LLM-vastauksista + hub-status tooltip
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1090,7 +1090,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="agent-hub-status" style="margin-top:20px;padding:8px 14px;background:#0d1117;border:1px solid var(--border-color);border-radius:6px 6px 0 0;font-family:'Courier New',monospace;font-size:13px;display:flex;align-items:center;gap:8px">
|
||||
<div id="agent-hub-status" title="WebSocket-yhteys Kipinä Hubiin — hallitsee tehtävien jakelun ja solmujen koordinoinnin" style="margin-top:20px;padding:8px 14px;background:#0d1117;border:1px solid var(--border-color);border-radius:6px 6px 0 0;font-family:'Courier New',monospace;font-size:13px;display:flex;align-items:center;gap:8px;cursor:help">
|
||||
<span id="agent-hub-dot" style="width:8px;height:8px;border-radius:50%;background:#d29922;display:inline-block"></span>
|
||||
<span style="color:#8b949e">Hub:</span>
|
||||
<span id="agent-hub-label" style="color:#d29922">Yhdistetään...</span>
|
||||
@@ -1640,8 +1640,10 @@
|
||||
// Päivitetään agents-näkymän hub-status
|
||||
const hubDot = document.getElementById('agent-hub-dot');
|
||||
const hubLabel = document.getElementById('agent-hub-label');
|
||||
const hubStatus = document.getElementById('agent-hub-status');
|
||||
if (hubDot) hubDot.style.background = '#3fb950';
|
||||
if (hubLabel) { hubLabel.textContent = 'Yhdistetty'; hubLabel.style.color = '#3fb950'; }
|
||||
if (hubStatus) hubStatus.title = 'Yhdistetty Kipinä Hubiin — tehtävien jakelu ja solmujen koordinointi aktiivinen';
|
||||
|
||||
// Päivitetään molemmat statukset
|
||||
const el = document.getElementById('node-status');
|
||||
@@ -1692,8 +1694,10 @@
|
||||
uiSocket.onclose = () => {
|
||||
const hubDot = document.getElementById('agent-hub-dot');
|
||||
const hubLabel = document.getElementById('agent-hub-label');
|
||||
const hubStatus2 = document.getElementById('agent-hub-status');
|
||||
if (hubDot) hubDot.style.background = '#f85149';
|
||||
if (hubLabel) { hubLabel.textContent = 'Yhteys katkennut'; hubLabel.style.color = '#f85149'; }
|
||||
if (hubStatus2) hubStatus2.title = 'WebSocket-yhteys hubiin katkesi — tarkista verkkoyhteytesi tai hubin tila. Lataa sivu uudelleen yhdistääksesi.';
|
||||
|
||||
const el = document.getElementById('node-status');
|
||||
el.textContent = 'Disconnected';
|
||||
|
||||
Reference in New Issue
Block a user