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(accounts): persist account-removal cleanup (markDirty) + cancel pending login wait
enes586f130bf27a
diff --git a/src/renderer/canvas/Canvas.tsx b/src/renderer/canvas/Canvas.tsxindex 76c6c590d..6ebc2b71b 100644--- a/src/renderer/canvas/Canvas.tsx+++ b/src/renderer/canvas/Canvas.tsx@@ -1360,10 +1360,15 @@ export function Canvas() {): ns)+ // Schedule a workspace write: persist() re-serializes the cleared live nodes and writes+ // the whole projects store to disk, also covering AccountsSection's setState on the other+ // projects' serialized nodes + defaultAccountId. Without this, quitting right after a+ // removal would leave the dead accountId in workspace.json.+ markDirty()}window.addEventListener('nodeterm:account-removed', onAccountRemoved)return () => window.removeEventListener('nodeterm:account-removed', onAccountRemoved)- }, [setNodes])+ }, [setNodes, markDirty])const addAgentNode = useCallback((agentId: AgentId, center?: { x: number; y: number }, groupId?: string) => {diff --git a/src/renderer/components/settings/sections/AccountsSection.tsx b/src/renderer/components/settings/sections/AccountsSection.tsxindex 953f46dba..cd3becb2a 100644--- a/src/renderer/components/settings/sections/AccountsSection.tsx+++ b/src/renderer/components/settings/sections/AccountsSection.tsx@@ -80,6 +80,8 @@ export function AccountsSection({ isActive }: { isActive: boolean }): React.JSX.const confirmRemove = async (account: ClaudeAccount): Promise<void> => {setPendingRemove(null)+ // Removing a pending account: stop the 5-minute waitLogin poll loop first.+ if (account.pending) await window.nodeTerminal.claudeAccounts.cancelWaitLogin(account.id)await window.nodeTerminal.claudeAccounts.remove(account.id)applyAccounts((accs) => accs.filter((a) => a.id !== account.id))// Clear the account off serialized nodes (all projects) + any project default...