Skip to content

Commit 88a1de8

Browse files
authored
Merge branch 'main' into fix/windows-reveal-detached
2 parents 3c06fc6 + 380bba3 commit 88a1de8

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎apps/desktop/scripts/electron-launcher.mjs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const APP_BUNDLE_ID = isDevelopment
2020
? `com.t3tools.t3code.dev.${devBundleIdSuffix || "local"}`
2121
: "com.t3tools.t3code";
2222
const APP_PROTOCOL_SCHEMES = isDevelopment ? ["t3code-dev"] : ["t3code"];
23-
const LAUNCHER_VERSION = 19;
23+
const LAUNCHER_VERSION = 20;
2424
const developmentMacIconPngPath = NodePath.join(
2525
repoRoot,
2626
"assets",
@@ -280,6 +280,8 @@ function patchMainBundleInfoPlist(appBundlePath, iconPath, executableName) {
280280
for (const [key, value] of Object.entries(resolveMacBundleInfoPlistStrings(executableName))) {
281281
setPlistString(infoPlistPath, key, value);
282282
}
283+
// macOS 26 offers Messages/Mail codes in every text field unless opted out.
284+
setPlistJson(infoPlistPath, "NSAutoFillRequiresTextContentTypeForOneTimeCodeOnMac", true);
283285
setPlistJson(infoPlistPath, "CFBundleURLTypes", [
284286
{
285287
CFBundleURLName: APP_BUNDLE_ID,

‎scripts/build-desktop-artifact.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,7 @@ it.layer(NodeServices.layer)("build-desktop-artifact", (it) => {
726726
]);
727727
// macOS lists a default browser only when it also opens web pages as documents.
728728
const macInfo = (mac.mac as { extendInfo: Record<string, unknown> }).extendInfo;
729+
assert.strictEqual(macInfo.NSAutoFillRequiresTextContentTypeForOneTimeCodeOnMac, true);
729730
assert.deepStrictEqual(macInfo.CFBundleDocumentTypes, [
730731
{
731732
CFBundleTypeName: "Web page",

‎scripts/build-desktop-artifact.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2821,6 +2821,8 @@ export const createBuildConfig = Effect.fn("createBuildConfig")(function* (
28212821
icon: "icon.icns",
28222822
category: "public.app-category.developer-tools",
28232823
extendInfo: {
2824+
// macOS 26 offers Messages/Mail codes in every text field unless opted out.
2825+
NSAutoFillRequiresTextContentTypeForOneTimeCodeOnMac: true,
28242826
NSLocalNetworkUsageDescription:
28252827
"T3 Code connects to devices on your local network for remote environments and commands run by terminals and coding agents.",
28262828
NSScreenCaptureUsageDescription:

0 commit comments

Comments
 (0)