feat: add setting to hide Twitch AI stream summaries - #8092
Open
dclstn wants to merge 2 commits into
Open
Conversation
dclstn
force-pushed
the
feat/hide-ai-summaries
branch
4 times, most recently
from
June 25, 2026 11:04
90e4064 to
0cdf33a
Compare
|
Sorry if this isn't within the repo's etiquette, but I'd like to add a "yes, please" comment to this! 👍 One thing of note, in the "Notes" section of this PR's body:
This is incorrect. It's opt-out on the streamer's end. Twitch may be manually selecting streams to have it "opted-in" for them. Minor note, I admit, but it's worth being accurate. Several high-profile, four/five viewer digit streamers that I watch expressed surprise that they suddenly had it. |
Twitch is testing "Mid-Stream Summary" — an AI-generated recap shown to viewers who join an ongoing stream. It ships as a chat private callout (callout type `mid-stream-summary`) and reuses the generic private-callout chrome, so there is no feature-specific class to target. Add a "AI Stream Summaries" toggle to the Chat settings panel (default on) that hides the callout via the hard-coded ids the component renders (`#summary-title` / `aria-labelledby="summary-title"`). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Switch the global style.css body class to a styles.module.css module (matching hide_sidebar_elements). Match the callout via the hard-coded ids its component renders (summary-title / summary-survey-question) with :has(), written as `[id='…']` attribute selectors so CSS Modules leaves them literal — bare `#id` selectors would be scoped/hashed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
dclstn
force-pushed
the
feat/hide-ai-summaries
branch
from
July 24, 2026 14:31
0cdf33a to
03eb382
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Twitch is testing a "Mid-Stream Summary" feature — an AI-generated recap shown to viewers who join a stream that's already in progress. This adds a setting to hide it.
It's delivered as a chat private callout (callout type
mid-stream-summary) and reuses the generic private-callout chrome (.chat-private-callout__header-segment,.inline-private-callout-line, …) shared with sub upsells, hype-train rewards, etc., so there's no feature-specific class. The only hooks unique to the summary are the hard-coded element ids the viewer component (MidStreamSummaryCallout) renders:#summary-title— the "Stream Summary"<h5>heading#summary-survey-question— the "Is this summary accurate?" feedback prompt[role="region"][aria-labelledby="summary-title"], wrapped by an outer[role="status"]Changes
hide_ai_summarymodule — toggles abttv-hide-ai-summarybody class (mirrorshide_chat_clips).[role="status"]:has([aria-labelledby="summary-title"]), with the region itself as a fallback if Twitch changes the outer wrapper.ChatFlags.AI_STREAM_SUMMARYflag, added to the Chat settings panel as "AI Stream Summaries" (default on, so it only hides when unchecked). Included in the CHAT default mask so existing users get it via the flag-upgrade system.Notes
The feature is still a server-gated experiment (channel must be eligible + the streamer opts in), so it can't be reproduced on demand yet. Tested against a faithful DOM mock of the callout; the selectors are taken from Twitch's shipping client code rather than guessed, so they should hold up — though they may shift while the feature is experimental.