Skip to content

fix(v2): enforce connection lifecycle - #235

Open
benbrandt wants to merge 1 commit into
fix/v2-method-contractsfrom
fix/v2-lifecycle
Open

fix(v2): enforce connection lifecycle#235
benbrandt wants to merge 1 commit into
fix/v2-method-contractsfrom
fix/v2-lifecycle

Conversation

@benbrandt

Copy link
Copy Markdown
Member

Summary

  • enforce initialize-first, exactly-once lifecycle semantics per v2 connection, including standalone initialize batches, cancellation, failure, and close behavior
  • expose initialization snapshots, negotiated capability getters, and deferred onInitialized hooks while preserving onConnect timing
  • preserve same-version initialize extensions after validation and add explicit prompt acceptance ordering with standalone prompt batches
  • remove the dual-version example timer workaround
  • keep the existing experimental v2 and underscore-extension API lane unchanged

Stack

This PR is stacked on #229 because it builds on the v2 method-contract types and response validation introduced there.

Verification

  • npm run generate
  • npm run check (40 files, 868 tests)
  • focused v2 and protocol-router suite (55 tests)
  • git diff --check

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