Skip to content

Add Rust session store identity support - #2547

Open
gimenete wants to merge 2 commits into
mainfrom
gimenete-rust-session-store-identity
Open

Add Rust session store identity support#2547
gimenete wants to merge 2 commits into
mainfrom
gimenete-rust-session-store-identity

Conversation

@gimenete

@gimenete gimenete commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add public SessionStoreIdentity with canonical authority and account_id fields
  • support optional sessionStoreIdentity payloads on session create and resume
  • add Client::set_session_store_identity for the server-scoped sessionStore.setIdentity set/clear contract
  • cover exact camelCase serialization, omission, and setter/clear wire requests

Validation

  • cargo +nightly-2026-04-14 fmt --check
  • cargo test --lib session_store_identity
  • cargo test --features test-support --test session_test set_session_store_identity
  • cargo clippy --all-features --all-targets -- -D warnings

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings September 5, 2026 21:10
@gimenete
gimenete requested a review from a team as a code owner September 5, 2026 21:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The new public struct needs non-exhaustive construction to preserve future API compatibility.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review tier: Balanced
Findings: 1 Medium severity

New issues introduced by this change (1)
Severity Finding
Medium severity rust/​src/​types.rs — This new public struct can be constructed with a literal, so adding any protocol field later would…
What changed in this PR

Adds Rust SDK support for account-scoped session-store identities.

Changes:

  • Adds the public identity type and create/resume configuration.
  • Implements the set/clear JSON-RPC API.
  • Tests serialization and wire requests.
File Description
rust/​src/​types.rs Defines identity and configuration support.
rust/​src/​wire.rs Serializes identity into create/resume payloads.
rust/​src/​lib.rs Adds the client identity setter.
rust/​tests/​session_test.rs Verifies set and clear requests.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread rust/src/types.rs
Co-authored-by: Copilot App <223556219+Copilot@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