Skip to content

fix(webrtc): keep SDP media identifiers unique across pending changes - #1406

Merged
capy-ai[bot] merged 1 commit into
devfrom
capy/keep-sdp-media-identifiers
Nov 3, 2026
Merged

capy-ai[bot] merged 1 commit into
devfrom
capy/keep-sdp-media-identifiers

Conversation

@zortos293

@zortos293 zortos293 commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

SDP allocation previously checked installed media only, so queued media and data-channel sections could receive the same MID. This reproduces the macOS CI error Answer m-line for mid (...) is not of media type: Application without relying on random collisions.

Reject MIDs already queued by either AddMedia or AddApp, and include the installed application MID in session uniqueness checks. Preserve the ID generator, public API and peer-authored SDP identities.

Add seeded vendor regressions for both allocation orders, repeated collisions and renegotiation, plus a public-API transport regression exercised by normal workspace CI. The parent independently reproduced all three vendor failures on the original allocator and reran them successfully after the fix, along with the transport regression.

Verification: 513 transport tests, 1,457 workspace tests with 14 ignored, 672 vendor tests, strict workspace Clippy, formatting and diff checks pass on Linux. Standalone vendor test Clippy has the same 36 diagnostics on the untouched baseline. All seven exact-head CI checks now pass, including Linux x64, macOS arm64 and Windows x64. Automatic review completed without findings. Live gameplay remains unverified. This is separate from #1300's frame-generation changes.

Open in Capy

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Nov 3, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 51c02e88-41d9-49b2-b317-013a8325215e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.

@capy-ai capy-ai Bot 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.

Capy found no issues.

Open in Capy

@capy-ai
capy-ai Bot merged commit 0e9b824 into dev Nov 3, 2026
13 checks passed
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