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 24, 09:00 UTC
refactor(mobile): remove unused cloud relay URL normalizer (#10068)
Julius Marminge committed
Sep 5, 2026 at 01:54 UTC
ee150e178be5e0484a588a8fe7ad98fd6b858973
2 files changed
-16
apps/mobile/src/features/cloud/linkEnvironment.test.ts
-8
@@ -17,7 +17,6 @@ import {
17
connectCloudEnvironment,
18
listCloudEnvironments,
19
listCloudEnvironmentsWithStatus,
20
- normalizeRelayBaseUrl,
20
refreshCloudEnvironmentConnection,
21
} from "./linkEnvironment";
22
@@ -195,13 +194,6 @@ describe("mobile cloud link environment client", () => {
194
loadPreferences.mockClear();
195
});
196
198
- it("normalizes configured relay base URLs before building DPoP-bound requests", () => {
199
- expect(normalizeRelayBaseUrl(" https://relay.example.test/// ")).toBe(
200
- "https://relay.example.test",
201
- );
202
- expect(normalizeRelayBaseUrl(" ")).toBeNull();
203
- });
204
-
197
it("makes linked environments visible while their status is still loading", () => {
198
expect(cloudEnvironmentsPendingStatus([listedEnvironment("env-1")])).toMatchObject([
199
{
apps/mobile/src/features/cloud/linkEnvironment.ts
-8
@@ -43,14 +43,6 @@ const RELAY_STATUS_AND_CONNECT_SCOPES = [
43
RelayEnvironmentConnectScope,
44
] satisfies ReadonlyArray<RelayDpopAccessTokenScope>;
45
46
-export function normalizeRelayBaseUrl(value: string | null | undefined): string | null {
47
- const trimmed = value?.trim();
48
- if (!trimmed) {
49
- return null;
50
- }
51
- return trimmed.replace(/\/+$/g, "");
52
-}
53
-
46
function readRelayUrl(): string | null {
47
return resolveCloudPublicConfig().relay.url;
48
}