@devries-cameron20 / t3code-1 / commits / 37bf4e6ec4
Fork 0

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

refactor(mobile): remove unused awareness relay URL normalizer (#10029)

Julius Marminge committed Sep 5, 2026 at 01:19 UTC 37bf4e6ec4f18fb94e7ec04436a947d14642a5b6
2 files changed -18
apps/mobile/src/features/agent-awareness/remoteRegistration.test.ts
-8
@@ -33,7 +33,6 @@ import {
33 mergeAgentAwarenessRegistrationPreferences,
34 refreshActiveLiveActivityRemoteRegistration,
35 refreshAgentAwarenessRegistration,
36 - normalizeAgentAwarenessRelayBaseUrl,
36 registerAgentAwarenessConnection,
37 registerLiveActivityPushToken,
38 releaseAgentAwarenessRelayTokenProvider,
@@ -363,13 +362,6 @@ describe("makeRelayDeviceRegistrationRequest", () => {
362 });
363 });
364
366 - it("normalizes relay base URLs for APNs registration requests", () => {
367 - expect(normalizeAgentAwarenessRelayBaseUrl(" https://relay.example.test/// ")).toBe(
368 - "https://relay.example.test",
369 - );
370 - expect(normalizeAgentAwarenessRelayBaseUrl(" ")).toBeNull();
371 - });
372 -
365 it("overrides persisted preferences for an in-flight registration", () => {
366 expect(
367 mergeAgentAwarenessRegistrationPreferences(
apps/mobile/src/features/agent-awareness/remoteRegistration.ts
-10
@@ -139,16 +139,6 @@ export function mergeAgentAwarenessRegistrationPreferences(
139 return { ...stored, ...override };
140 }
141
142 -export function normalizeAgentAwarenessRelayBaseUrl(
143 - value: string | null | undefined,
144 -): string | null {
145 - const trimmed = value?.trim();
146 - if (!trimmed) {
147 - return null;
148 - }
149 - return trimmed.replace(/\/+$/g, "");
150 -}
151 -
142 function readRelayConfig(): { readonly url: string } | null {
143 const relayUrl = resolveCloudPublicConfig().relay.url;
144 if (!relayUrl) {