Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(desktop): macOS Keychain consent no longer freezes startup #21028

ClosedJustYannicc(GitHub profile, opens in a new tab)wants to merge 42 commits intomain fromrefs/pull/21028/headopened View on GitHub

Showing 10 changed files with 168 additions and 8 deletions (loading 7).

x
0 of 10 viewed, 10 left
2 additions and 1 deletionapps/desktop/src/app/DesktopAppIdentity.tsModified
View file
@@ -93,7 +93,8 @@
const commitHash = yield* resolveAboutCommitHash;
// Electron strips spaces but keeps parentheses in its User-Agent token, breaking Turnstile in preview sessions.
yield* electronApp.setName(
- `${environment.branding.baseName} ${environment.branding.stageLabel}`,
+ environment.localMacKeychainName ??
+ `${environment.branding.baseName} ${environment.branding.stageLabel}`,
);
yield* electronApp.setAboutPanelOptions({
applicationName: environment.displayName,
11 additions and 2 deletionsapps/desktop/src/app/DesktopClerk.tsModified
View file
@@ -5,6 +5,7 @@
import * as Effect from "effect/Effect";
import * as Layer from "effect/Layer";
import * as Option from "effect/Option";
+import * as Path from "effect/Path";
import * as Schema from "effect/Schema";
import * as Scope from "effect/Scope";
​
@@ -106,10 +107,19 @@
const environment = yield* DesktopEnvironment.DesktopEnvironment;
const electronApp = yield* ElectronApp.ElectronApp;
const shell = yield* ElectronShell.ElectronShell;
+ const path = yield* Path.Path;
+ const localMacKeychainName = environment.localMacKeychainName;
+ const tokenDirectory =