t3code icon indicating copy to clipboard operation
t3code copied to clipboard

fix(web): clarify update track mismatch guidance

Open joshfcc opened this issue 4 months ago • 2 comments

Problem

Hosted web uses Latest while the desktop app calls the corresponding release track Stable. When versions drift, the existing message only says to update the desktop app, which can make a correct track pairing look like a bad update.

Fix

  • Explain that hosted Latest corresponds to Desktop Stable.
  • Explain that hosted Nightly corresponds to Desktop Nightly.
  • Use the same guidance in the chat warning, remote environment action, and both About variants.
  • Preserve the existing generic guidance for local and non-hosted clients.

Screenshots

Before

Hosted web update track description before

After

Hosted web update track description after

Testing

  • pnpm exec vp test run src/versionSkew.test.ts src/components/ServerUpdateAction.test.tsx --project unit
  • pnpm --filter @t3tools/web typecheck
  • Targeted formatting and lint on the five changed files
  • Isolated browser pass on the hosted Nightly settings surface

Built with GPT-5.6-Sol through the Codex harness in T3 Code.


[!NOTE] Low Risk User-facing strings and tests only; no auth, data, or server update behavior changes.

Overview When hosted web and a desktop-managed server disagree on version, users now see channel-aware guidance instead of only “update the desktop app,” so a correct Latest ↔ Stable or Nightly ↔ Nightly pairing is not mistaken for a bad update.

versionSkew adds shared copy constants and resolveDesktopManagedUpdateGuidance, and serverUpdateGuidance takes an optional hosted channel. Chat version-mismatch text, ServerUpdateAction hints, and About update-track descriptions all use the same mapping.

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

[!NOTE]

Clarify update track mismatch guidance based on hosted app channel

  • Adds resolveDesktopManagedUpdateGuidance in versionSkew.ts to return channel-aware guidance strings for desktop-managed servers, differentiating nightly vs latest hosted app channels.
  • Extends serverUpdateGuidance to accept an optional hostedAppChannel parameter and delegates to the new resolver for the desktop-managed capability.
  • Updates ChatViewContent and ServerUpdateAction to pass HOSTED_APP_CHANNEL into the guidance functions so displayed text reflects the actual channel.
  • Replaces inline description strings in the 'Update track' settings row with exported constants DESKTOP_UPDATE_TRACK_DESCRIPTION and HOSTED_UPDATE_TRACK_DESCRIPTION.

Macroscope summarized cedaae7.

joshfcc avatar Jul 30 '26 01:07 joshfcc

[!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: ce438133-39ca-4ad9-8d19-12728c252a1f

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.

coderabbitai[bot] avatar Jul 30 '26 01:07 coderabbitai[bot]

Approvability

Verdict: Approved cedaae7

This PR adds clarifying copy/text for update track mismatch guidance, with a simple function that returns appropriate guidance strings based on channel type. The changes are purely user-facing text improvements with no behavioral impact, and include comprehensive tests.

You can customize Macroscope's approvability policy. Learn more.

macroscopeapp[bot] avatar Jul 30 '26 02:07 macroscopeapp[bot]