@devries-cameron20 / t3code Mirror · read-only / commits / 1782a2af44
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 24, 10:15 UTC

refactor(client-runtime): remove unused connection phase message (#9972)

Julius Marminge committed Sep 5, 2026 at 00:09 UTC 1782a2af44a7630f184a05dbcf788e6121da2554
2 files changed +1 -28
packages/client-runtime/src/connection/presentation.test.ts
-5
@@ -10,7 +10,6 @@ import {
10 } from "./model.ts";
11 import {
12 connectionCatalogDisplayUrl,
13 - connectionPhaseMessage,
13 connectionStatusText,
14 connectionStatusTitle,
15 presentEnvironmentConnection,
@@ -119,10 +118,6 @@ describe("connection presentation", () => {
118 });
119 });
120
122 - it("gives offline status precedence in global messaging", () => {
123 - expect(connectionPhaseMessage("connected", TARGET.label, "offline")).toBe("You are offline");
124 - });
125 -
121 it("combines reconnect progress with the latest failure", () => {
122 const connection = {
123 phase: "reconnecting",
packages/client-runtime/src/connection/presentation.ts
+1 -23
@@ -2,7 +2,7 @@ import type { ServerConfig } from "@t3tools/contracts";
2 import * as Option from "effect/Option";
3
4 import type { ConnectionCatalogEntry } from "./catalog.ts";
5 -import type { NetworkStatus, SupervisorConnectionState } from "./model.ts";
5 +import type { SupervisorConnectionState } from "./model.ts";
6
7 export type EnvironmentConnectionPhase =
8 | "available"
@@ -105,25 +105,3 @@ export function connectionCatalogDisplayUrl(entry: ConnectionCatalogEntry): stri
105 : null;
106 }
107 }
108 -
109 -export function connectionPhaseMessage(
110 - phase: EnvironmentConnectionPhase,
111 - label: string,
112 - networkStatus: NetworkStatus,
113 -): string {
114 - if (networkStatus === "offline" || phase === "offline") {
115 - return "You are offline";
116 - }
117 - switch (phase) {
118 - case "available":
119 - return "Available";
120 - case "connecting":
121 - return `Connecting to ${label}...`;
122 - case "reconnecting":
123 - return `Reconnecting to ${label}...`;
124 - case "connected":
125 - return "Connected";
126 - case "error":
127 - return "Connection failed";
128 - }
129 -}