A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.
Ask for the start window's language once the app is ready
AdamPlatin123534618ec8368
diff --git a/app/src/main.mjs b/app/src/main.mjsindex a1e28104..507f3aad 100644--- a/app/src/main.mjs+++ b/app/src/main.mjs@@ -105,7 +105,8 @@ if (canonical !== undefined) {startWindow = new StartWindow({electron: { BrowserWindow, ipcMain, screen, shell, clipboard, nativeTheme, systemPreferences },page: join(here, 'start', 'start.html'), preload: join(here, 'preload.cjs'), icon: iconFile, mica, devTools: !app.isPackaged,- lang: app.getLocale().toLowerCase().startsWith('zh') ? 'zh' : 'en', motion: readStartFrame(frameFile).motion,+ // On Windows the locale is known only once the app is ready.+ lang: () => (app.getLocale().toLowerCase().startsWith('zh') ? 'zh' : 'en'), motion: readStartFrame(frameFile).motion,version: app.getVersion(), log: logs, mainWindow: () => mainWindow,onRetry: () => { retry().catch(fail) },onReload: () => { mainWindow?.webContents.reload() },diff --git a/app/src/start-window.mjs b/app/src/start-window.mjsindex c4fa6524..a088c91b 100644--- a/app/src/start-window.mjs+++ b/app/src/start-window.mjs@@ -222,11 +222,12 @@ export class StartWindow {* @param {{* electron: { BrowserWindow: any, ipcMain: any, screen: any, shell: any, clipboard: any, nativeTheme: any, systemPreferences: any },* page: string, preload: string, icon: string, mica: boolean, devTools: boolean,- * lang: 'zh' | 'en', motion: string, version: string,+ * lang: () => 'zh' | 'en', motion: string, version: string,* log: { dir: string, tail: (count: number) => string[] },* mainWindow: () => any,* onRetry: () => void, onReload: () => void, onClose: () => void,- * }} options `onClose` runs when the user closes the start window before the hand-off.+ * }} options `lang` is asked at each open; `onClose` runs when the user closes the start window+ * before the hand-off.*/constructor(options) {this.#o = options@@ -421,7 +422,7 @@ export class StartWindow {const now = Date.now()this.#phaseAt = nowthis.#state = {- lang: this.#o.lang, start, motion: this.#o.motion, frame: process.platform === 'win32' ? 'band' : 'system',+ lang: this.#o.lang(), start, motion: this.#o.motion, frame: process.platform === 'win32' ? 'band' : 'system',view: start === 'moving' ? 'moving' : 'boot',done: [], explain: this.#explain, celebrate: start === 'first',clock: { base: 0, from: now, running: true },