Skip to content

an open-source alternative to the dots, bots and muses of the world, run an office of claude code/codex like agents on your laptop, sandboxes or anywhere, uses your existing subscriptions

fix(realtime): reset realtimeVoiceEnabled=false on startup so the mic gate can't boot pre-open (rt-8, Pam rt-10 nit)

Chaitanya Giria84efe56b0bf
diff --git a/src/main/index.ts b/src/main/index.ts
index 84ae95cf..6117a760 100644
--- a/src/main/index.ts
+++ b/src/main/index.ts
@@ -3310,6 +3310,14 @@ function onSystemResume(reason: string): void {
}
app.whenReady().then(() => {
+ // Realtime Michael mic-gate hygiene (rt-8 / Pam rt-10 nit): the voice session
+ // opens the mic permission gate by persisting realtimeVoiceEnabled=true and
+ // closes it on disconnect — but a hard crash/reload mid-session skips that
+ // teardown, leaving the flag stuck true so the gate would boot PRE-OPEN with no
+ // live session. Force it closed at startup (a real session re-opens it via
+ // setMicGate(true)); macOS TCC stays a second gate regardless.
+ if (readConfig().realtimeVoiceEnabled) writeConfig({ realtimeVoiceEnabled: false });
+
// A cold-start deep link (Windows/Linux) rides in on OUR argv.
const startupHireLink = process.argv.find((a) => a.startsWith('munderdifflin://'));
if (startupHireLink) void handleHireLink(startupHireLink);