@devries-cameron20 / t3code Mirror · read-only / commits / 5318d054a5
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 23, 20:30 UTC

fix(web): show device diagnostics before hub readiness (#15435)

maria committed Oct 4, 2026 at 08:20 UTC 5318d054a5eabf85308a086e2fdbef5b6cdfd0ee
2 files changed +14 -3
apps/web/src/components/device/DeviceSetup.tsx
+5 -2
@@ -63,6 +63,9 @@ export function DeviceSetup(props: {
63 const [step, setStep] = useState(0);
64 const enabled = props.state.hostStatus !== "disabled";
65 const busy = props.state.hostStatus === "installing" || props.state.hostStatus === "starting";
66 + const localPlatformsUnavailable = props.state.hosts.some(
67 + (host) => host.kind === "local" && !host.platforms.some((platform) => platform.available),
68 + );
69
70 const update = async (
71 kind: NonNullable<typeof pending>,
@@ -117,8 +120,8 @@ export function DeviceSetup(props: {
120 </section>
121 ) : null}
122
120 - {step === 1 ? (
121 - <section className="space-y-3 text-sm">
123 + {step === 1 || (step === 0 && enabled && localPlatformsUnavailable) ? (
124 + <section className={cn("space-y-3 text-sm", step === 0 && "mt-4")}>
125 <h3 className="font-medium">Check simulator support</h3>
126 <DevicePlatformSetup
127 state={props.state}
apps/web/src/components/settings/IntegrationsSettings.tsx
+9 -1
@@ -646,10 +646,18 @@ function DeviceIntegrationControls({
646 "hub" | "check" | "agent" | "update-hub" | "update-agent" | null
647 >(null);
648 const busy = state.hostStatus === "installing" || state.hostStatus === "starting";
649 + const localPlatformsUnavailable = state.hosts.some(
650 + (host) => host.kind === "local" && !host.platforms.some((platform) => platform.available),
651 + );
652 const [platformsRevealed, setPlatformsRevealed] = useState(false);
653 // Keep diagnostics visible through subsequent agent setup and refresh phases.
654 if (platformsRevealed && !enabled) setPlatformsRevealed(false);
652 - if (enabled && !platformsRevealed && state.hostStatus === "ready" && pending !== "hub") {
655 + if (
656 + enabled &&
657 + !platformsRevealed &&
658 + (state.hostStatus === "ready" || localPlatformsUnavailable) &&
659 + pending !== "hub"
660 + ) {
661 setPlatformsRevealed(true);
662 }
663