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())