github nicobailon/pi-subagents v0.79.2

latest releases: v0.90.0, v0.89.2, v0.89.1...
one month ago

This release makes delegation more dependable in the situations where it used to quietly go wrong. A child that finishes while you're busy now gets its result to you even if Pi restarts in between. Steering a child is less fragile: a steer that times out no longer locks the run, and a steer that arrives too late tells you what state the run is in and what to do instead. Children also stop picking up instructions you wrote only for your main session, and a few long-running and provider-specific failures are gone.

Highlights

  • Completion notices survive a restart. If a background child finishes while you're busy and Pi restarts before you get to it, the next Pi that opens the session shows the notice and picks up from there.
  • Steering is less fragile. A steer that times out waiting for a busy child no longer blocks every later steer on that run, and a steer on a finished run names its state and the next step.
  • Your APPEND_SYSTEM.md stays with you. Children no longer receive it, on this machine or on a saved Herdr machine.
  • Long sessions keep their capacity. Workflows relaunched after a reload give their background-run slots back, and workflows started from providers with very long tool-call ids (such as LiteLLM with Gemini) no longer fail at launch.
  • Delegation can't be lost to an old compaction. A session compacted by an older Pi gets subagent back instead of losing it for good.

Need to know

If you relied on children reading your APPEND_SYSTEM.md, move those instructions into the agent's prompt or an agentOverrides systemPrompt.

Changelog

Highlights

  • A background child that finishes while you are busy no longer loses its completion notice if Pi restarts before you get to it. The next Pi that opens the session shows it.
  • Steering is less fragile. A steer that times out waiting for a busy child no longer blocks every later steer on that run, and a steer that arrives too late says what state the run is in and what to do next.
  • Children no longer pick up your APPEND_SYSTEM.md, on this machine or on a saved Herdr machine. It was meant for your main session.
  • Workflows relaunched after a reload give back their background-run capacity, and workflows started from providers with very long tool-call ids (LiteLLM with Gemini) no longer fail at launch.
  • A session compacted by an older Pi can no longer lose subagent for good.

Fixed

  • A background subagent that finished while the parent was busy could lose its completion notice if Pi restarted before the parent got to it: Pi drops a queued notice when the session ends, and the result file was already gone. Such a notice is now saved in the session when it ends, and the next Pi process that opens the session, for example after a restart or with pi --continue, resends it and wakes the parent. A notice already in the session is not sent twice, notices on another branch of the session tree don't count, and /reload is unchanged. Thanks to @advaitpaliwal for #2968.
  • A default steer on a running child that didn't pause within the recovery wait left the run locked, so every later steer failed with "Another steering recovery is already committed". A timed-out attempt now unlocks the run, still starts no replacement, and its error gives the real wait, the run's last state, that the message wasn't applied, and that action: "resume" continues the run. Thanks to @tglunde for reporting #2956.
  • steer on a run that had already finished said only that it "is not running or queued". It now names the run's state and the next step: a completed retained child points at mode: "follow_up" or resume, and other runs point at resume only when resume would accept them, otherwise giving resume's own reason (for example, a stopped run has to be started again). Thanks to @armchairfuturist-code for #2955 (#2954).
  • Children launched with systemPromptMode: replace (every builtin except delegate) received the operator's APPEND_SYSTEM.md, because Pi fills an empty append-prompt slot from that file. They now start without it, like delegate children and like the operator's global AGENTS.md. Children on a saved Herdr machine no longer get the remote operator's file either. To give a child those instructions, put them in the agent's prompt or an agentOverrides systemPrompt. Thanks to @scnbln for #2961 (#2960, #2969).
  • An async workflow relaunched after a reload kept its slot in maxActiveAsyncRunsPerSession forever when it reused finished children, re-attached to running ones, or had a child stopped before it started, so a long-lived session could run out of capacity. The slot is now released once the reused runs have ended. Slots already held by earlier versions are not reclaimed. Thanks to @peterdsharpe for reporting #2958 and the fix it describes.
  • A workflow launched from a tool call whose id was over 4,096 bytes failed with "parentToolCallId must be a non-empty identifier of at most 4096 UTF-8 bytes". LiteLLM, for example, puts Gemini thought signatures in the tool-call id. The workflow now runs; the workflow summary records a short digest of the id, and the run's status.json still keeps the full id. Thanks to @mxr576 for reporting #2962.
  • A session compacted by an older Pi, which kept no record of the session's tools, could lose subagent for good: on resume the surviving messages read as a deliberate choice to turn it off, and in auto mode nothing could turn it back on, not even /reload. Such a session now gets the tools a new session would, the same way on resume, /reload and tree navigation, and sessions already left without them recover. A choice to turn tools off made after the compaction is still kept. Thanks to @jbachorik for #2963.
  • The unit tests no longer fail when run from a shell that Pi or a pi-subagents child started, or on Node 24 under macOS. Thanks to @jbachorik for reporting #2964, #2965 and #2966.

Don't miss a new pi-subagents release

NewReleases is sending notifications on new releases.