Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(desktop): surface Tailscale Serve failures and fix AppImage restarts on Linux #4698

ClosedGenKerensky(GitHub profile, opens in a new tab)wants to merge 24 commits intomain fromrefs/pull/4698/headopened View on GitHub

Showing 27 changed files with 174 additions and 0 deletions (loading 24).

x
0 of 27 viewed, 27 left
1 addition and 0 deletionsapps/desktop/src/app/DesktopAppIdentity.test.tsModified
View file
@@ -56,6 +56,7 @@
setAppUserModelId: () => Effect.void,
requestSingleInstanceLock: Effect.succeed(true),
getAppMetrics: Effect.succeed([]),
+ releaseSingleInstanceLock: Effect.void,
isDefaultProtocolClient: () => Effect.succeed(false),
setAsDefaultProtocolClient: () => Effect.succeed(true),
setDesktopName: () => Effect.void,
172 additions and 0 deletionsapps/desktop/src/app/DesktopLifecycle.relaunch.test.tsAdded
View file
@@ -0,0 +1,172 @@
+// @effect-diagnostics nodeBuiltinImport:off - Skip predicate runs at collection time, outside any Effect runtime.
+import * as NodeFS from "node:fs";
+​
+import { assert, describe, it } from "@effect/vitest";
+import * as Effect from "effect/Effect";
+​
+import {
+ buildAppImageRelaunchShellCommand,
+ posixShellSingleQuote,
+ resolveDesktopRelaunchPlan,
+} from "./resolveDesktopRelaunchOptions.ts";
+import { scheduleAppImageRelaunch } from "./scheduleAppImageRelaunch.ts";
+​
+describe("resolveDesktopRelaunchPlan", () => {
+ it.effect("schedules a delayed AppImage re-exec with flag argv only", () =>
+ Effect.sync(() => {
+ const plan = resolveDesktopRelaunchPlan({
+ appImagePath: "/home/user/T3-Code-0.0.28-x86_64.AppImage",