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.

fix(presence): move the facepile beside the top-right toolbar, not under the chrome

enes1682fc8bab10
diff --git a/src/renderer/canvas/Canvas.tsx b/src/renderer/canvas/Canvas.tsx
index a7e7b154e..fbf41c51a 100644
--- a/src/renderer/canvas/Canvas.tsx
+++ b/src/renderer/canvas/Canvas.tsx
@@ -5526,6 +5526,12 @@ export function Canvas() {
</div>
<div className="controls-cluster">
+ {/* First in the cluster so the "who's connected" faces sit to the LEFT of the toolbar on the
+ SAME row (flex, no hardcoded width) instead of colliding with it / hiding under the tab
+ bar. Mounted here unconditionally (the cluster always renders): the facepile is null with
+ no peers — taking no space — but must stay mounted to prune the presence face cache
+ (state/presence.ts → selectFaces). */}
+ <Facepile onJump={travelToNode} onSwitchProject={travelToProject} />
<button
className="cluster-search"
title="Command palette"
@@ -5651,10 +5657,6 @@ export function Canvas() {
</ReactFlow>
</SessionProvider>
- {/* Mounted unconditionally, even when we are alone: the facepile renders null with no peers,
- but it is also what prunes the presence store's face cache — gating its mount on a peer
- count would leak departed peers' faces forever (state/presence.ts → selectFaces). */}
- <Facepile onJump={travelToNode} onSwitchProject={travelToProject} />
<PresenceNamePrompt />
{(!hasProjects || welcomeOpen) && (
diff --git a/src/renderer/styles.css b/src/renderer/styles.css
index 7e9544bff..aff90da1b 100644
--- a/src/renderer/styles.css
+++ b/src/renderer/styles.css
@@ -1972,6 +1972,7 @@ body,
right: 14px;
z-index: 11;
display: flex;
+ align-items: center; /* center the presence facepile (26px) against the 34px toolbar buttons */
gap: 6px;
}
@@ -2267,7 +2268,9 @@ body,
background: rgba(255, 159, 10, 0.18);
}
-.controls-cluster button {
+/* Direct children only — the presence facepile's face buttons are nested inside .presence-facepile
+ and must keep their own round, peer-colored styling, not the toolbar button chrome. */
+.controls-cluster > button {
width: 34px;
height: 34px;
display: inline-flex;
@@ -2282,7 +2285,7 @@ body,
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
-.controls-cluster button:hover {
+.controls-cluster > button:hover {
background: var(--panel-header);
}
@@ -5484,13 +5487,13 @@ body,
}
/* ---- facepile: who is connected (the one surface that shows off-project peers) ---- */
+/* Lives INSIDE .controls-cluster (see Canvas.tsx) as its first flex item, so the faces sit to the
+ LEFT of the top-right toolbar on the same row — not absolutely positioned into the tab-bar band
+ where they hid behind the chrome. Empty (no element) when alone, so it adds no gap. */
.presence-facepile {
- position: absolute;
- top: 12px;
- right: 12px;
- z-index: 6;
display: flex;
gap: 4px;
+ align-items: center;
}
.presence-face {