Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

feat(claude): unread count badge on project tabs + clearer terminal unread dot

enes8977ff8c1ea2
diff --git a/src/renderer/components/TabBar.tsx b/src/renderer/components/TabBar.tsx
index e89701c95..14b6f6740 100644
--- a/src/renderer/components/TabBar.tsx
+++ b/src/renderer/components/TabBar.tsx
@@ -102,11 +102,11 @@ export function TabBar({
<div className="tabbar__tabs">
{projects.map((p) => {
const active = p.id === activeId
- const hasUnread = !active && p.nodes.some((n) => statusById[n.id]?.unread)
+ const unreadCount = p.nodes.filter((n) => statusById[n.id]?.unread).length
return (
<div
key={p.id}
- className={`tab${active ? ' active' : ''}${hasUnread ? ' has-unread' : ''}`}
+ className={`tab${active ? ' active' : ''}`}
style={active ? { color: p.color } : undefined}
onClick={() => !editingId && onSwitch(p.id)}
title={p.cwd || undefined}
@@ -133,6 +133,12 @@ export function TabBar({
<span className="tab__name">{p.name}</span>
)}
+ {unreadCount > 0 && (
+ <span className="tab__badge" title={`${unreadCount} unread`}>
+ {unreadCount}
+ </span>
+ )}
+
{active && editingId !== p.id && (
<button
className="tab__caret"
diff --git a/src/renderer/styles.css b/src/renderer/styles.css
index 062734730..349c43c35 100644
--- a/src/renderer/styles.css
+++ b/src/renderer/styles.css
@@ -135,10 +135,22 @@ body,
background: rgba(255, 255, 255, 0.3);
}
-/* A background project with an unread Claude completion. */
-.tab.has-unread .tab__dot {
+/* Unread-completion count badge on a project tab. */
+.tab__badge {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ min-width: 17px;
+ height: 17px;
+ padding: 0 5px;
+ margin-left: 2px;
+ border-radius: 9px;
background: var(--accent);
- box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.25);
+ color: #fff;
+ font-size: 10.5px;
+ font-weight: 700;
+ font-variant-numeric: tabular-nums;
+ line-height: 1;
}
.tab__name {
@@ -510,11 +522,11 @@ body,
.term-node__status--unread {
margin-left: 8px;
- width: 8px;
- height: 8px;
+ width: 10px;
+ height: 10px;
border-radius: 50%;
background: var(--accent);
- box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.22);
+ box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.3);
}
@keyframes nt-pulse {