graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
Pass the composer buffer by value into stealIdleLine
justrachb42eb86a7d74
diff --git a/src/readline.zig b/src/readline.zigindex f8cc7bc8..ab01cb40 100644--- a/src/readline.zig+++ b/src/readline.zig@@ -177,7 +177,7 @@ pub fn readLine(pend_i += 1;break :blk b;} else blk: {- if (try @import("subagent_interactive.zig").stealIdleLine(root.io, root.session_name, gpa, &buf, in.buffered().len == 0 and tty.isForeground() and tty.pendingBytes() == 0 and !inputPendingTimed(100))) |line| return line;+ if (try @import("subagent_interactive.zig").stealIdleLine(root.io, root.session_name, gpa, buf, in.buffered().len == 0 and tty.isForeground() and tty.pendingBytes() == 0 and !inputPendingTimed(100))) |line| return line;// While the input contains `ultracode`, drift the ember shine// across the letters: poll for input with a slower 140ms timeout,// and on each idle tick advance the phase + redraw so the hue