Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

fix(startup): avoid unused keychain access

Corvin30783ef84c26
diff --git a/src/main/index.ts b/src/main/index.ts
index f9153db85..dc716796e 100644
--- a/src/main/index.ts
+++ b/src/main/index.ts
@@ -1073,14 +1073,21 @@ app.whenReady().then(async () => {
let pushHasPairedPhone = false
const refreshPushIdentity = async (): Promise<void> => {
try {
- pushHostKeyB64 = publicKeyToB64((await loadOrCreateKeyPair()).publicKey)
+ pushHasPairedPhone = (await loadApprovedDevices()).pubkeys.length > 0
} catch {
- // Keyring locked / transient read error: keep the last-known key (never clobber identity).
+ pushHasPairedPhone = false
+ }
+ // No paired destination means no host-mode push can be sent. Avoid touching macOS
+ // Safe Storage at boot in that state: locally signed development builds otherwise trigger
+ // a Keychain ACL prompt even though there is nobody to notify.
+ if (!pushHasPairedPhone) {
+ pushHostKeyB64 = null
+ return
}
try {
- pushHasPairedPhone = (await loadApprovedDevices()).pubkeys.length > 0
+ pushHostKeyB64 = publicKeyToB64((await loadOrCreateKeyPair()).publicKey)
} catch {
- pushHasPairedPhone = false
+ // Keyring locked / transient read error: keep the last-known key (never clobber identity).
}
}
void refreshPushIdentity()