@devries-cameron20 / t3code-1 / commits / 380bba368a
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(desktop): stop unsolicited Messages code autofill (#19118)

Wout Stiens committed Oct 13, 2026 at 21:02 UTC 380bba368a9071828616b1b03bde1876cc0af4c8
3 files changed +6 -1
apps/desktop/scripts/electron-launcher.mjs
+3 -1
@@ -20,7 +20,7 @@ const APP_BUNDLE_ID = isDevelopment
20 ? `com.t3tools.t3code.dev.${devBundleIdSuffix || "local"}`
21 : "com.t3tools.t3code";
22 const APP_PROTOCOL_SCHEMES = isDevelopment ? ["t3code-dev"] : ["t3code"];
23 -const LAUNCHER_VERSION = 19;
23 +const LAUNCHER_VERSION = 20;
24 const developmentMacIconPngPath = NodePath.join(
25 repoRoot,
26 "assets",
@@ -280,6 +280,8 @@ function patchMainBundleInfoPlist(appBundlePath, iconPath, executableName) {
280 for (const [key, value] of Object.entries(resolveMacBundleInfoPlistStrings(executableName))) {
281 setPlistString(infoPlistPath, key, value);
282 }
283 + // macOS 26 offers Messages/Mail codes in every text field unless opted out.
284 + setPlistJson(infoPlistPath, "NSAutoFillRequiresTextContentTypeForOneTimeCodeOnMac", true);
285 setPlistJson(infoPlistPath, "CFBundleURLTypes", [
286 {
287 CFBundleURLName: APP_BUNDLE_ID,
scripts/build-desktop-artifact.test.ts
+1
@@ -726,6 +726,7 @@ it.layer(NodeServices.layer)("build-desktop-artifact", (it) => {
726 ]);
727 // macOS lists a default browser only when it also opens web pages as documents.
728 const macInfo = (mac.mac as { extendInfo: Record<string, unknown> }).extendInfo;
729 + assert.strictEqual(macInfo.NSAutoFillRequiresTextContentTypeForOneTimeCodeOnMac, true);
730 assert.deepStrictEqual(macInfo.CFBundleDocumentTypes, [
731 {
732 CFBundleTypeName: "Web page",
scripts/build-desktop-artifact.ts
+2
@@ -2821,6 +2821,8 @@ export const createBuildConfig = Effect.fn("createBuildConfig")(function* (
2821 icon: "icon.icns",
2822 category: "public.app-category.developer-tools",
2823 extendInfo: {
2824 + // macOS 26 offers Messages/Mail codes in every text field unless opted out.
2825 + NSAutoFillRequiresTextContentTypeForOneTimeCodeOnMac: true,
2826 NSLocalNetworkUsageDescription:
2827 "T3 Code connects to devices on your local network for remote environments and commands run by terminals and coding agents.",
2828 NSScreenCaptureUsageDescription: