Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): the Tailscale HTTPS row says detection is off instead of telling users to start Tailscale #18758

MergedMnigos(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/18758/headmerged by juliusmarminge View on GitHub

Fixes #18753.

Problem

The desktop skips Tailscale detection while Network access is off. That is intentional since #2745, to avoid the macOS "Other apps" privacy prompt. The Tailscale HTTPS row in Settings → Connections read that skipped check as "Tailscale isn't running" and told users to "Start Tailscale" even when it was running.

Julius's triage on the issue: keep the skip, fix the copy so the row says why detection did not happen.

Change

ConnectionsSettings.logic.ts gets a small pure helper for the row's no-endpoint description. When detection was skipped (Network access off and Tailscale Serve not enabled), the row now says "Turn on Network access to detect Tailscale." Otherwise it keeps "Start Tailscale to set up HTTPS access through MagicDNS." The toggle stays hidden without an endpoint, as before; there is nothing to toggle yet. Both inputs already exist on DesktopServerExposureState, so no contract change.

The diff touches only the row's no-endpoint branch, so the overlap with #15027 (https://github.com/pingdotgg/t3code/pull/15027), which rewrites the same row's description and switch for #14746, is one line.

The row renders only on desktop (canManageLocalBackend && desktopBridge); web and mobile have no equivalent.

Verification

  • ConnectionsSettings.logic.test.ts: detection skipped → the new copy; network-accessible, or Serve enabled, with no endpoint → the existing copy. 20 pass; the new case fails on main.
  • Web typecheck, fmt and lint on the touched files, knip for apps/web: clean.

Real desktop client. Desktop dev build from this branch driven over the DevTools protocol (no cursor input), fresh state, Network access off, Tailscale Serve not enabled, Settings → Connections. Before is the same running app with main's version of the row hot-reloaded.

Before (main)After
Before: the Tailscale HTTPS row says Start Tailscale to set up HTTPS access through MagicDNSAfter: the Tailscale HTTPS row says Turn on Network access to detect Tailscale

Implemented with Claude Opus 5.5, verified with GPT-6 Astra, coordinated by Claude Fable 5.1 in Claude Code.

    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    2. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Approved at 98ac32a

      Macroscope's review found this PR approvable — This is a small, desktop-only settings copy fix using existing exposure state to distinguish skipped Tailscale detection from a completed negative result. It leaves probing, defaults, contracts, controls, and static-analysis configuration unchanged, with focused tests covering the new branches.

      Notes:

      • Diff unchanged. Approvability was decided on eligibility alone.
      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    3. juliusmarminge added labelsmacroscope-review

    4. Review in Change Stack →

      No actionable comments were generated in the recent review. 🎉

      ℹ️ Recent review info
      ⚙️ Run configuration
      • Configuration used: Path: .coderabbit.config.ts
      • Review profile: CHILL
      • Plan: Advanced
      • Run ID: 2b120ce3-b837-4df8-a82b-2615201c0b1f

      📥 Commits

      Reviewing files that changed from the base of the PR and between 9e552285bae9c9b0707e7ebeb77bf126f0c0a16b and 98ac32a381b485c28811f795086c075e38a26579.


      📒 Files selected for processing (3)
      • apps/web/src/components/settings/ConnectionsSettings.logic.test.ts
      • apps/web/src/components/settings/ConnectionsSettings.logic.ts
      • apps/web/src/components/settings/ConnectionsSettings.tsx

      Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.



      📝 Walkthrough

      Walkthrough

      The Tailscale HTTPS settings row now uses a description selected from the desktop server exposure state when no Tailscale endpoint exists. Tests cover the messages for local-only mode and for conditions that prompt users to start Tailscale.

      Changes

      Tailscale HTTPS description

      Layer / File(s)Summary
      Select and display the fallback description
      apps/web/src/components/settings/ConnectionsSettings.logic.ts, apps/web/src/components/settings/ConnectionsSettings.tsx, apps/web/src/components/settings/ConnectionsSettings.logic.test.ts
      The helper returns a Network access message when the state is present, the mode is not network-accessible, and Tailscale Serve is disabled. Otherwise, it returns a message to start Tailscale for MagicDNS HTTPS access. The settings row uses the helper when no Tailscale endpoint exists. Tests cover both messages.

      Priority: ⬇️ Low

      Estimated code review effort: 2 (Simple) | ~10 minutes

      Change: Bug fix · Severity of issue fixed: Low

      Suggested reviewers: juliusmarminge


      Merge Risk: ⚪ Minimal · up to 98ac3

      The fallback message matches the Network access state users see and the action available in settings; no unresolved merge risk remains.

      Pre-merge checks | Passed 4
      ✅ Passed checks (4 passed)
      Check nameStatusExplanation
      Title checkPassedThe title clearly and concisely describes the main change: correcting the Tailscale HTTPS row message when detection is skipped. It follows the repository's conventional commit format.
      Description checkPassedThe description covers the problem, expected behavior, implementation, issue reference, scope, focused verification, manual desktop evidence, and agent attribution. It does not include a separate Scop…
      Linked Issues checkPassedThe PR meets the coding objective in #18753. missingTailscaleEndpointDescription returns "Turn on Network access to detect Tailscale." when the desktop probe is skipped (mode is not `network-acces…
      Out of Scope Changes checkPassedThe reported changes stay within #18753. They add the required pure helper, connect it to the Tailscale HTTPS row, and add focused tests for the new and retained messages. No unrelated product behavio…

      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create a new PR

      • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

      Comment `@coderabbitai help` to get the list of available commands.
    5. juliusmarminge merged this784bad1

    6. juliusmarminge closed this

Sign in to join this conversation.