@devries-cameron20 / t3code Mirror · read-only / commits / 952921f39a
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, 03:00 UTC

fix(tailscale): a slow tailscale status no longer hides Tailscale in Settings (#21057)

Dara Adedeji committed Oct 18, 2026 at 19:29 UTC 952921f39acd7793187e2b14650f1cbc447f483d
2 files changed +9 -3
packages/tailscale/src/tailscale.test.ts
+2 -2
@@ -323,9 +323,9 @@ describe("tailscale", () => {
323 assert.equal(error.executable, "tailscale");
324 assert.equal(error.subcommand, "status");
325 assert.equal(error.argumentCount, 2);
326 - assert.equal(error.timeoutMs, 1_500);
326 + assert.equal(error.timeoutMs, 3_500);
327 assert.isTrue(Cause.isTimeoutError(error.cause));
328 - assert.equal(error.message, "tailscale status timed out after 1500ms.");
328 + assert.equal(error.message, "tailscale status timed out after 3500ms.");
329 }).pipe(Effect.provide(layer));
330 });
331
packages/tailscale/src/tailscale.ts
+7 -1
@@ -8,7 +8,13 @@ import { HttpClient, HttpClientRequest } from "effect/http";
8 import { ChildProcess, ChildProcessSpawner } from "effect/process";
9
10 export const DEFAULT_TAILSCALE_SERVE_PORT = 443;
11 -export const TAILSCALE_STATUS_TIMEOUT = Duration.millis(1_500);
11 +/**
12 + * Bounds `tailscale status` and `tailscale debug prefs`. Allows the 1.8-2.6 s
13 + * `tailscale status` has been measured at when T3 Code spawns it on Windows.
14 + * A CLI that never answers takes longer than this to fail, because the kill
15 + * that follows the timeout also takes time (`taskkill` on Windows).
16 + */
17 +export const TAILSCALE_STATUS_TIMEOUT = Duration.millis(3_500);
18 const TAILSCALE_SERVE_TIMEOUT = Duration.seconds(10);
19 const TAILSCALE_PROBE_TIMEOUT = Duration.millis(2_500);
20