backup current stable ejclaw state

This commit is contained in:
Codex
2026-05-27 10:53:05 +09:00
parent 646bc34372
commit 1509108e04
57 changed files with 7127 additions and 154 deletions

View File

@@ -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;