backup current stable ejclaw state
This commit is contained in:
@@ -61,6 +61,11 @@ export function runSpawnedAgentProcess(
|
||||
let stdoutTruncated = false;
|
||||
let stderrTruncated = false;
|
||||
|
||||
// Use UTF-8 string decoding on streams to avoid splitting multi-byte
|
||||
// characters (e.g. Korean) at chunk boundaries, which produces U+FFFD.
|
||||
stdoutStream.setEncoding('utf8');
|
||||
stderrStream.setEncoding('utf8');
|
||||
|
||||
// Streaming output: parse OUTPUT_START/END marker pairs as they arrive.
|
||||
let parseBuffer = '';
|
||||
let newSessionId: string | undefined;
|
||||
|
||||
Reference in New Issue
Block a user