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, 04:15 UTC
fix(desktop): the SnapShot GNOME extension loads on GNOME 51 (#17436)
Igor Makowski committed
Oct 18, 2026 at 21:09 UTC
c32dc2f1c97effffbd0ad77b3bd91cde127bbe6a
3 files changed
+13
-12
apps/desktop/gnome-extension/metadata.json
+2
-2
@@ -2,7 +2,7 @@
2
"uuid": "snap-shot@t3.codes",
3
"name": "T3 Code SnapShots",
4
"description": "Allows T3 Code to capture the focused window, identify it for optional accessibility text, and animate it into T3 Code. Disable this extension to revoke access.",
5
- "shell-version": ["45", "46", "47", "48", "49", "50"],
6
- "version": 2,
5
+ "shell-version": ["45", "46", "47", "48", "49", "50", "51"],
6
+ "version": 3,
7
"url": "https://github.com/pingdotgg/t3code"
8
}
apps/desktop/src/snapShot/GnomeCaptureSetup.test.ts
+10
-9
@@ -118,12 +118,13 @@ it("refuses to replace symlinks or downgrade a newer extension", async () => {
118
119
it.each([
120
[{}, "not-installed"],
121
- [{ state: 2, version: 2 }, "disabled"],
122
- [{ state: 1, version: 2 }, "enabled"],
121
+ [{ state: 2, version: 3 }, "disabled"],
122
+ [{ state: 1, version: 3 }, "enabled"],
123
[{ state: 1, version: 1 }, "update-required"],
124
- [{ state: 2, version: 2, enabled: false }, "extensions-disabled"],
125
- [{ state: 3, version: 2, error: "Load failed" }, "error"],
126
- [{ shell: "51.0" }, "unsupported"],
124
+ [{ state: 1, version: 2, shell: "51.0" }, "update-required"],
125
+ [{ state: 2, version: 3, enabled: false }, "extensions-disabled"],
126
+ [{ state: 3, version: 3, error: "Load failed" }, "error"],
127
+ [{ shell: "52.0" }, "unsupported"],
128
] as const)("reports GNOME setup state %j", async (options, status) => {
129
const { setup, call } = fixture(options);
130
expect((await setup.state()).status).toBe(status);
@@ -141,7 +142,7 @@ it("requires login for local installs and updates until the new version is loade
142
expect((await setup.state()).status).toBe("restart-required");
143
setup.close();
144
}
144
- const { setup } = fixture({ state: 2, version: 2 });
145
+ const { setup } = fixture({ state: 2, version: 3 });
146
expect((await setup.state()).status).toBe("disabled");
147
setup.close();
148
});
@@ -157,7 +158,7 @@ it("installs only on explicit action without invoking remote installation", asyn
158
});
159
160
it("enables and disables only the capture UUID", async () => {
160
- const { setup, call } = fixture({ state: 2, version: 2 });
161
+ const { setup, call } = fixture({ state: 2, version: 3 });
162
await setup.perform("enable-extension");
163
await setup.perform("disable-extension");
164
for (const member of ["EnableExtension", "DisableExtension"]) {
@@ -172,14 +173,14 @@ it("enables and disables only the capture UUID", async () => {
173
});
174
175
it("never changes the global user-extensions preference", async () => {
175
- const { setup, call } = fixture({ state: 2, version: 2, enabled: false });
176
+ const { setup, call } = fixture({ state: 2, version: 3, enabled: false });
177
await expect(setup.perform("enable-extension")).rejects.toThrow("GNOME has disabled");
178
expect(call.mock.calls.every(([message]) => message.member.startsWith("Get"))).toBe(true);
179
setup.close();
180
});
181
182
it("surfaces desktop rejection and disconnect as actionable failures", async () => {
182
- const { setup, bus } = fixture({ state: 2, version: 2, accepted: false });
183
+ const { setup, bus } = fixture({ state: 2, version: 3, accepted: false });
184
await expect(setup.perform("enable-extension")).rejects.toThrow("Sign out");
185
bus.emit("error", new Error("Session bus disconnected"));
186
expect(await setup.state()).toEqual({ status: "error", message: "Session bus disconnected" });
apps/desktop/src/snapShot/LinuxSnapShot.dbus.test.ts
+1
-1
@@ -94,7 +94,7 @@ it.runIf(hasDbus)("captures through real D-Bus marshalling on a private bus", as
94
} else if (message.member === "GetExtensionInfo") {
95
server!.send(
96
Message.newMethodReturn(message, "a{sv}", [
97
- { state: new Variant("d", shellExtensionState), version: new Variant("d", 2) },
97
+ { state: new Variant("d", shellExtensionState), version: new Variant("d", 3) },
98
]),
99
);
100
} else if (message.member === "EnableExtension" || message.member === "DisableExtension") {