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(remote): allow zooming the remote session canvas out to 1%

enesda7c76d23eaf
diff --git a/src/renderer/canvas/RemoteSessionView.tsx b/src/renderer/canvas/RemoteSessionView.tsx
index 51ebba608..52d93d96f 100644
--- a/src/renderer/canvas/RemoteSessionView.tsx
+++ b/src/renderer/canvas/RemoteSessionView.tsx
@@ -138,7 +138,7 @@ function RemoteSessionCanvas({
const px = e.clientX - rect.left
const py = e.clientY - rect.top
const d = Math.max(-50, Math.min(50, e.deltaY))
- const next = Math.min(2, Math.max(0.2, zoom * Math.exp(-d * 0.01)))
+ const next = Math.min(2, Math.max(0.01, zoom * Math.exp(-d * 0.01)))
if (next === zoom) return
const k = next / zoom
setViewport({ x: px - (px - x) * k, y: py - (py - y) * k, zoom: next })
@@ -203,7 +203,7 @@ function RemoteSessionCanvas({
onNodeDragStart={() => (draggingRef.current = true)}
onNodeDragStop={handleNodeDragStop}
selectionMode={SelectionMode.Partial}
- minZoom={0.2}
+ minZoom={0.01}
maxZoom={2}
panOnScroll
zoomOnScroll={false}