Skip to content

Fix stream shift disable enhanced broadcasting and clarity refactor. - #6198

Open
michelinewu wants to merge 3 commits into
masterfrom
mw_fix_ss_2
Open

michelinewu wants to merge 3 commits into
masterfrom
mw_fix_ss_2

Conversation

@michelinewu

Copy link
Copy Markdown
Contributor

Disable Enhanced Broadcasting for Stream Shift

Issues

Stream shift requires enhanced broadcasting to be disabled, which wasn't being set. The call sites were ambiguous so a small distinction between tracking the enhanced broadcasting user setting vs. the actual setting to go live could be confused.

Fixes

Adds an explicit else if (goLiveSettings.streamShift) branch in beforeGoLive that forces enhanced broadcasting off, matching what setupStreamShiftStream() already does on the path that does short-circuit.

Renames the state-only method to setEnhancedBroadcastingState and introduces setEnhancedBroadcastingSetting as the named wrapper around the OBS write.

Files changed: app/services/platforms/twitch.ts, app/components-react/windows/go-live/useGoLiveSettings.ts

Performance Implications

None.

Copilot AI lite review requested due to automatic review settings September 18, 2026 22:21

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 unattended Stream Shift path may fail to reliably disable enhanced broadcasting.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 Medium severity

Open (1)
What changed in this PR

Updates Twitch Stream Shift handling to disable enhanced broadcasting and clarify state versus backend setting updates.

Changes:

  • Adds explicit Stream Shift enhanced-broadcasting handling.
  • Separates persisted state updates from backend setting writes.
  • Updates Go Live settings to use the state-specific method.
File Summary
app/​services/​platforms/​twitch.ts Adds Stream Shift handling and clearer enhanced-broadcasting APIs.
app/​components-react/​windows/​go-live/​useGoLiveSettings.ts Uses the persisted-state setter for Go Live preferences.

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

Comment thread app/services/platforms/twitch.ts Outdated
Comment on lines +251 to +253
} else if (goLiveSettings.streamShift) {
// Stream shift is not compatible with enhanced broadcasting
this.setEnhancedBroadcastingSetting(false);
@bundlemon

bundlemon Bot commented Sep 18, 2026 •

Copy link
Copy Markdown

BundleMon

Files updated (1)
Status Path Size Limits
✅ renderer.(hash).js
10.65MB (+75B 0%) -
Unchanged files (3)
Status Path Size Limits
✅ vendors~renderer.(hash).js
4.67MB -
✅ updater.js
115.29KB -
✅ guest-api.js
40.23KB -

Total files change +75B 0%

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

Copilot AI review requested due to automatic review settings September 21, 2026 16:51
Comment thread app/services/platforms/twitch.ts Outdated
Comment on lines 248 to 249
if (channelInfo) {
if (goLiveSettings?.liveOutputEditing) {

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.

Nit: !!channelInfo implies !!goLiveSettings, but that's pretty tenuous IMO. Adding goLiveSettings to the first if would make it safer if the logic changes in the future here, since line 251 isn't checking nullish values.

Suggested change
if (channelInfo) {
if (goLiveSettings?.liveOutputEditing) {
if (goLiveSettings && channelInfo) {
if (goLiveSettings.liveOutputEditing) {

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

🟢 Approval recommended

No unresolved blocking issues were identified.

Review effort: Lite
Findings: 1 Medium severity

Open (1)

Copilot AI review requested due to automatic review settings September 21, 2026 17:25

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 Stream Shift early-return issue can prevent initial stream configuration.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 High severity · 1 Medium severity

Open (2)

Comment on lines +237 to 240
if (this.streamingService.views.shouldSwitchStreams) {
await this.setupStreamShiftStream(goLiveSettings);
}
return;

This branch has not been deployed

No deployments
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.

3 participants