Skip to content

feat: support abort signals for session turns#24

Open
varin-nair-factory wants to merge 2 commits intomainfrom
vn/abort-session-turns
Open

feat: support abort signals for session turns#24
varin-nair-factory wants to merge 2 commits intomainfrom
vn/abort-session-turns

Conversation

@varin-nair-factory
Copy link
Copy Markdown
Contributor

@varin-nair-factory varin-nair-factory commented May 2, 2026

Summary

Adds AbortSignal support to session turns so callers can cancel session.stream() and session.send() work in progress. Aborted turns interrupt the active Droid session, clean up stream listeners, and reject with the abort reason.

Changes

  • Adds abortSignal to session message options
  • Wires abort handling through stream consumption and session cleanup
  • Updates permission defaults/tests to use ToolConfirmationOutcome constants
  • Adds an abort-session smoke test example

Verification

  • npm run lint
  • npm run typecheck
  • npm run typecheck:examples
  • npm test
  • npm run format:check

@varin-nair-factory varin-nair-factory changed the base branch from vn/send-on-message to main May 2, 2026 00:42
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