v0.1.13
Fixed
-
Subagent output no longer echoes the request on pi 0.83.0. pi 0.83.0 changed its JSON event stream to emit
message_endfor every message role (user, assistant, toolResult) — not just assistant. The executor captured text from anymessage_end, so the echoed user task (Task: …) and raw tool results leaked into the subagent output whenever the final assistant turn had no text part (tool-only / error).The
message_endhandler now captures text, usage, and model only fromrole === "assistant"messages. Backward- and forward-compatible. -
Added regression tests replaying the real 0.83.0 event stream (user + assistant + toolResult
message_end) via an injected fake runner.