Skip to content

graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs

Python

test-repl-background-wait: read graff's output as UTF-8

justrach72ce2a0ac197
diff --git a/scripts/test-repl-background-wait.py b/scripts/test-repl-background-wait.py
index 87bd9145..1f36cc31 100755
--- a/scripts/test-repl-background-wait.py
+++ b/scripts/test-repl-background-wait.py
@@ -66,7 +66,7 @@ def main():
GRAFF_VERCEL_URL=f"http://127.0.0.1:{port}/v1/chat/completions",
GRAFF_NO_TELEMETRY="1", GRAFF_NO_SMOLIFY="1", GRAFF_BEHAVIOR_UPLOAD="off", NO_COLOR="1")
proc = subprocess.run([str(binary), "repl", "--yolo", "--old", "--model", "vercel"],
- input=PROMPT + "\n", text=True, capture_output=True,
+ input=PROMPT + "\n", text=True, encoding="utf-8", errors="replace", capture_output=True,
cwd=work, env=env, timeout=90)
finally:
model.stop()