Pi agent_session points to non-existent session file before first message
Author: boadijCreated Sep 30, 2026Updated Sep 30, 2026
Labelsmaintainer-neededp2macosapiintegrationstriaged
Is this a reproducible bug?
- I confirm this is a reproducible bug, not a feature request, idea, question, contribution proposal, or direction check.
- I reproduced this bug on the version and environment reported below using the exact steps provided.
Current behavior
On a freshly started Pi session, before any message has been sent, Herdr reports the Pi agent_session as a session-file path that does not exist yet.
A consumer that needs to verify the exact live Pi session cannot resolve that path to the Pi session ID. After sending one normal message in Pi, the session file is created and the same verification succeeds.
Expected behavior
Herdr should expose a usable session identity for a freshly started Pi session before the first message is sent.
Reproduction
- Start a fresh Pi instance in a Herdr pane.
- Do not send any message in Pi.
- Inspect the Pi agent with
herdr agent get <pane-id>. - Observe that
agent_sessionis a path whose file does not exist yet. - Send one normal message in Pi.
- Inspect the agent again. The session file now exists and the session identity can be resolved.
Impact
Tools that rely on Herdr to verify an exact Pi session cannot do so for a pristine Pi instance. In my case this prevents activating a supervisor until I send an otherwise unnecessary first message.
Environment
- Herdr version: 0.9.3
- Update channel (stable or preview): stable
- Operating system: MacOS 26.5 (25F71)
- Terminal: Ghostty 1.3.1
- Shell, if relevant: zsh
- Relevant config, if any: Pi 0.99.1 with the Herdr Pi integration
Source: herdrdev/herdr