Highlighter -> Replay rename - #6174
jankalthoefer wants to merge 17 commits into
Conversation
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>
BundleMonFiles updated (1)
Unchanged files (3)
Total files change +6.58KB +0.04% Final result: ✅ View report in BundleMon website ➡️ |
There was a problem hiding this comment.
🟡 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.
Co-authored-by: jankalthoefer <15123176+jankalthoefer@users.noreply.github.com>
|
|
No description provided.