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(canvas): ghost hint on an empty canvas (right-click / ⌘K / dock)

enesc5478040f8ad
diff --git a/src/renderer/canvas/Canvas.tsx b/src/renderer/canvas/Canvas.tsx
index f8d691c28..016c35528 100644
--- a/src/renderer/canvas/Canvas.tsx
+++ b/src/renderer/canvas/Canvas.tsx
@@ -5616,6 +5616,18 @@ export function Canvas() {
</div>
<div className="flow-wrap" ref={flowWrapRef}>
+ {/* First-contact guidance: an empty canvas used to be a black void (field report:
+ "didn't know what to do first"). Pointer-events-none so it can never eat a
+ right-click or box-select; keyed off the LIVE nodes array, so it reappears on
+ any emptied project, not just first run (no persisted seen-flag — YAGNI). */}
+ {nodes.length === 0 && (
+ <div className="empty-canvas-hint" aria-hidden>
+ <div>Right-click to add a terminal or agent</div>
+ <div>
+ <span className="kbd">⌘K</span> command palette · <span className="kbd">+</span> in the dock below
+ </div>
+ </div>
+ )}
{/* The active project's node subtree runs under ITS session (local for a local tab, the
relay session for a remote tab). Keyed by session id so an api swap REMOUNTS the nodes
(obligation 3): TerminalNode/EditorNode/ChatNode capture `api` in []-effects, so a live
diff --git a/src/renderer/styles.css b/src/renderer/styles.css
index b4385151a..1abf15e1d 100644
--- a/src/renderer/styles.css
+++ b/src/renderer/styles.css
@@ -1976,6 +1976,26 @@ body,
gap: 6px;
}
+/* Empty-canvas guidance — non-interactive, sits under every panel/dialog. */
+.empty-canvas-hint {
+ position: absolute;
+ inset: 0;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ gap: 8px;
+ pointer-events: none;
+ user-select: none;
+ z-index: 1;
+ color: rgba(255, 255, 255, 0.28);
+ font-size: 14px;
+ text-align: center;
+}
+.empty-canvas-hint .kbd {
+ opacity: 0.7;
+}
+
/* Stack of notification strips (update + announcements), just below the tab bar. */
.top-banners {
position: absolute;