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(config): tell every window a setting was saved, not just the focused one

HundredBillion94a03bb8df25
diff --git a/src/main/index.ts b/src/main/index.ts
index 5f1bfde2..2cbc81c6 100644
--- a/src/main/index.ts
+++ b/src/main/index.ts
@@ -5161,11 +5161,13 @@ app.on('before-quit', (e) => {
}
});
-// The window loads the config once at start-up, so tell it when a setting is
-// saved — otherwise it keeps showing the values it started with.
-onConfigWritten((next) => {
- if (!mainWindow || mainWindow.isDestroyed()) return;
- mainWindow.webContents.send('config:changed', next);
+// Every window loads the config once at start-up, so tell them all when a
+// setting is saved — a floor left out would keep showing what it opened with.
+onConfigWritten((config) => {
+ for (const w of allWindows) {
+ if (w.isDestroyed() || w.webContents.isDestroyed()) continue;
+ w.webContents.send('config:changed', config);
+ }
});
app.on('window-all-closed', () => {