Skip to content

Remove subscription_thread_dispatcher.h from public API - #265

Open
stephen-derosa wants to merge 1 commit into
mainfrom
sderosa/private-subscription-thread-dispatcher
Open

stephen-derosa wants to merge 1 commit into
mainfrom
sderosa/private-subscription-thread-dispatcher

Conversation

@stephen-derosa

Copy link
Copy Markdown
Collaborator

Overview

subscription_thread_dispatcher.h: SubscriptionThreadDispatcher was never meant to be in the public API.

This moves it to the LIVEKIT_INTERNAL_API and to the src/ folder.

For this change we will create a minor version bump since it was never intended to be in the public API to begin with.

@stephen-derosa stephen-derosa self-assigned this Sep 17, 2026
Copilot AI lite review requested due to automatic review settings September 17, 2026 20:19
devin-ai-integration[bot]

This comment was marked as resolved.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Unresolved critical include and public API issues, plus an invalid include directive, block approval.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

This PR moves SubscriptionThreadDispatcher toward the internal API and updates its implementation and Room references.

Changes:

  • Adds a source-local dispatcher header.
  • Updates implementation and Room include paths.
  • Changes the public declaration visibility annotation.
File summaries
File Summary
src/subscription_thread_dispatcher.h Adds the internal declaration; uses an outdated 2025 copyright year (moderate, 2 votes).
src/subscription_thread_dispatcher.cpp Include directive has a trailing period and will not compile (critical, 3 votes).
include/livekit/subscription_thread_dispatcher.h Remains installed and publicly exposed despite the annotation change (moderate, 2 votes).
include/livekit/room.h Quoted include resolves to the public header rather than the private copy, breaking the intended migration (critical, 3 votes).
Review details

Suppressed comments (1)

src/subscription_thread_dispatcher.h:84

  • This is the header included by subscription_thread_dispatcher.cpp, so LIVEKIT_API here still gives the dispatcher definitions public visibility/export. Changing only the other copy to LIVEKIT_INTERNAL_API does not remove these symbols from the ABI; use the internal annotation consistently (or keep one shared internal declaration).
class LIVEKIT_API SubscriptionThreadDispatcher {
  • Files reviewed: 4/4 changed files
  • Comments generated: 4
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread include/livekit/room.h
Comment thread src/subscription_thread_dispatcher.cpp Outdated
Comment thread include/livekit/subscription_thread_dispatcher.h Outdated
Comment thread src/subscription_thread_dispatcher.h
@stephen-derosa
stephen-derosa force-pushed the sderosa/private-subscription-thread-dispatcher branch from 42148f8 to 9206faf Compare September 17, 2026 20:44
@stephen-derosa
stephen-derosa force-pushed the sderosa/private-subscription-thread-dispatcher branch from 9206faf to 01c0487 Compare September 17, 2026 20:45

@devin-ai-integration devin-ai-integration 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.

Devin Review found 1 new potential issue.

2 flags not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)

Devin Review

Comment thread src/subscription_thread_dispatcher.h
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