fix(pi): deploy session-safe subagent lifecycle - #7
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pi-interactive-subagentsto the session-lifecycle fix at166b6cfRoot cause
Pi 0.84.1 reuses cached extension factories across
/new,/resume, and/fork. The previous package pin aborted its module poll controller duringsession_shutdownbut only recreated it during module import, so subsequent subagents exited before creating a session.Verification
npm testinpi-interactive-subagents: 149 passednode --test dot_pi/agent/test/configuration.test.mjs: 13 passedscripts/check-portability.sh: passed166b6cf92098d984a2717b9d315138e1ab5612b4/reload