From c6333f2acdffadcafc90b93fc6d1aea88300fa53 Mon Sep 17 00:00:00 2001 From: kim Date: Wed, 21 Oct 2026 10:56:13 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BB=A8=ED=85=8D=EC=8A=A4=ED=8A=B8=20?= =?UTF-8?q?=EA=B2=8C=EC=9D=B4=EC=A7=80=20=EC=8B=A0=ED=98=B8=EB=93=B1=20?= =?UTF-8?q?=EC=83=89:=2050%=20=EB=AF=B8=EB=A7=8C=20=EC=B4=88=EB=A1=9D?= =?UTF-8?q?=C2=B750~80%=20=EB=85=B8=EB=9E=91=C2=B780%=20=EC=9D=B4=EC=83=81?= =?UTF-8?q?=20=EB=B9=A8=EA=B0=95(=EC=82=AC=EC=9D=B4=EB=93=9C=EB=B0=94=20?= =?UTF-8?q?=EC=88=AB=EC=9E=90=20=EC=95=9E=20=EB=9E=A8=ED=94=84,=20?= =?UTF-8?q?=EC=BB=A8=ED=85=8D=EC=8A=A4=ED=8A=B8=20=EB=B7=B0=EC=96=B4=20?= =?UTF-8?q?=EB=A7=89=EB=8C=80=20=EA=B8=B0=EC=A4=80=20=ED=86=B5=EC=9D=BC)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 5.5 --- web-ui/js/app/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web-ui/js/app/app.js b/web-ui/js/app/app.js index 3d41417..45cfb8c 100644 --- a/web-ui/js/app/app.js +++ b/web-ui/js/app/app.js @@ -659,14 +659,14 @@ async function loadContextViewerTab() { if (warnEl && warnSessions.length > 0) { warnEl.style.display = 'block'; warnEl.innerHTML = '⚠️ 토큰 경고: ' + warnSessions.map(s => { - const color = s.usagePct >= 90 ? '#dc2626' : '#d97706'; + const color = s.usagePct >= 80 ? '#dc2626' : '#d97706'; return `${s.username} (${s.id.slice(0,8)}…) ${s.usagePct}%`; }).join('  |  '); } listEl.innerHTML = sessions.map(s => { const pct = s.usagePct; - const barColor = pct >= 90 ? 'var(--err)' : pct >= 70 ? 'var(--warn)' : 'var(--ok)'; + const barColor = pct >= 80 ? 'var(--err)' : pct >= 50 ? 'var(--warn)' : 'var(--ok)'; const lastActive = s.lastActiveAt ? new Date(s.lastActiveAt).toLocaleString() : '-'; const onlineDot = s.online ? '' @@ -943,7 +943,7 @@ function renderSessionsList() {
${s.automated ? 'Auto' : ''} ${(s.history || []).length} msgs - ${(() => { const fmtTok = n => n>=1e6?`${(n/1e6).toFixed(1)}M`:n>=1000?`${Math.round(n/1000)}k`:`${n}`; const real = Number(s.contextTokens||0); const ct = real || (Number(s.toolOverheadTokens||0) + Math.round((s.history||[]).reduce((a,m)=>a+(m.content||'').length,0)/4)); const mx = _appCtxMax; if (!ct) return ''; if (mx > 0) { const pct = Math.min(100, Math.round(ct/mx*100)); const col = pct>=80?'var(--err)':pct>=50?'var(--warn)':'var(--muted)'; return `${real?'':'~'}${fmtTok(ct)}/${fmtTok(mx)}`; } return `${real?'':'~'}${fmtTok(ct)} tok`; })()} + ${(() => { const fmtTok = n => n>=1e6?`${(n/1e6).toFixed(1)}M`:n>=1000?`${Math.round(n/1000)}k`:`${n}`; const real = Number(s.contextTokens||0); const ct = real || (Number(s.toolOverheadTokens||0) + Math.round((s.history||[]).reduce((a,m)=>a+(m.content||'').length,0)/4)); const mx = _appCtxMax; if (!ct) return ''; if (mx > 0) { const pct = Math.min(100, Math.round(ct/mx*100)); const col = pct>=80?'var(--err)':pct>=50?'var(--warn)':'var(--ok)'; const lamp = pct>=80?'🔴':pct>=50?'🟡':'🟢'; return `${lamp} ${real?'':'~'}${fmtTok(ct)}/${fmtTok(mx)}`; } return `${real?'':'~'}${fmtTok(ct)} tok`; })()} ${timeAgo(s.updatedAt || s.createdAt)}