Skip to content

v0.2.2

Choose a tag to compare

@github-actions github-actions released this 19 Aug 16:13
· 11 commits to main since this release
c670fff

Fixed: a session could be missing from its own den, or look crashed while working

If you run pets with hooks but no status line - Codex, which has no
status-line support, or Claude Code with the status line switched off - the agent
register was never written from the paths that had the information to write it.

Two symptoms came out of that:

  1. A new session was absent from pets den and pets party for its whole first
    turn
    , because nothing registered it until the turn ended.
    (Correction, added after release: pets den is fixed. pets party is driven by
    worktree state rather than by the agent register, so it still needs something to
    probe — see #29. The
    staleness fix below is unaffected.)
  2. It then went stale during any turn longer than 90 seconds, so a working
    agent rendered dimmed, exactly as though it had crashed. Stop was the only
    thing keeping it alive and Stop does not fire mid-turn.

pets install wires three hooks - SessionStart, PostToolUse and Stop - but
only Stop and the status line ever registered an agent. Now every path that
receives a payload does, and both new call sites sit ahead of an early return that
fires on the common case: the verdict check gives up on any command that is not a
test run, and the hatch marker returns for every worktree that has hatched before.

If you use Claude Code with the default install, this never affected you. The
status line registers roughly once a second, which is what masked the bug.

One honest caveat for Codex users: the Codex hooks are written but have still never
been verified against a real Codex (#15).
This removes the reason a Codex session could not appear; whether its hooks fire at
all is a separate open question, and a report either way is welcome on that issue.

Details, including the two things my own bug report got wrong, are in
#11 and
#26.

Upgrading

Installed with Upgrade
Homebrew brew upgrade parallel-harness-pets
The install script re-run it, it replaces the binary in place
Go go install github.com/TevvvB/parallel-harness-pets/cmd/pets@latest
A release archive download the new one below

Restart your agent sessions afterwards, since hooks are read at startup.