Skip to content

Highlighter -> Replay rename - #6174

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

jankalthoefer wants to merge 17 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.58KB +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.58KB +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.

Comment thread app/components-react/highlighter/ImportStream.tsx Outdated
Comment thread app/components-react/highlighter/ImportStream.tsx
Comment thread app/components-react/highlighter/migration/MigrationNotice.m.less
Comment thread app/components-react/pages/Highlighter.tsx
Comment thread app/services/highlighter/index.ts
Comment thread app/services/highlighter/index.ts
Comment thread app/services/highlighter/models/highlighter.models.ts
Comment thread app/components-react/highlighter/migration/PageInstallationFlow.tsx Outdated
Comment thread app/components-react/highlighter/migration/PageInstallationFlow.tsx Outdated
Co-authored-by: jankalthoefer <15123176+jankalthoefer@users.noreply.github.com>
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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.

5 participants