Skip to content

feat(web): show notice instead of app in Tesla in-car browsers - #8032

Open
abcdmku wants to merge 2 commits into
pingdotgg:mainfrom
abcdmku:tesla-ua-notice
Open

feat(web): show notice instead of app in Tesla in-car browsers#8032
abcdmku wants to merge 2 commits into
pingdotgg:mainfrom
abcdmku:tesla-ua-notice

Conversation

@abcdmku

@abcdmku abcdmku commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Detect Tesla in-car browser user agents (Tesla/<version> token; QtCarBrowser on older Model S/X) in the web entry point
  • When detected, render only the text "T3 Code does not endorse this behavior" instead of the app

Test plan

  • npm run typecheck in apps/web passes
  • Spoof UA containing Tesla/2024.x and load the web UI: only the notice renders
  • Normal browsers and Electron are unaffected (UA does not match)

Screenshots

Before (normal browser)

Before: app boots normally

After (Tesla in-car UA)

After: only the notice renders

🤖 Generated with Claude Code


Note

Low Risk
Small client-side UA gate at bootstrap only; no auth, data, or API changes. False positives would hide the app for matching UAs.

Overview
Tesla in-car browsers no longer boot the web app. main.tsx matches Tesla/ or QtCarBrowser in the user agent and renders a centered “T3 Code does not endorse this behavior” message instead of Clerk, auth, and AppRoot. Other browsers and Electron are unchanged.

Reviewed by Cursor Bugbot for commit a231dfb. Bugbot is set up for automated code reviews on this repo. Configure here.

Note

Show static notice instead of app for Tesla browsers in main.tsx

  • Adds isTeslaCarBrowser detection by testing navigator.userAgent against /Tesla\/|QtCarBrowser/
  • Updates the ReactDOM.createRoot bootstrap in main.tsx to render a centered static message div when the Tesla browser is detected
  • Behavioral Change: Tesla in-car browsers bypass React.StrictMode and Clerk/ElectronClerk providers, receiving a static message instead of mounting the full application

Macroscope summarized a231dfb.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Aug 23, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 315ac8be-0c56-406b-9d24-4e56e6ee5769

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added vouch:unvouched PR author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Aug 23, 2026

@macroscopeapp macroscopeapp Bot 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.

One finding: the new Tesla gate renders an unstyled bare text node as the entire app UI, bypassing the app's full-screen surface and theme tokens. Details inline.

Posted via Macroscope — UI Consistency

Comment thread apps/web/src/main.tsx

@macroscopeapp macroscopeapp Bot 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.

One consistency finding: the Tesla gate renders a bare text node as the entire app UI, bypassing the app's full-screen notice pattern and theme tokens.

Posted via Macroscope — UI Consistency

Comment thread apps/web/src/main.tsx Outdated
@macroscopeapp

macroscopeapp Bot commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Not approved

Macroscope's review found this PR not approvable — This PR adds a new user-agent-based runtime branch that replaces the application and authentication-provider tree with a Tesla-specific notice. Although the diff is small and isolated, it changes the user-facing entry path and gates the main workflow for detected browsers.

You can add or adjust custom eligibility rules. Learn more.

@github-actions github-actions Bot added size:S 10-29 changed lines (additions + deletions). and removed size:XS 0-9 changed lines (additions + deletions). labels Aug 23, 2026
abcdmku and others added 2 commits August 23, 2026 16:01
Detects the Tesla/<version> UA token (QtCarBrowser on older models)
and renders only "T3 Code does not endorse this behavior".

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Review feedback: the bare text node bypassed the boot surface and theme
tokens. Wrap the notice in the standard full-screen centered container
using bg-background/text-foreground.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@PiquelChips

Copy link
Copy Markdown

Well that's not very fun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S 10-29 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants