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(tabbar): give both tab actions one recipe, and say who the toggle is for

Bas Miliusa0b2040433c5
diff --git a/src/renderer/components/TabBar.tsx b/src/renderer/components/TabBar.tsx
index 82560a7c5..81a85e38a 100644
--- a/src/renderer/components/TabBar.tsx
+++ b/src/renderer/components/TabBar.tsx
@@ -369,6 +369,8 @@ export function TabBar({
)}
{active && editingId !== p.id && (
+ // On the ACTIVE tab only: the toggle says which view you are looking at, and
+ // on an inactive tab it would flip a project's view without taking you there.
// The title was a hardcoded `(⌘⇧B)` — mac glyphs shown to Linux/Windows users
// (a pre-existing bug: it was never even hintLabel-wrapped), and stale after a
// remap. `commandTooltip` fixes both and drops the chord entirely when the
@@ -379,6 +381,7 @@ export function TabBar({
kanbanActive ? 'Canvas view' : 'Kanban view',
'view.kanbanToggle'
)}
+ aria-label={kanbanActive ? 'Canvas view' : 'Kanban view'}
onClick={(e) => {
e.stopPropagation() // a tab click switches projects, this only flips the view
const vm = useViewMode.getState()
diff --git a/src/renderer/styles.css b/src/renderer/styles.css
index 474889d2a..f2ae7b1c6 100644
--- a/src/renderer/styles.css
+++ b/src/renderer/styles.css
@@ -309,7 +309,9 @@ body,
display: flex;
align-items: center;
gap: 7px;
- padding: 0 14px;
+ /* Asymmetric on purpose: the right edge ends in the options button, whose three dots are a far
+ narrower glyph than the name on the left, so an equal padding reads as a gap there. */
+ padding: 0 10px 0 14px;
color: var(--muted);
font-size: 13px;
/* One weight for every tab: a heavier active tab shifts the whole strip's metrics as you switch,
@@ -444,6 +446,7 @@ body,
outline: none;
}
+.tab__board-toggle,
.tab__caret {
display: inline-flex;
align-items: center;
@@ -461,12 +464,14 @@ body,
transition: background 0.12s ease, opacity 0.12s ease;
}
+.tab:hover .tab__board-toggle,
.tab:hover .tab__caret {
opacity: 0.7;
}
/* Same answer a node's header buttons give (`.term-node__refresh` and friends): a tinted plate
under the glyph, not just a brighter glyph. */
+.tab__board-toggle:hover,
.tab__caret:hover {
background: rgba(var(--tint-rgb), 0.1);
color: var(--text);
@@ -1878,6 +1883,7 @@ body,
/* Icon sizing for the boxes that are smaller than the shared 16px glyph. The icon set is one
family on one viewBox (see icons.tsx); where a button is tight, the BUTTON scales it down
rather than the icon carrying a second size of its own. */
+.tab__board-toggle svg,
.tab__caret svg,
.sessmem-row__kill svg,
.welcome__recent-del svg {