Skip to content

fix(pi): deploy session-safe subagent lifecycle - #7

Merged
Attamusc merged 1 commit into
mainfrom
fix/pi-subagent-session-lifecycle
Aug 8, 2026
Merged

Attamusc merged 1 commit into
mainfrom
fix/pi-subagent-session-lifecycle

Conversation

@Attamusc

@Attamusc Attamusc commented Aug 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • advance pi-interactive-subagents to the session-lifecycle fix at 166b6cf
  • keep the portability package contract pinned to the same immutable revision
  • prevent subagent watchers from inheriting an aborted module signal after Pi session replacement

Root cause

Pi 0.84.1 reuses cached extension factories across /new, /resume, and /fork. The previous package pin aborted its module poll controller during session_shutdown but only recreated it during module import, so subsequent subagents exited before creating a session.

Verification

  • npm test in pi-interactive-subagents: 149 passed
  • node --test dot_pi/agent/test/configuration.test.mjs: 13 passed
  • scripts/check-portability.sh: passed
  • installed package HEAD verified as 166b6cf92098d984a2717b9d315138e1ab5612b4
  • visible Herdr scout returned successfully after package installation and /reload

Advance the interactive-subagents package to the tested lifecycle fixes. The previous pin left the watcher abort controller permanently cancelled after Pi reused a cached extension factory for a replacement session, causing every later scout or worker to exit before creating its session.

Keep the portability package contract pinned to the same immutable commit.
@Attamusc
Attamusc merged commit 826259d into main Aug 8, 2026
1 check passed
@Attamusc
Attamusc deleted the fix/pi-subagent-session-lifecycle branch August 8, 2026 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant