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.
TypeScript adhdagent-orchestrationai-agentscanvasclaude-codecodexcoding-agentsdeveloper-toolselectrongeminilinuxmacosmultiplexeropencodeparallel-agentsterminalterminal-emulatorterminal-multiplexertmuxworkspace-manager
fix(terminal): give the last line a guaranteed gap above the node's bottom edge
enes62159e1271e2
diff --git a/src/renderer/lib/glyphGridNode.ts b/src/renderer/lib/glyphGridNode.tsindex 9a6e2c5fd..777061c45 100644--- a/src/renderer/lib/glyphGridNode.ts+++ b/src/renderer/lib/glyphGridNode.ts@@ -57,9 +57,10 @@ export interface WorldRect {* a padding-less, border-less `.term-node__body`. If either changes, the caller must measure* `.term-node__body` instead or the plate silently under-covers again.*- * This replaced a `padPx` scalar taken from the host's asymmetric CSS padding (`4px 2px 2px 6px`,- * reduced to its 6px maximum). That covered the left/top insets and nothing else, which is exactly- * why bands showed at the BOTTOM and RIGHT — the fit slack there routinely exceeds 6px, and a+ * This replaced a `padPx` scalar taken from the host's asymmetric CSS padding (`4px 2px 2px 6px`+ * as it stood then), reduced to its 6px maximum. That covered the left/top insets and nothing+ * else, which is exactly why bands showed at the BOTTOM and RIGHT — the fit slack there routinely+ * exceeds 6px, and a* letterboxed node's bands are tens of pixels. The padding does not need reading at all now: it* lies INSIDE the measured box (`clientWidth/Height` include padding), covered on all four sides.*diff --git a/src/renderer/styles.css b/src/renderer/styles.cssindex 77fb64640..a2c5ea215 100644--- a/src/renderer/styles.css+++ b/src/renderer/styles.css@@ -1716,7 +1716,19 @@ body,.term-node__xterm {position: absolute;inset: 0;- padding: 4px 2px 2px 6px;+ /* The BOTTOM inset is the one that has to be deliberate. FitAddon derives rows from this host's+ * CONTENT height, so the space under the last line is `padding-bottom + fit slack` — and the+ * slack swings between 0 and a full cell as the node is resized, which leaves padding-bottom as+ * the only GUARANTEED gap there is. At 2px that guarantee sat under the selection ring, so a+ * selected node's last line read as CLIPPED (reported 2026-08-05, with the ring drawn through+ * the text). 6px matches the left inset and stays under the 8px the same terminal gets on the+ * board (`.kanban-modal__termwrap`).+ *+ * Do NOT unify this with the modal by moving padding onto ITS host: that one is a flex item and+ * padding there was measured to cost a whole row (see `.kanban-modal__term`). This host is+ * `position: absolute; inset: 0` and has carried vertical padding all along without losing one.+ * Two elements, two measured behaviours — re-measure before merging them. */+ padding: 4px 2px 6px 6px;}.term-node__xterm .xterm {