feat: harden local shell, SFTP, and desktop session reliability
Finder-launched terminals now inherit a login PATH so tools like ollama resolve, destructive SFTP/editor actions require confirmation, and terminal search plus window dragging work again. SSH forwards and RDP sessions keep listeners and survive reconnect without FastPath crashes. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
188f3556ed
commit
08696896f9
223 files changed
+13493
-3423
No files matched your search
@@ -31,9 +31,9 @@ export interface ConnectionStats {
|
||||
export interface PoolConfig {
|
||||
maxConnections: number // 最大连接数 (默认 10)
|
||||
maxBackgroundConnections: number // 最大后台连接数 (默认 5)
|
||||
idleTimeoutMs: number // 空闲超时 (默认 5 分钟)
|
||||
suspendTimeoutMs: number // 挂起超时 (默认 30 分钟)
|
||||
keepaliveIntervalMs: number // 保活间隔 (默认 60 秒)
|
||||
idleTimeoutMs: number // 空闲超时 (默认 30 分钟)
|
||||
suspendTimeoutMs: number // 挂起超时 (默认 60 分钟)
|
||||
keepaliveIntervalMs: number // 保活间隔 (默认 15 秒)
|
||||
maxReconnectAttempts: number // 最大重连次数 (默认 3)
|
||||
}
|
||||
|
||||
@@ -66,6 +66,8 @@ export interface PooledConnection {
|
||||
// 重连
|
||||
reconnectAttempts: number // 重连尝试次数
|
||||
maxReconnectAttempts: number // 最大重连次数
|
||||
/** Consecutive keepalive failures before tearing down (ClientAliveCountMax-like). */
|
||||
keepaliveFailures?: number
|
||||
}
|
||||
|
||||
// 连接结果
|
||||
|
||||
@@ -19,6 +19,8 @@ export interface TransferTask {
|
||||
type: 'upload' | 'download'
|
||||
fileName: string
|
||||
filePath: string
|
||||
/** Destination directory (remote for upload, local for download). */
|
||||
destinationDir?: string
|
||||
status: 'pending' | 'transferring' | 'completed' | 'failed' | 'canceled'
|
||||
progress: number
|
||||
error?: string
|
||||
|
||||
Reference in new issue
Block a user