From df59ffe8be1f9d0729d570246e9a827be40fc921 Mon Sep 17 00:00:00 2001
From: TB516 <77514919+TB516@users.noreply.github.com>
Date: Wed, 11 Nov 2026 17:14:11 +0000
Subject: [PATCH 1/3] chore(flatpak): update T3 Code to v0.1.9
---
flatpak/com.t3tools.t3code.metainfo.xml | 4 ++++
flatpak/modules/t3code.yml | 4 ++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/flatpak/com.t3tools.t3code.metainfo.xml b/flatpak/com.t3tools.t3code.metainfo.xml
index 76a6ca3..8e9e40a 100644
--- a/flatpak/com.t3tools.t3code.metainfo.xml
+++ b/flatpak/com.t3tools.t3code.metainfo.xml
@@ -19,6 +19,10 @@
com.t3tools.t3code.desktop
https://t3.codes
+
+ https://github.com/pingdotgg/t3code/releases/tag/v0.1.9
+
+
https://github.com/pingdotgg/t3code/releases/tag/v0.1.8
diff --git a/flatpak/modules/t3code.yml b/flatpak/modules/t3code.yml
index 2dd64e2..4b3244d 100644
--- a/flatpak/modules/t3code.yml
+++ b/flatpak/modules/t3code.yml
@@ -66,8 +66,8 @@ test-commands:
sources:
- type: git
url: https://github.com/pingdotgg/t3code.git
- tag: v0.1.8
- commit: bf469bb19669671d0df2efda74ed73867a7137c0
+ tag: v0.1.9
+ commit: 24e77473ecf41bc1f7142529c7911c1c1aae1d76
x-checker-data:
type: json
url: https://api.github.com/repos/pingdotgg/t3code/releases/latest
From 5bb691a8199344708157922f859dd756819eb051 Mon Sep 17 00:00:00 2001
From: Thomas
Date: Wed, 11 Nov 2026 18:36:04 -0500
Subject: [PATCH 2/3] chore(flatpak): refresh patches for T3 Code v0.1.9
---
patches/0003-flatpak-host-environment.patch | 16 ++++----
.../0006-flatpak-document-portal-paths.patch | 12 ++++--
patches/0007-flatpak-editor-discovery.patch | 38 ++++++-------------
patches/0009-flatpak-server-updates.patch | 14 +++----
.../0010-flatpak-browser-requirements.patch | 4 +-
patches/0011-flatpak-legacy-database.patch | 6 +--
patches/0012-flatpak-update-channel.patch | 16 ++++----
7 files changed, 49 insertions(+), 57 deletions(-)
diff --git a/patches/0003-flatpak-host-environment.patch b/patches/0003-flatpak-host-environment.patch
index 8155141..930d734 100644
--- a/patches/0003-flatpak-host-environment.patch
+++ b/patches/0003-flatpak-host-environment.patch
@@ -69,17 +69,19 @@ index 9d9e390c95..0f4e738aba 100644
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
+index 604fbeda3c..1b14a0497b 100644
--- a/apps/desktop/src/updates/DesktopUpdates.test.ts
+++ b/apps/desktop/src/updates/DesktopUpdates.test.ts
-@@ -1,4 +1,4 @@
+@@ -1,6 +1,6 @@
+ import * as NodeModule from "node:module";
+
-import { assert, describe, it } from "@effect/vitest";
+import { assert, describe, it, vi } from "@effect/vitest";
import { DESKTOP_UPDATE_RESTART_MARKER_FILE } from "@t3tools/contracts";
+ import { computeReleaseNotes } from "electron-updater/out/providers/GitHubProvider.js";
import * as Cause from "effect/Cause";
- import * as Deferred from "effect/Deferred";
-@@ -23,6 +23,28 @@ import * as DesktopUpdates from "./DesktopUpdates.ts";
- import { flushCallbacks, makeHarness } from "./updatesTestHarness.ts";
+@@ -77,6 +77,28 @@ const stableUpdateInfo = (
+ };
describe("DesktopUpdates", () => {
+ it.effect("leaves updates to Flatpak even when an update feed is configured", () => {
@@ -108,7 +110,7 @@ index 3b45d80bbc..cc2cc4c537 100644
Effect.gen(function* () {
const linuxState = (packageType: string | undefined) =>
diff --git a/apps/desktop/src/updates/DesktopUpdates.ts b/apps/desktop/src/updates/DesktopUpdates.ts
-index 14688e5258..81ee76338d 100644
+index 36492ca7b9..75ef423a27 100644
--- a/apps/desktop/src/updates/DesktopUpdates.ts
+++ b/apps/desktop/src/updates/DesktopUpdates.ts
@@ -1,3 +1,4 @@
@@ -116,7 +118,7 @@ index 14688e5258..81ee76338d 100644
import {
DESKTOP_UPDATE_RESTART_MARKER_FILE,
DesktopUpdateChannelSchema,
-@@ -339,6 +340,9 @@ function getAutoUpdateDisabledReason(args: {
+@@ -343,6 +344,9 @@ function getAutoUpdateDisabledReason(args: {
disabledByEnv: boolean;
hasUpdateFeedConfig: boolean;
}): string | null {
diff --git a/patches/0006-flatpak-document-portal-paths.patch b/patches/0006-flatpak-document-portal-paths.patch
index cbc73e1..6fbf07a 100644
--- a/patches/0006-flatpak-document-portal-paths.patch
+++ b/patches/0006-flatpak-document-portal-paths.patch
@@ -213,10 +213,10 @@ index 4f9ab12edd..8390ff5c88 100644
pickFiles: Effect.fn("desktop.electron.dialog.pickFiles")(function* (input) {
const ownerWindowId = Option.match(input.owner, {
diff --git a/apps/desktop/src/ipc/DesktopIpc.ts b/apps/desktop/src/ipc/DesktopIpc.ts
-index 354acc5a81..e8e89d9502 100644
+index 69d4f70c15..34ba9342ed 100644
--- a/apps/desktop/src/ipc/DesktopIpc.ts
+++ b/apps/desktop/src/ipc/DesktopIpc.ts
-@@ -17,7 +17,7 @@ export type DesktopIpcHandleListener = (
+@@ -23,7 +23,7 @@ export type DesktopIpcHandleListener = (
raw: unknown,
) => unknown | Promise;
@@ -225,7 +225,7 @@ index 354acc5a81..e8e89d9502 100644
export interface DesktopIpcMain {
removeHandler(channel: string): void;
-@@ -65,7 +65,7 @@ export interface DesktopIpcMethod {
+@@ -80,7 +80,7 @@ export interface DesktopIpcMethod {
export interface DesktopSyncIpcMethod {
readonly channel: string;
@@ -234,7 +234,7 @@ index 354acc5a81..e8e89d9502 100644
}
export class DesktopIpc extends Context.Service<
-@@ -127,11 +127,11 @@ export const make = (ipcMain: DesktopIpcMain): DesktopIpc["Service"] =>
+@@ -149,7 +149,7 @@ export const make = (
Effect.try({
try: () => {
ipcMain.removeAllListeners(channel);
@@ -243,6 +243,10 @@ index 354acc5a81..e8e89d9502 100644
event.returnValue = runSync(
Effect.gen(function* () {
yield* Effect.annotateCurrentSpan({ channel });
+@@ -158,7 +158,7 @@ export const make = (
+ yield* Effect.logWarning("Rejected sync IPC from an untrusted sender.");
+ return undefined;
+ }
- return yield* handler();
+ return yield* handler(payload);
}).pipe(
diff --git a/patches/0007-flatpak-editor-discovery.patch b/patches/0007-flatpak-editor-discovery.patch
index 8600f02..20e46e7 100644
--- a/patches/0007-flatpak-editor-discovery.patch
+++ b/patches/0007-flatpak-editor-discovery.patch
@@ -1,8 +1,8 @@
diff --git a/apps/server/src/process/externalLauncher.test.ts b/apps/server/src/process/externalLauncher.test.ts
-index 9f975ee209..0ae8ece943 100644
+index f59b6a6187..c537ecf929 100644
--- a/apps/server/src/process/externalLauncher.test.ts
+++ b/apps/server/src/process/externalLauncher.test.ts
-@@ -257,6 +257,55 @@ it.effect("launches an installed editor with platform-safe arguments", () =>
+@@ -290,6 +290,55 @@ it.effect("launches an installed editor with platform-safe arguments", () =>
}).pipe(Effect.scoped, Effect.provide(NodeServices.layer)),
);
@@ -59,10 +59,10 @@ index 9f975ee209..0ae8ece943 100644
"reveals a WSL file in Windows File Explorer through its UNC path",
() =>
diff --git a/apps/server/src/process/externalLauncher.ts b/apps/server/src/process/externalLauncher.ts
-index 7f4417d1fb..8ec3c6a3e5 100644
+index b900823f16..2dc12717ce 100644
--- a/apps/server/src/process/externalLauncher.ts
+++ b/apps/server/src/process/externalLauncher.ts
-@@ -122,6 +122,67 @@ const CommandLookupEnvConfig = Config.all({
+@@ -123,6 +123,67 @@ const CommandLookupEnvConfig = Config.all({
const readBrowserLaunchEnv = BrowserLaunchEnvConfig.pipe(Effect.orElseSucceed(() => ({})));
const readCommandLookupEnv = CommandLookupEnvConfig.pipe(Effect.orElseSucceed(() => ({})));
@@ -130,7 +130,7 @@ index 7f4417d1fb..8ec3c6a3e5 100644
function parseTargetPathAndPosition(target: string): Option.Option {
const match = TARGET_WITH_POSITION_PATTERN.exec(target);
if (!match?.[1] || !match[2]) {
-@@ -403,6 +464,7 @@ const buildAvailableEditors = Effect.fn("externalLauncher.buildAvailableEditors"
+@@ -404,6 +465,7 @@ const buildAvailableEditors = Effect.fn("externalLauncher.buildAvailableEditors"
FileSystem.FileSystem | Path.Path | ChildProcessSpawner.ChildProcessSpawner
> {
const available: EditorId[] = [];
@@ -138,7 +138,7 @@ index 7f4417d1fb..8ec3c6a3e5 100644
for (const editor of EDITORS) {
if (editor.commands === null) {
-@@ -413,7 +475,7 @@ const buildAvailableEditors = Effect.fn("externalLauncher.buildAvailableEditors"
+@@ -414,7 +476,7 @@ const buildAvailableEditors = Effect.fn("externalLauncher.buildAvailableEditors"
}
const command = yield* resolveEditorCommand(editor, env);
@@ -147,19 +147,10 @@ index 7f4417d1fb..8ec3c6a3e5 100644
available.push(editor.id);
}
}
-@@ -476,13 +538,26 @@ const resolveEditorLaunch = Effect.fn("resolveEditorLaunch")(function* (
- }
-
+@@ -479,6 +541,19 @@ const resolveEditorLaunch = Effect.fn("resolveEditorLaunch")(function* (
if (editorDef.commands) {
-- const { command, baseArgs } = Option.getOrElse(
-- yield* resolveEditorCommand(editorDef, env),
-- () => ({
-- command: editorDef.commands[0],
-- baseArgs: "baseArgs" in editorDef ? editorDef.baseArgs : [],
-- }),
-- );
-+ const installedCommand = yield* resolveEditorCommand(editorDef, env);
-+ if (Option.isNone(installedCommand)) {
+ const resolved = yield* resolveEditorCommand(editorDef, env);
+ if (Option.isNone(resolved)) {
+ const appId = installedFlatpakEditorAppId(
+ editorDef.id,
+ yield* installedFlatpakAppIds(platform, env),
@@ -173,11 +164,6 @@ index 7f4417d1fb..8ec3c6a3e5 100644
+ args: ["run", appId, ...baseArgs, ...resolveCommandEditorArgs(editorDef, input.cwd)],
+ };
+ }
-+ }
-+ const { command, baseArgs } = Option.getOrElse(installedCommand, () => ({
-+ command: editorDef.commands[0],
-+ baseArgs: "baseArgs" in editorDef ? editorDef.baseArgs : [],
-+ }));
- return {
- editor: editorDef.id,
- target: input.cwd,
+ return yield* new ExternalLauncherCommandNotFoundError({
+ editor: editorDef.id,
+ command: editorDef.commands[0],
diff --git a/patches/0009-flatpak-server-updates.patch b/patches/0009-flatpak-server-updates.patch
index 03eabb2..52bb6e5 100644
--- a/patches/0009-flatpak-server-updates.patch
+++ b/patches/0009-flatpak-server-updates.patch
@@ -1,11 +1,11 @@
diff --git a/apps/server/src/cloud/selfUpdate.test.ts b/apps/server/src/cloud/selfUpdate.test.ts
-index a938d67788..8e3f30eea5 100644
+index 6be4288ce3..e22848f9ae 100644
--- a/apps/server/src/cloud/selfUpdate.test.ts
+++ b/apps/server/src/cloud/selfUpdate.test.ts
-@@ -160,6 +160,28 @@ const makeHarness = Effect.fn("test.make_self_update_harness")(function* (
- });
+@@ -196,6 +196,28 @@ it.layer(NodeServices.layer)("server self update", (it) => {
+ }),
+ );
- it.layer(NodeServices.layer)("server self update", (it) => {
+ it.effect("rejects Flatpak updates and commits before invoking any updater", () =>
+ Effect.gen(function* () {
+ const { selfUpdate, order } = yield* makeHarness({
@@ -32,7 +32,7 @@ index a938d67788..8e3f30eea5 100644
it.effect("rejects invalid versions and desktop-managed servers before staging", () =>
Effect.gen(function* () {
diff --git a/apps/server/src/cloud/selfUpdate.ts b/apps/server/src/cloud/selfUpdate.ts
-index 58baa160ad..85835f020a 100644
+index 5e29996413..505b5e4a11 100644
--- a/apps/server/src/cloud/selfUpdate.ts
+++ b/apps/server/src/cloud/selfUpdate.ts
@@ -138,6 +138,7 @@ export const make = Effect.fn("cloud.server_self_update.make")(function* () {
@@ -55,7 +55,7 @@ index 58baa160ad..85835f020a 100644
const policyRefusal = managedUpdateRefusal(
policy.document,
capability === "boot-service" ? cliReleaseChannelOf(input.targetVersion.trim()) : undefined,
-@@ -322,6 +328,11 @@ export const make = Effect.fn("cloud.server_self_update.make")(function* () {
+@@ -333,6 +339,11 @@ export const make = Effect.fn("cloud.server_self_update.make")(function* () {
update,
commitDesktopUpdate: Effect.fn("ServerSelfUpdate.commitDesktopUpdate")(
function (requestId, onHandoffAccepted) {
@@ -114,7 +114,7 @@ index dc719ed93c..9567631217 100644
settledWorktreeCleanup: true,
storageCleanupRun: true,
diff --git a/apps/server/src/environment/ServerEnvironment.ts b/apps/server/src/environment/ServerEnvironment.ts
-index 74c6865807..f1df53d13a 100644
+index 9e29b0fded..ab77356eae 100644
--- a/apps/server/src/environment/ServerEnvironment.ts
+++ b/apps/server/src/environment/ServerEnvironment.ts
@@ -203,8 +203,11 @@ export const make = Effect.gen(function* () {
diff --git a/patches/0010-flatpak-browser-requirements.patch b/patches/0010-flatpak-browser-requirements.patch
index a280b46..52ad43b 100644
--- a/patches/0010-flatpak-browser-requirements.patch
+++ b/patches/0010-flatpak-browser-requirements.patch
@@ -76,10 +76,10 @@ index 1847e5f232..eea911ee35 100644
// Playwright reports Chrome's refusal to sandbox as root as a sandbox failure too.
return (yield* HostProcess.UserId) === 0
diff --git a/apps/server/src/preview/ServerBrowser.ts b/apps/server/src/preview/ServerBrowser.ts
-index 7f128dc5d4..51364a0b16 100644
+index ee31b17cc5..8a0ae2935c 100644
--- a/apps/server/src/preview/ServerBrowser.ts
+++ b/apps/server/src/preview/ServerBrowser.ts
-@@ -2759,7 +2759,9 @@ const make = Effect.gen(function* () {
+@@ -2765,7 +2765,9 @@ const make = Effect.gen(function* () {
(yield* PreviewBrowserHost.sandboxBlocked)
) {
yield* Effect.logWarning(
diff --git a/patches/0011-flatpak-legacy-database.patch b/patches/0011-flatpak-legacy-database.patch
index 493b344..a9ed418 100644
--- a/patches/0011-flatpak-legacy-database.patch
+++ b/patches/0011-flatpak-legacy-database.patch
@@ -117,7 +117,7 @@ index 045d6dba29..e19a6c373d 100644
getState: () => ipcRenderer.invoke(IpcChannels.CLI_COMMAND_GET_STATE_CHANNEL),
install: () => ipcRenderer.invoke(IpcChannels.CLI_COMMAND_INSTALL_CHANNEL),
diff --git a/apps/web/src/components/settings/DatabaseStorageNotice.tsx b/apps/web/src/components/settings/DatabaseStorageNotice.tsx
-index b9a0de493a..fee108569f 100644
+index b4668a07f2..ef2f2a38c0 100644
--- a/apps/web/src/components/settings/DatabaseStorageNotice.tsx
+++ b/apps/web/src/components/settings/DatabaseStorageNotice.tsx
@@ -9,7 +9,7 @@ import {
@@ -251,10 +251,10 @@ index b9a0de493a..fee108569f 100644
+ );
+}
diff --git a/packages/contracts/src/ipc.ts b/packages/contracts/src/ipc.ts
-index 29be3d6d02..03b4f4d363 100644
+index 39f96754a6..3632f9fd6b 100644
--- a/packages/contracts/src/ipc.ts
+++ b/packages/contracts/src/ipc.ts
-@@ -1140,6 +1140,12 @@ export interface DesktopBridge {
+@@ -1143,6 +1143,12 @@ export interface DesktopBridge {
/** With a version, installs only that downloaded build. */
installUpdate: (expectedVersion?: string) => Promise;
onUpdateState: (listener: (state: DesktopUpdateState) => void) => () => void;
diff --git a/patches/0012-flatpak-update-channel.patch b/patches/0012-flatpak-update-channel.patch
index 5528971..68669c4 100644
--- a/patches/0012-flatpak-update-channel.patch
+++ b/patches/0012-flatpak-update-channel.patch
@@ -1,8 +1,8 @@
diff --git a/apps/desktop/src/updates/DesktopUpdates.test.ts b/apps/desktop/src/updates/DesktopUpdates.test.ts
-index cc2cc4c537..7e5bdf2ac7 100644
+index 1b14a0497b..d5191e550c 100644
--- a/apps/desktop/src/updates/DesktopUpdates.test.ts
+++ b/apps/desktop/src/updates/DesktopUpdates.test.ts
-@@ -38,6 +38,11 @@ describe("DesktopUpdates", () => {
+@@ -92,6 +92,11 @@ describe("DesktopUpdates", () => {
const result = yield* updates.check("manual");
assert.isFalse(result.checked);
assert.equal(harness.checkCount(), 0);
@@ -15,10 +15,10 @@ index cc2cc4c537..7e5bdf2ac7 100644
Effect.scoped,
Effect.provide(harness.layer),
diff --git a/apps/desktop/src/updates/DesktopUpdates.ts b/apps/desktop/src/updates/DesktopUpdates.ts
-index 81ee76338d..cc607dfada 100644
+index 75ef423a27..a70eb7d771 100644
--- a/apps/desktop/src/updates/DesktopUpdates.ts
+++ b/apps/desktop/src/updates/DesktopUpdates.ts
-@@ -1204,6 +1204,9 @@ export const make = Effect.gen(function* () {
+@@ -1208,6 +1208,9 @@ export const make = Effect.gen(function* () {
options?: { readonly minimumVersion?: string | undefined },
) {
yield* Effect.annotateCurrentSpan({ channel: nextChannel });
@@ -29,10 +29,10 @@ index 81ee76338d..cc607dfada 100644
return yield* new DesktopUpdateChannelManagedError({
channel: nextChannel,
diff --git a/apps/web/src/components/settings/SettingsPanels.tsx b/apps/web/src/components/settings/SettingsPanels.tsx
-index 00bdcf6cf5..770756cc14 100644
+index 3dc9566e89..fcace2f695 100644
--- a/apps/web/src/components/settings/SettingsPanels.tsx
+++ b/apps/web/src/components/settings/SettingsPanels.tsx
-@@ -352,6 +352,8 @@ function AboutVersionSection() {
+@@ -356,6 +356,8 @@ function AboutVersionSection() {
Review
>
@@ -41,7 +41,7 @@ index 00bdcf6cf5..770756cc14 100644
) : (
"Switches this app and every connected machine whose database the target release supports."
)
-@@ -360,6 +362,9 @@ function AboutVersionSection() {
+@@ -364,6 +366,9 @@ function AboutVersionSection() {
control={