mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-26 19:27:36 -07:00
fix(core): prevent isBinary false-positive on Windows PTY streams (#26565)
This commit is contained in:
@@ -1133,7 +1133,7 @@ export class ShellExecutionService {
|
||||
const sniffBuffer = Buffer.concat(sniffChunks);
|
||||
sniffedBytes = sniffBuffer.length;
|
||||
|
||||
if (isBinary(sniffBuffer)) {
|
||||
if (isBinary(sniffBuffer, 512, true)) {
|
||||
isStreamingRawContent = false;
|
||||
binaryBytesReceived = sniffBuffer.length;
|
||||
const event: ShellOutputEvent = { type: 'binary_detected' };
|
||||
|
||||
Reference in New Issue
Block a user