← Back to Kontasks
Navbar StatusLine Metrics Added
Added token/cost/cache metrics panel to navbar alongside git panel
Output
✅ StatusLine Metrics Panel Added to Navbar
New Navbar Metrics
Three new pills display live StatusLine data:
$0.05
45K
72%
- Cost — Session cost in USD (gold)
- Tokens — Total tokens (K/M format, green)
- Cache % — Cache efficiency (color-coded: green ≥50%, yellow ≥20%, gray <20%)
Files Changed
konui/src/views/layout.ts # HTML panel + JS fetch logic konui/src/views/styles.ts # CSS for statusline panel
Features
- Auto-updates — Fetches from
/api/statusline/statsevery 5s - Rich tooltips — Hover for detailed breakdown (tokens in/out, cache count)
- Responsive — Hidden on screens <480px wide
- Color-coded cache — Green (≥50%), yellow (20-49%), gray (<20%)
⚠️ Note: Requires konui restart
The changes are in TypeScript. Run kon-restart-konui to see the new navbar panel.
Quick Actions
Original Request
No layout configured
Details
Type
General
Status
Completed
Scope
vibetools
Tags
navbartelemetryui
Created
5 Jan 2026, 12:36 am
Updated
5 Jan 2026, 12:37 am
Timing
⏱️ 158.7s
16 tools
● TTFE 3%
● Thinking 91%
● Tools 6%
Created By
claude
Raw Data
{
"id": "f27c1094-c29e-45bb-8c05-d3f286de26b5",
"type": "general",
"status": "completed",
"title": "Navbar StatusLine Metrics Added",
"description": "Added token/cost/cache metrics panel to navbar alongside git panel",
"context": {
"output": "<div style=\"background:#1e1e1e;color:#e0e0e0;padding:20px;border-radius:8px;font-family:'Segoe UI',sans-serif;\">\n<h2 style=\"color:#22c55e;margin:0 0 16px 0;\">✅ StatusLine Metrics Panel Added to Navbar</h2>\n\n<div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\">\n<h3 style=\"color:#fff;margin:0 0 12px 0;\">New Navbar Metrics</h3>\n<p style=\"color:#9ca3af;margin:0 0 12px 0;\">Three new pills display live StatusLine data:</p>\n<div style=\"display:flex;gap:8px;flex-wrap:wrap;\">\n<span style=\"background:rgba(212,175,55,0.2);color:#d4af37;padding:4px 10px;border-radius:4px;font-family:monospace;font-size:0.85rem;font-weight:600;\">$0.05</span>\n<span style=\"background:rgba(34,197,94,0.2);color:#22c55e;padding:4px 10px;border-radius:4px;font-family:monospace;font-size:0.85rem;font-weight:600;\">45K</span>\n<span style=\"background:rgba(34,197,94,0.2);color:#22c55e;padding:4px 10px;border-radius:4px;font-family:monospace;font-size:0.85rem;font-weight:600;\">72%</span>\n</div>\n<ul style=\"margin:12px 0 0 0;padding-left:20px;color:#9ca3af;line-height:1.8;\">\n<li><strong style=\"color:#d4af37;\">Cost</strong> — Session cost in USD (gold)</li>\n<li><strong style=\"color:#22c55e;\">Tokens</strong> — Total tokens (K/M format, green)</li>\n<li><strong style=\"color:#22c55e;\">Cache %</strong> — Cache efficiency (color-coded: green ≥50%, yellow ≥20%, gray <20%)</li>\n</ul>\n</div>\n\n<div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\">\n<h3 style=\"color:#61afef;margin:0 0 12px 0;\">Files Changed</h3>\n<pre style=\"background:#1a1a2e;padding:12px;border-radius:4px;font-size:0.85rem;line-height:1.6;overflow-x:auto;\">\n<span style=\"color:#e5c07b;\">konui/src/views/layout.ts</span> <span style=\"color:#7f848e;\"># HTML panel + JS fetch logic</span>\n<span style=\"color:#e5c07b;\">konui/src/views/styles.ts</span> <span style=\"color:#7f848e;\"># CSS for statusline panel</span>\n</pre>\n</div>\n\n<div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\">\n<h3 style=\"color:#a78bfa;margin:0 0 12px 0;\">Features</h3>\n<ul style=\"margin:0;padding-left:20px;color:#9ca3af;line-height:1.8;\">\n<li><strong style=\"color:#fff;\">Auto-updates</strong> — Fetches from <code style=\"background:#1a1a2e;padding:2px 6px;border-radius:3px;\">/api/statusline/stats</code> every 5s</li>\n<li><strong style=\"color:#fff;\">Rich tooltips</strong> — Hover for detailed breakdown (tokens in/out, cache count)</li>\n<li><strong style=\"color:#fff;\">Responsive</strong> — Hidden on screens <480px wide</li>\n<li><strong style=\"color:#fff;\">Color-coded cache</strong> — Green (≥50%), yellow (20-49%), gray (<20%)</li>\n</ul>\n</div>\n\n<div style=\"background:#1a3a2e;padding:16px;border-radius:6px;border:1px solid rgba(34,197,94,0.3);\">\n<h4 style=\"color:#22c55e;margin:0 0 8px 0;\">⚠️ Note: Requires konui restart</h4>\n<p style=\"color:#9ca3af;margin:0;\">The changes are in TypeScript. Run <code style=\"background:#2d2d2d;padding:2px 6px;border-radius:3px;\">kon-restart-konui</code> to see the new navbar panel.</p>\n</div>\n</div>",
"requestedAt": "2026-01-05T00:00:00.000Z",
"requestId": "70e7f635-e7ef-4194-9375-0aac07c18588",
"choices": [
{
"label": "Restart konui",
"value": "Please restart konui so I can see the new navbar metrics panel",
"primary": true
},
{
"label": "View telemetry page",
"value": "Show me the telemetry page to see current stats"
},
{
"label": "Commit changes",
"value": "Commit the navbar metrics changes to git"
}
],
"turnTiming": {
"totalMs": 158724,
"ttfeMs": 4294,
"thinkingMs": 144359,
"toolExecutionMs": 10070,
"toolCallCount": 16,
"thinkingPct": 91,
"toolsPct": 6,
"ttfePct": 3
}
},
"createdBy": "claude",
"createdAt": "2026-01-04T14:36:57.814Z",
"updatedAt": "2026-01-04T14:37:05.271Z",
"requestId": "70e7f635-e7ef-4194-9375-0aac07c18588",
"scope": "vibetools",
"tags": [
"navbar",
"telemetry",
"ui"
],
"targetUser": "claude"
}