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
refactor(core): move control-master (pure ssh leaf) into src/core/remote-ssh
enesd04091e09596
diff --git a/src/main/remote-ssh/control-master.test.ts b/src/core/remote-ssh/control-master.test.tssimilarity index 100%rename from src/main/remote-ssh/control-master.test.tsrename to src/core/remote-ssh/control-master.test.tsdiff --git a/src/main/remote-ssh/control-master.ts b/src/core/remote-ssh/control-master.tssimilarity index 100%rename from src/main/remote-ssh/control-master.tsrename to src/core/remote-ssh/control-master.tsdiff --git a/src/main/index.ts b/src/main/index.tsindex fdd56c10f..e36a63143 100644--- a/src/main/index.ts+++ b/src/main/index.ts@@ -33,7 +33,7 @@ import {import { createRemoteContextTail } from './remote-context-tail'import { createRemoteSubagentTail } from './remote-subagent-tail'import { RemoteFile, type RemoteFileRef } from './remote-ssh/remote-file'-import { childArgs } from './remote-ssh/control-master'+import { childArgs } from '../core/remote-ssh/control-master'import { posixQuote } from '../shared/ssh'import { buildHandoff } from './handoff'import { ChatDriver } from '../core/chat-driver'diff --git a/src/main/pty-manager.ts b/src/main/pty-manager.tsindex 9b6645ade..9157eb0e5 100644--- a/src/main/pty-manager.ts+++ b/src/main/pty-manager.ts@@ -19,7 +19,7 @@ import {remoteTmuxKillArgs,remoteTmuxPtyArgs,remoteCapturePaneArgs-} from './remote-ssh/control-master'+} from '../core/remote-ssh/control-master'import { TMUX_SOCKET, sessionName } from '../core/tmux-naming'import { releasePty, type ReleasablePty } from '../core/pty-release'import { machOArch, archMismatch } from '../core/macho-arch'diff --git a/src/main/remote-ssh/remote-file.ts b/src/main/remote-ssh/remote-file.tsindex 0fc93d143..705eef931 100644--- a/src/main/remote-ssh/remote-file.ts+++ b/src/main/remote-ssh/remote-file.ts@@ -1,7 +1,7 @@// Reads remote files over the project's existing ControlMaster (`ssh <childArgs> 'tail …'`).// Pure builders + an injected-runner class so the read logic is electron-free and unit-testable;// the actual ssh spawn is injected by the caller (Tasks 2/3 wire it to the project's runner).-import { childArgs } from './control-master'+import { childArgs } from '../../core/remote-ssh/control-master'import { posixQuote, type SshConnection } from '../../shared/ssh'export interface RemoteFileRef {diff --git a/src/main/remote-ssh/remote-git.ts b/src/main/remote-ssh/remote-git.tsindex 0be570470..9ffdc0be6 100644--- a/src/main/remote-ssh/remote-git.ts+++ b/src/main/remote-ssh/remote-git.ts@@ -5,7 +5,7 @@// git-service.ts and commit-message.ts route the same way without threading a ref through every op.import { execFile, execFileSync } from 'child_process'import { promisify } from 'util'-import { childArgs } from './control-master'+import { childArgs } from '../../core/remote-ssh/control-master'import { posixQuote, quoteRemotePath, type SshConnection } from '../../shared/ssh'const run = promisify(execFile)diff --git a/src/main/remote-ssh/remote-hooks.ts b/src/main/remote-ssh/remote-hooks.tsindex 7a2e2994d..9e5efa424 100644--- a/src/main/remote-ssh/remote-hooks.ts+++ b/src/main/remote-ssh/remote-hooks.ts@@ -4,7 +4,7 @@// codex deferred). Every step fails open: any remote failure → setup returns null and the// agent simply runs without hooks. Takes an INJECTED runner so the flow is unit-testable// without real ssh/electron.-import { childArgs, hookForwardArgs, hookForwardCancelArgs, remoteEndpointFileContents } from './control-master'+import { childArgs, hookForwardArgs, hookForwardCancelArgs, remoteEndpointFileContents } from '../../core/remote-ssh/control-master'import { buildManagedScript } from '../../core/agents/hooks/managed-script'import { mergeManagedHook, type HookSettings } from '../../core/agents/hooks/install-helper'import { posixQuote, type SshConnection } from '../../shared/ssh'diff --git a/src/main/remote-ssh/ssh-project.test.ts b/src/main/remote-ssh/ssh-project.test.tsindex 31064db14..597ec2916 100644--- a/src/main/remote-ssh/ssh-project.test.ts+++ b/src/main/remote-ssh/ssh-project.test.ts@@ -1,6 +1,6 @@import { describe, expect, it, vi } from 'vitest'import { SshProjectManager } from './ssh-project'-import { controlPathFor } from './control-master'+import { controlPathFor } from '../../core/remote-ssh/control-master'const conn = { host: 'h', user: 'u' }diff --git a/src/main/remote-ssh/ssh-project.ts b/src/main/remote-ssh/ssh-project.tsindex ddd9baccb..fafe0e550 100644--- a/src/main/remote-ssh/ssh-project.ts+++ b/src/main/remote-ssh/ssh-project.ts@@ -17,7 +17,7 @@ import {childArgs,scpArgs,RMT_TMUX_SOCKET-} from './control-master'+} from '../../core/remote-ssh/control-master'import { RemoteHooks } from './remote-hooks'import { hookServer } from '../../core/agents/hook-server'import { sessionName } from '../../core/tmux-naming'diff --git a/src/main/ssh-fs.ts b/src/main/ssh-fs.tsindex 92d675b30..6c706893f 100644--- a/src/main/ssh-fs.ts+++ b/src/main/ssh-fs.ts@@ -3,7 +3,7 @@// Paths are quoteRemotePath'd (a leading `~`/`~/` stays UNQUOTED so the remote shell tilde-expands// it — SSH projects default to a home-relative remoteCwd); write content goes on stdin (never// interpolated). check-ignore entry NAMES are bare filenames, so they stay posixQuote'd.-import { childArgs } from './remote-ssh/control-master'+import { childArgs } from '../core/remote-ssh/control-master'import { posixQuote, quoteRemotePath, type SshConnection } from '../shared/ssh'import type { DirEntry } from '../shared/types'