From 8fb3ce05976a75fca0924e8d29bc0b1c41dee508 Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Fri, 22 May 2026 12:39:03 +0200 Subject: [PATCH] fix subagent_spawn: use /bin/echo for 9P writes Bash builtin echo/printf may split multi-line content across multiple write syscalls, which the FUSE 9P proxy rejects. /bin/echo (coreutils) does a single write. --- tools/subagent_spawn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/subagent_spawn b/tools/subagent_spawn index 78b9401..2c01650 100755 --- a/tools/subagent_spawn +++ b/tools/subagent_spawn @@ -59,7 +59,7 @@ backend=${backend}" [ -n "$model" ] && kv="${kv} model=${model}" -printf '%s\n' "$kv" > "$OLLIE/s/new" || die "failed to create session" +/bin/echo "$kv" > "$OLLIE/s/new" || die "failed to create session" B="$OLLIE/s/$name" wait=0.1 @@ -70,7 +70,7 @@ for _ in 1 2 3 4 5 6 7 8; do done [ -d "$B" ] || die "timeout waiting for session $name" -printf '%s\n' "$prompt" > "$B/prompt" || die "failed to submit prompt" +/bin/echo "$prompt" > "$B/prompt" || die "failed to submit prompt" # Clean up JIT agent config now that the server has loaded it. # Only remove configs with the jit- prefix (generated by subagent_generate).