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(accounts): close the Settings overlay when the login node spawns

enes610362bdab8b
diff --git a/src/renderer/canvas/Canvas.tsx b/src/renderer/canvas/Canvas.tsx
index 99173676f..08e2e8a95 100644
--- a/src/renderer/canvas/Canvas.tsx
+++ b/src/renderer/canvas/Canvas.tsx
@@ -1477,6 +1477,10 @@ export function Canvas() {
{ ...createAccountLoginNode(accountId, ns.length, viewCenter(), ssh), selected: true }
])
markDirty()
+ // The event fires from the full-screen Settings overlay — close it so the user actually
+ // sees the login node (it spawns at viewCenter, selected). The defensive return above
+ // keeps Settings open when nothing was spawned (mismatched/disconnected remote login).
+ setSettingsOpen(false)
}
window.addEventListener('nodeterm:add-account-login', onAddAccountLogin)
return () => window.removeEventListener('nodeterm:add-account-login', onAddAccountLogin)