@devries-cameron20 / t3code-1 / commits / 4db50757c0
Fork 0

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

fix(mobile): explain iOS-only settings on Android (#4981)

Daniel Vernon committed Aug 15, 2026 at 13:00 UTC 4db50757c0b618293997a7f81bcfe30b68356969
4 files changed +40 -1
apps/mobile/src/features/settings/SettingsRouteScreen.logic.test.ts new
+19
@@ -0,0 +1,19 @@
1 +import { describe, expect, it } from "vite-plus/test";
2 +
3 +import { resolveAgentAwarenessPlatformPresentation } from "./SettingsRouteScreen.logic";
4 +
5 +describe("resolveAgentAwarenessPlatformPresentation", () => {
6 + it("explains that agent awareness settings are unavailable on Android", () => {
7 + expect(resolveAgentAwarenessPlatformPresentation("android")).toEqual({
8 + supported: false,
9 + subtitle: "iOS only",
10 + });
11 + });
12 +
13 + it("leaves supported iOS settings unchanged", () => {
14 + expect(resolveAgentAwarenessPlatformPresentation("ios")).toEqual({
15 + supported: true,
16 + subtitle: undefined,
17 + });
18 + });
19 +});
apps/mobile/src/features/settings/SettingsRouteScreen.logic.ts new
+8
@@ -0,0 +1,8 @@
1 +export function resolveAgentAwarenessPlatformPresentation(platform: string): {
2 + readonly supported: boolean;
3 + readonly subtitle: string | undefined;
4 +} {
5 + return platform === "ios"
6 + ? { supported: true, subtitle: undefined }
7 + : { supported: false, subtitle: "iOS only" };
8 +}
apps/mobile/src/features/settings/SettingsRouteScreen.tsx
+6
@@ -46,6 +46,7 @@ import { useSavedRemoteConnections } from "../../state/use-remote-environment-re
46 import { SettingsRow } from "./components/SettingsRow";
47 import { SettingsSection } from "./components/SettingsSection";
48 import { SettingsSwitchRow } from "./components/SettingsSwitchRow";
49 +import { resolveAgentAwarenessPlatformPresentation } from "./SettingsRouteScreen.logic";
50
51 type NotificationStatus = "checking" | "enabled" | "disabled" | "unsupported";
52 type LiveActivityStatus = "checking" | "enabled" | "disabled" | "signed-out" | "linking";
@@ -144,6 +145,7 @@ function ConfiguredSettingsRouteScreen() {
145 const preferencesResult = useAtomValue(mobilePreferencesAtom);
146 const savePreferences = useAtomSet(updateMobilePreferencesAtom);
147 const agentAwarenessPushAvailable = supportsAgentAwarenessPush();
148 + const agentAwarenessPlatform = resolveAgentAwarenessPlatformPresentation(Platform.OS);
149 const insets = useSafeAreaInsets();
150 const navigation = useNavigation();
151 const { getToken, isLoaded, isSignedIn } = useAuth({ treatPendingAsSignedOut: false });
@@ -473,10 +475,12 @@ function ConfiguredSettingsRouteScreen() {
475 icon="bell.badge"
476 label="Device Notifications"
477 disabled={
478 + !agentAwarenessPlatform.supported ||
479 !agentAwarenessPushAvailable ||
480 notificationStatus === "checking" ||
481 notificationStatus === "unsupported"
482 }
483 + subtitle={agentAwarenessPlatform.subtitle}
484 // Only reads as on when this device is actually registered with the
485 // relay; otherwise notifications cannot be delivered regardless of
486 // the local iOS permission.
@@ -487,6 +491,7 @@ function ConfiguredSettingsRouteScreen() {
491 />
492 <SettingsSwitchRow
493 disabled={
494 + !agentAwarenessPlatform.supported ||
495 !agentAwarenessPushAvailable ||
496 !isLoaded ||
497 liveActivityStatus === "checking" ||
@@ -494,6 +499,7 @@ function ConfiguredSettingsRouteScreen() {
499 }
500 icon="bolt.circle"
501 label="Live Activity Updates"
502 + subtitle={agentAwarenessPlatform.subtitle}
503 // Same gate: a saved preference is meaningless until the device
504 // registration the relay needs to push updates has succeeded.
505 value={
apps/mobile/src/features/settings/components/SettingsSwitchRow.tsx
+7 -1
@@ -11,6 +11,7 @@ export function SettingsSwitchRow(props: {
11 readonly disabled?: boolean;
12 readonly icon: SymbolName;
13 readonly label: string;
14 + readonly subtitle?: string;
15 readonly value: boolean;
16 readonly onValueChange: (value: boolean) => void;
17 }) {
@@ -27,7 +28,12 @@ export function SettingsSwitchRow(props: {
28 }
29 >
30 <SymbolView name={props.icon} size={22} tintColor={icon} type="monochrome" weight="regular" />
30 - <Text className="flex-1 text-lg text-foreground">{props.label}</Text>
31 + <View className="min-w-0 flex-1">
32 + <Text className="text-lg text-foreground">{props.label}</Text>
33 + {props.subtitle ? (
34 + <Text className="text-sm text-foreground-muted">{props.subtitle}</Text>
35 + ) : null}
36 + </View>
37 <Switch
38 disabled={props.disabled}
39 ios_backgroundColor={track}