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.
This commit is contained in:
parent
d37d4b7151
commit
8fb3ce0597
|
|
@ -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).
|
||||
|
|
|
|||
Loading…
Reference in New Issue