Skip to content

fix(sdk): use correct controller during stream creation#724

Merged
smrz2001 merged 5 commits into
mainfrom
fix/new-stream-controller
Jun 26, 2025
Merged

fix(sdk): use correct controller during stream creation#724
smrz2001 merged 5 commits into
mainfrom
fix/new-stream-controller

Conversation

@smrz2001

@smrz2001 smrz2001 commented Jun 10, 2025

Copy link
Copy Markdown
Contributor

cc @m0ar

Closes #725

@smrz2001 smrz2001 self-assigned this Jun 10, 2025
@smrz2001 smrz2001 temporarily deployed to tnet-prod-2024 June 10, 2025 11:59 — with GitHub Actions Inactive
@smrz2001 smrz2001 temporarily deployed to tnet-prod-2024 June 10, 2025 13:45 — with GitHub Actions Inactive
@smrz2001 smrz2001 marked this pull request as ready for review June 18, 2025 22:10
@smrz2001 smrz2001 requested a review from a team as a code owner June 18, 2025 22:10
@smrz2001 smrz2001 requested review from sam701 and removed request for a team June 18, 2025 22:10
@smrz2001 smrz2001 temporarily deployed to tnet-prod-2024 June 18, 2025 22:31 — with GitHub Actions Inactive
@smrz2001 smrz2001 temporarily deployed to tnet-prod-2024 June 23, 2025 02:00 — with GitHub Actions Inactive
/** The model's stream ID */
model: StreamID
/** The controller of the stream (DID string or literal string) */
controller: DIDString | string

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

this is losing the ability for the user to set the controller DID string explicitly, but maybe that's fine? Almost everyone is going to be using did-session anyway so maybe that doesn't really matter as a feature

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I think that should be ok.

I could have left the DID strings in but that would have meant leaving it to callers to check whether the DID had a parent PKH and then to pass that in, which felt risky.

@smrz2001 smrz2001 added this pull request to the merge queue Jun 26, 2025
Merged via the queue into main with commit e9d832f Jun 26, 2025
22 checks passed
@smrz2001 smrz2001 deleted the fix/new-stream-controller branch June 26, 2025 19:03
@smrz2001 smrz2001 mentioned this pull request Aug 28, 2025
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.

BUG: C1 SDK uses session DID Key as new stream controller instead of DID PKH

2 participants