fix: 按不活跃时间限制 trans 下载

This commit is contained in:
pikastech
2026-07-19 12:07:12 +02:00
parent d2df3eac5b
commit d40ebd8ca8
5 changed files with 13 additions and 5 deletions
+1
View File
@@ -1422,6 +1422,7 @@ export async function runSsh(config: UniDeskConfig, providerId: string, args: st
const operationName = normalizedArgs[0] ?? "";
if (isSshFileTransferOperation(normalizedArgs)) {
const executor: SshRemoteCommandExecutor = {
streamInactivityTimeoutMs: sshRuntimeTimeoutMs(),
runRemoteCommand: (remoteCommand, input) => runSshCaptureRemoteCommand(config, invocation, remoteCommand, input),
streamRemoteCommand: (remoteCommand, handlers, input, options) => runSshStreamRemoteCommand(config, invocation, remoteCommand, handlers, input, options),
};