Skip to content

Highlighter -> Replay rename - #6174

Draft
jankalthoefer wants to merge 11 commits into
masterfrom
highlighter/jk-replay-rename
Draft

Highlighter -> Replay rename#6174
jankalthoefer wants to merge 11 commits into
masterfrom
highlighter/jk-replay-rename

Conversation

@jankalthoefer

Copy link
Copy Markdown
Contributor

No description provided.

jankalthoefer and others added 11 commits August 20, 2026 09:55
Streamlabs Replay cannot tell how it was installed on its own: Squirrel's
Setup.exe launches the app directly, so there is no protocol link to read, and
the installer carries no arguments. Parent apps therefore leave a marker file.

Write %TEMP%\Streamlabs\install-origin.json with the sl_desktop origin before
running the installer, per the contract in the highlighter repo. It has to
precede the exec: Squirrel launches Replay at the end of the install, so Replay
can resolve its origin while our exec call is still pending.

The path is validated against the current user's temp directory first. Replay
reads only that one location, so a SYSTEM or service identity would write
somewhere it never looks. Elevation alone is fine.

Best-effort by design: attribution is not worth failing an install over, so
every failure is swallowed and only reported to Sentry.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@bundlemon

bundlemon Bot commented Sep 10, 2026

Copy link
Copy Markdown

BundleMon

Files updated (1)
Status Path Size Limits
renderer.(hash).js
10.54MB (+6.49KB +0.06%) -
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 +6.49KB +0.04%

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

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.

🟡 Changes recommended

The new flow can lose import titles, bypass rollout behavior, block the renderer, and omit markers for valid redirected temp directories.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Renames Highlighter to Replay while preserving legacy Highlighter migration routing and updating installation/import flows.

Changes:

  • Adds Replay branding, protocol detection, and legacy Highlighter handoff.
  • Adds local installer support and install-origin metadata.
  • Updates React installation and import experiences.
File summaries
File Description
app/services/utils.ts Adds the local installer environment variable.
app/services/highlighter/models/highlighter.models.ts Defines installed-app and origin metadata types.
app/services/highlighter/index.ts Implements detection, routing, installation, and marker handling.
app/services/highlighter/constants.ts Adds Replay URLs, names, protocols, and marker constants.
app/i18n/en-US/highlighter.json Adds migration-flow strings.
app/components-react/pages/Highlighter.tsx Changes the default Highlighter view.
app/components-react/highlighter/SettingsView.tsx Waits for Replay detection before rendering.
app/components-react/highlighter/migration/useInstallState.ts Tracks Replay versus legacy Highlighter.
app/components-react/highlighter/migration/PageInstallationFlow.tsx Adapts page CTAs to the detected app.
app/components-react/highlighter/migration/ModalInstallationFlow.tsx Adapts modal copy and retry metadata.
app/components-react/highlighter/migration/MigrationNotice.tsx Passes installation metadata through.
app/components-react/highlighter/migration/MigrationNotice.m.less Hides page content during app detection.
app/components-react/highlighter/ImportStream.tsx Routes imports and installer handoffs.
Review details

Suppressed comments (1)

app/components-react/highlighter/ImportStream.tsx:164

  • This second direct service call also becomes synchronous renderer IPC and can block form submission for both registry lookups. Await the async-return action proxy instead.
      const app = await HighlighterService.getInstalledHighlighterApp();
  • Files reviewed: 13/13 changed files
  • Comments generated: 7
  • Review effort level: Balanced

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

useEffect(() => {
HighlighterService.isStreamlabsReplayInstalled().then(installed => {
setReplayInstalled(installed);
HighlighterService.getInstalledHighlighterApp().then(app => {
Comment on lines +196 to +199
installOriginMetadata={
pendingImport
? { videoPath: pendingImport.filePath, game: pendingImport.game }
: undefined
Comment on lines +171 to +181
.app-detection {
width: 100%;
opacity: 0;
pointer-events: none;
transition: opacity 160ms ease;
}

.app-detection-ready {
opacity: 1;
pointer-events: auto;
}
initialViewState = { view: EHighlighterView.CLIPS, id: undefined };
} else {
initialViewState = { view: EHighlighterView.SETTINGS };
initialViewState = { view: EHighlighterView.STREAM };
Comment on lines +593 to +610
private getReplayInstallOriginMarkerPath(): string {
const isInside = (child: string, parent: string) => {
const relativePath = path.relative(parent, child);
return (
relativePath !== '' && !relativePath.startsWith('..') && !path.isAbsolute(relativePath)
);
};

const temp = remote.app.getPath('temp');
const home = remote.app.getPath('home');
const systemRoot = remote.process.env.SystemRoot ?? 'C:\\Windows';

if (!isInside(temp, home) || isInside(home, systemRoot)) {
throw new Error(`"${temp}" is not the desktop user's temp directory`);
}

return path.join(temp, REPLAY_INSTALL_ORIGIN_DIR_NAME, REPLAY_INSTALL_ORIGIN_FILE_NAME);
}
* Dev-only escape hatch for testing the install flow against a locally built Replay installer
* instead of the CDN one. Set HIGHLIGHTER_LOCAL_SETUP_PATH to the setup exe before launching, e.g.
*
* set "HIGHLIGHTER_LOCAL_SETUP_PATH=C:\path\to\Streamlabs Highlighter-0.0.16 Setup.exe"
* Extra hand-off data written into the install origin marker Replay reads on first run.
*
* Everything here is optional and best-effort: it describes what Desktop is about to ask Replay
* to do once the install finishes, so Replay launch the onboarding with more context.
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