Skip to content

fix: unblock active streams on session close#43

Open
varin-nair-factory wants to merge 1 commit into
mainfrom
vn/close-unblocks-stream
Open

fix: unblock active streams on session close#43
varin-nair-factory wants to merge 1 commit into
mainfrom
vn/close-unblocks-stream

Conversation

@varin-nair-factory
Copy link
Copy Markdown
Contributor

Summary

Fixes DroidSession.close() so active stream consumers are explicitly released when a session is closed, even if the CLI never emits an idle/result notification.

This tracks active message bridges, signals them during close, and races pending addUserMessage startup against bridge completion so pending stream startup cannot hang during shutdown.

Tests

  • npm test -- tests/session.test.ts
  • npm run typecheck
  • npm run lint
  • npm test
  • npm run format:check

Stacked on #42.

Base automatically changed from vn/cli-72-resume-cwd to main May 21, 2026 00:46
@varin-nair-factory varin-nair-factory dismissed factory-davidgu’s stale review May 21, 2026 00:46

The base branch was changed.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
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.

2 participants