Skip to content

fix: correlate stream completion by message id#41

Draft
varin-nair-factory wants to merge 1 commit into
vn/message-id-sdkfrom
vn/sdk-turn-complete
Draft

fix: correlate stream completion by message id#41
varin-nair-factory wants to merge 1 commit into
vn/message-id-sdkfrom
vn/sdk-turn-complete

Conversation

@varin-nair-factory
Copy link
Copy Markdown
Contributor

Summary

  • Correlates high-level SDK stream completion to an active messageId instead of any global idle transition.
  • Generates a message ID for session.stream()/run() calls when callers do not provide one.
  • Preserves optional working-state messageId/requestId fields and covers stale idle events in tests.

Stack

Stacked on #40.

Tests

  • npm test -- tests/stream.test.ts tests/session.test.ts tests/run.test.ts
  • npm run typecheck
  • npm run build

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
@varin-nair-factory varin-nair-factory marked this pull request as draft May 20, 2026 20:13
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