From d813401ba85a7611ce96397b965375635e258d46 Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 4 Nov 2026 20:19:17 -0500 Subject: [PATCH 1/2] Fix agents not being found on the host (0.1.7-1) Stop the desktop from sending the sandbox's shell environment to the host server, which replaced the host PATH and hid Claude Code and Codex. Publish this packaging revision as 0.1.7-1. --- flatpak/com.t3tools.t3code.metainfo.xml | 6 +++ patches/0003-flatpak-host-environment.patch | 46 +++++++++++++++------ 2 files changed, 39 insertions(+), 13 deletions(-) diff --git a/flatpak/com.t3tools.t3code.metainfo.xml b/flatpak/com.t3tools.t3code.metainfo.xml index 966b9bf..3ea6bdf 100644 --- a/flatpak/com.t3tools.t3code.metainfo.xml +++ b/flatpak/com.t3tools.t3code.metainfo.xml @@ -19,6 +19,12 @@ com.t3tools.t3code.desktop https://t3.codes + + https://github.com/pingdotgg/t3code/releases/tag/v0.1.7 + +

Agents like Claude Code and Codex are found on your system again.

+
+
https://github.com/pingdotgg/t3code/releases/tag/v0.1.7 diff --git a/patches/0003-flatpak-host-environment.patch b/patches/0003-flatpak-host-environment.patch index fab663b..b9c007b 100644 --- a/patches/0003-flatpak-host-environment.patch +++ b/patches/0003-flatpak-host-environment.patch @@ -1,12 +1,12 @@ diff --git a/apps/desktop/src/shell/DesktopShellEnvironment.test.ts b/apps/desktop/src/shell/DesktopShellEnvironment.test.ts -index 124dbbeae8..3ad3a5dd3b 100644 +index 124dbbeae8..e85dfc7552 100644 --- a/apps/desktop/src/shell/DesktopShellEnvironment.test.ts +++ b/apps/desktop/src/shell/DesktopShellEnvironment.test.ts -@@ -163,6 +163,21 @@ function runShellEnvironment(input: { +@@ -163,6 +163,34 @@ function runShellEnvironment(input: { } describe("DesktopShellEnvironment", () => { -+ it.effect("leaves the Flatpak environment intact without starting a login shell", () => { ++ it.effect("leaves the Flatpak environment intact and publishes nothing to the host server", () => { + const env = { + FLATPAK_ID: "com.t3tools.t3code", + PATH: "/app/bin:/usr/bin", @@ -18,14 +18,27 @@ index 124dbbeae8..3ad3a5dd3b 100644 + handler: () => { + throw new Error("Flatpak desktop must not probe a host shell"); + }, -+ }).pipe(Effect.tap(() => Effect.sync(() => assert.equal(env.PATH, "/app/bin:/usr/bin")))); ++ use: (service) => ++ Effect.gen(function* () { ++ const prepared = yield* service.awaitDiscovery; ++ assert.isTrue(Option.isNone(yield* Stream.runHead(service.updates))); ++ return prepared; ++ }), ++ }).pipe( ++ Effect.tap((prepared) => ++ Effect.sync(() => { ++ assert.isFalse(prepared); ++ assert.equal(env.PATH, "/app/bin:/usr/bin"); ++ }), ++ ), ++ ); + }); + it.effect("does not wait for discovery when the cache is missing", () => Effect.gen(function* () { const started = yield* Deferred.make(); diff --git a/apps/desktop/src/shell/DesktopShellEnvironment.ts b/apps/desktop/src/shell/DesktopShellEnvironment.ts -index 37826f8ee5..4843080432 100644 +index 37826f8ee5..212ce6d148 100644 --- a/apps/desktop/src/shell/DesktopShellEnvironment.ts +++ b/apps/desktop/src/shell/DesktopShellEnvironment.ts @@ -22,6 +22,7 @@ import * as Stream from "effect/Stream"; @@ -36,14 +49,21 @@ index 37826f8ee5..4843080432 100644 import * as DesktopEnvironment from "../app/DesktopEnvironment.ts"; type EnvironmentPatch = Record; -@@ -529,6 +530,7 @@ const installShellEnvironment = ( - never, - ChildProcessSpawner.ChildProcessSpawner | FileSystem.FileSystem - > => { -+ if (flatpakAppId(config.env, config.platform) !== null) return Effect.succeed(false); - if (config.platform === "win32") { - return installWindowsEnvironment(config); - } +@@ -563,6 +564,14 @@ const CACHED_ENV_NAMES = [ + /** @public */ + export const make = Effect.gen(function* () { + const environment = yield* DesktopEnvironment.DesktopEnvironment; ++ // The host server discovers its own environment; publishing the sandbox's would replace it. ++ if (flatpakAppId(process.env, environment.platform) !== null) { ++ return DesktopShellEnvironment.of({ ++ installIntoProcess: Effect.succeed(false), ++ awaitDiscovery: Effect.succeed(false), ++ updates: Stream.empty, ++ }); ++ } + const fileSystem = yield* FileSystem.FileSystem; + const path = yield* Path.Path; + const spawner = yield* ChildProcessSpawner.ChildProcessSpawner; diff --git a/apps/desktop/src/updates/DesktopUpdates.test.ts b/apps/desktop/src/updates/DesktopUpdates.test.ts index 3b45d80bbc..cc2cc4c537 100644 --- a/apps/desktop/src/updates/DesktopUpdates.test.ts From 6489d42793d6bbda7e3bf3726760d60835c1ca1f Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 4 Nov 2026 20:22:26 -0500 Subject: [PATCH 2/2] Clarify 0.1.7-1 release note --- flatpak/com.t3tools.t3code.metainfo.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flatpak/com.t3tools.t3code.metainfo.xml b/flatpak/com.t3tools.t3code.metainfo.xml index 3ea6bdf..b14ebef 100644 --- a/flatpak/com.t3tools.t3code.metainfo.xml +++ b/flatpak/com.t3tools.t3code.metainfo.xml @@ -22,7 +22,8 @@ https://github.com/pingdotgg/t3code/releases/tag/v0.1.7 -

Agents like Claude Code and Codex are found on your system again.

+

Fix the Flatpak sandbox PATH overwriting the host server's PATH, which + stopped agents like Claude Code and Codex from being detected.