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.

Merge origin/main (#1078 ProxyJump) into feat/windows-ssh-agent-add

enes59a52f9ba26e
diff --cc src/core/remote-ssh/native/native-mux.ts
index da44745be,80c9f6c95..f3ab57917
--- a/src/core/remote-ssh/native/native-mux.ts
+++ b/src/core/remote-ssh/native/native-mux.ts
@@@ -28,9 -34,8 +34,9 @@@ import type { Duplex } from 'stream
import fs from 'fs'
import { Client, createAgent, utils, type Channel, type ClientChannel, type ConnectConfig, type UNIXConnectionDetails, type ParsedKey, type SFTPWrapper } from 'ssh2'
import type { ParsedSsh, ReverseForward, SshOptions, SshTarget } from './ssh-argv'
- import type { ResolvedHost } from './ssh-config'
+ import { parseProxyJump, type HostQuery, type JumpSpec, type ResolvedHost } from './ssh-config'
import { acceptNewHostKey } from './known-hosts'
+import { addKeyToAgent, type AgentAddResult } from './agent-add'
/** Result of one remote command, in the shape execFile callers already handle. */
export interface ExecResult {
@@@ -518,8 -633,8 +643,9 @@@ export class NativeMux
await new Promise<void>((resolve, reject) => {
const onReady = (): void => {
client.removeListener('error', onErr)
+ client.removeListener('close', onClose)
resolve()
+ this.maybeAddToAgent(host, auth.succeeded())
}
const onErr = (e: Error & { level?: string }): void => {
client.removeListener('ready', onReady)
diff --cc src/core/remote-ssh/native/native-runtime.ts
index 54b339aa9,6ba5f1db9..d26fe8b2c
--- a/src/core/remote-ssh/native/native-runtime.ts
+++ b/src/core/remote-ssh/native/native-runtime.ts
@@@ -10,10 -10,8 +10,9 @@@ import fs from 'fs
import path from 'path'
import { findExecutableSync } from '../../exec-path'
import { NativeMux, WINDOWS_OPENSSH_AGENT_PIPE, type ExecResult } from './native-mux'
- import { parseSshG, sshGArgs } from './ssh-config'
- import type { SshTarget } from './ssh-argv'
+ import { parseSshG, sshGArgs, type HostQuery } from './ssh-config'
import { runSshArgv, useNativeSsh } from './native-invoke'
+import { decideAgentAdd } from './agent-add'
export { useNativeSsh }