Skip to content

Proper setting of client SDK#1081

Merged
stephen-derosa merged 3 commits into
mainfrom
sderosa/BOT-348-ffi-lib-reporting
May 12, 2026
Merged

Proper setting of client SDK#1081
stephen-derosa merged 3 commits into
mainfrom
sderosa/BOT-348-ffi-lib-reporting

Conversation

@stephen-derosa
Copy link
Copy Markdown
Contributor

PR description

Report the corect client fclient_info_sdk_for_name

Breaking changes

I dont believe there are breaking changes

Testing

Unit tests inline

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 11, 2026

Changeset

The following package versions will be affected by this PR:

Package Bump
livekit-api patch

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the signal client’s v1 join-request generation to report the correct SDK identity (and version) in ClientInfo, rather than always reporting Rust, which improves cross-language wrapper attribution while keeping the existing v0 query-param behavior intact.

Changes:

  • Added client_info_sdk_for_name() to map SDK name strings (e.g., "cpp", "C++", "react-native") into proto::client_info::Sdk.
  • Updated v1 JoinRequest construction to set client_info.sdk based on SignalOptions.sdk_options.sdk.
  • Added unit tests covering SDK-name mapping and verifying SDK/version reporting for both v0 URL params and v1 join_request payload.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread livekit-api/src/signal_client/mod.rs Outdated
Comment thread livekit-api/src/signal_client/mod.rs Outdated
Copy link
Copy Markdown
Contributor

@xianshijing-lk xianshijing-lk left a comment

Choose a reason for hiding this comment

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

some comments, lgtm after addressing them

Comment thread .changeset/draft_proper_floating_up_of_version.md Outdated
Comment thread livekit-api/src/signal_client/mod.rs Outdated
Comment thread livekit-api/src/signal_client/mod.rs Outdated
@stephen-derosa stephen-derosa force-pushed the sderosa/BOT-348-ffi-lib-reporting branch from 7f1c302 to 2389266 Compare May 12, 2026 22:17
@stephen-derosa stephen-derosa marked this pull request as ready for review May 12, 2026 22:24
@stephen-derosa stephen-derosa changed the title Draft: proper floating up of version Proper floating up of version May 12, 2026
@stephen-derosa stephen-derosa force-pushed the sderosa/BOT-348-ffi-lib-reporting branch from 5b4674e to 8d90884 Compare May 12, 2026 22:46
@stephen-derosa stephen-derosa changed the title Proper floating up of version Proper setting of client SDK May 12, 2026
@stephen-derosa stephen-derosa merged commit 8d4d069 into main May 12, 2026
23 checks passed
@stephen-derosa stephen-derosa deleted the sderosa/BOT-348-ffi-lib-reporting branch May 12, 2026 22:47
@knope-bot knope-bot Bot mentioned this pull request May 12, 2026
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.

4 participants