From 024db6f12ecc00afe9f0baa1ddf99e9a9c2a717d Mon Sep 17 00:00:00 2001 From: Jinwoo-H Date: Fri, 26 Jun 2026 12:19:18 -0700 Subject: [PATCH] Avoid inefficient SSH chunk fallback Co-authored-by: Orca --- src/main/runtime/orca-runtime-files.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/main/runtime/orca-runtime-files.ts b/src/main/runtime/orca-runtime-files.ts index 2025479628a..5b4c6047c2d 100644 --- a/src/main/runtime/orca-runtime-files.ts +++ b/src/main/runtime/orca-runtime-files.ts @@ -486,14 +486,7 @@ export class RuntimeFileCommands { if (fileStat.type === 'directory') { throw new Error('Cannot download a directory') } - const result = await provider.readFile(target.path) - const content = Buffer.from(result.content, result.isBinary ? 'base64' : 'utf8') - const chunk = content.subarray(offset, offset + length) - return { - contentBase64: chunk.toString('base64'), - bytesRead: chunk.byteLength, - eof: offset + chunk.byteLength >= content.byteLength - } + throw new Error('SSH runtime chunked download is unavailable; use the SSH download path') } const filePath = await resolveAuthorizedPath(target.path, this.host.requireStore())