Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
fix(desktop): keep the boot surfaces closable and their retry honest
vastsa6a9474dc13ab
diff --git a/apps/desktop/src/components/StartupRecovery.tsx b/apps/desktop/src/components/StartupRecovery.tsxindex 51b35765a..2355da3cb 100644--- a/apps/desktop/src/components/StartupRecovery.tsx+++ b/apps/desktop/src/components/StartupRecovery.tsx@@ -27,12 +27,15 @@ export function StartupRecovery({phase,waitedMs,onRetry,+ retrying,down,}: {phase: StartupPhase;/** Waited time, read when the report is copied — never during render. */waitedMs: () => number;onRetry: () => void;+ /** True while the retry the user asked for is still in flight. */+ retrying?: boolean;/** What the main process last reported as down, when it reported anything. */down?: { component?: string; message?: string } | null;}) {@@ -122,8 +125,9 @@ export function StartupRecovery({type="button"className="btn btn-primary"onClick={onRetry}+ disabled={retrying}>- {t("errors.action.retry")}+ {retrying ? t("startup.retrying") : t("errors.action.retry")}</button>)}<button@@ -138,7 +142,8 @@ export function StartupRecovery({className="btn btn-secondary"onClick={() => void copyDiagnostics()}>- {copyLabel}+ {/* The label is the only outcome of the copy: announce it. */}+ <span aria-live="polite">{copyLabel}</span></button><buttontype="button"diff --git a/apps/desktop/src/features/app/AppShell.tsx b/apps/desktop/src/features/app/AppShell.tsxindex ee41d4b31..54ba0aaee 100644--- a/apps/desktop/src/features/app/AppShell.tsx+++ b/apps/desktop/src/features/app/AppShell.tsx@@ -83,6 +83,7 @@ export function AppShell() {startupPhase,startupWaitedMs,retryStartup,+ startupRetrying,sidebarToggleShortcut,workPanelToggleTooltip,} = useAppShellRuntime();@@ -96,6 +97,7 @@ export function AppShell() {phase={startupPhase}waitedMs={startupWaitedMs}onRetry={retryStartup}+ retrying={startupRetrying}down={backendDown}/>);@@ -326,9 +328,11 @@ export function AppShell() {<div className="app-scenic-backdrop" aria-hidden />{shell}{/* Outside pane stacking; skip splash so the band cannot cover boot chrome. */}- {/* A window parked on the recovery surface is not ready either, and the- renderer-drawn controls are the only ones Windows/Linux have. */}- {(ready || startupPhase !== "starting") && !showSplash ? (+ {/* `showSplash` stays true for as long as the shell is not ready, so a+ bare `!showSplash` test would leave the recovery surface without any+ window controls — the only ones a frameless Windows/Linux window has.+ The controls therefore follow the boot surface that is actually up. */}+ {(ready && !showSplash) || startupPhase !== "starting" ? (<WindowControls />) : null}<ProjectCreateDialog />diff --git a/apps/desktop/src/features/app/useAppShellRuntime.tsx b/apps/desktop/src/features/app/useAppShellRuntime.tsxindex 82c417dbd..7e49fc158 100644--- a/apps/desktop/src/features/app/useAppShellRuntime.tsx+++ b/apps/desktop/src/features/app/useAppShellRuntime.tsx@@ -551,6 +551,16 @@ export function useAppShellRuntime() {});}, [bootstrap]);+ // The menu/tray acknowledgement also follows `ready`, not only the first+ // attempt's `finally`. A startup the watchdog retried is exactly one whose+ // first attempt never settled, so that `finally` would never run and main+ // would keep gating menu commands and tray activation on a shell that is+ // already on screen. Repeating the call is harmless.+ useEffect(() => {+ if (!ready) return;+ void api.menuRendererReady().catch(() => undefined);+ }, [ready]);+// The Host owns the prompt queue (D375); mirror it whenever the visible// session changes so a reload or a switch shows the durable entries.useEffect(() => {@@ -822,6 +832,7 @@ export function useAppShellRuntime() {phase: startupPhase,waitedMs: startupWaitedMs,retry: retryStartup,+ retrying: startupRetrying,} = useStartupWatchdog(ready);const showSplash = splashPhase !== "done";// The splash and the recovery surface answer the same question ("nothing to@@ -915,6 +926,7 @@ export function useAppShellRuntime() {startupPhase,startupWaitedMs,retryStartup,+ startupRetrying,sidebarToggleShortcut,workPanelToggleTooltip,};diff --git a/apps/desktop/src/features/app/useStartupWatchdog.ts b/apps/desktop/src/features/app/useStartupWatchdog.tsindex e9d387639..cb83e3deb 100644--- a/apps/desktop/src/features/app/useStartupWatchdog.ts+++ b/apps/desktop/src/features/app/useStartupWatchdog.ts@@ -8,11 +8,20 @@ import { useAppStore } from "../../stores/app-store";const clockNow = () =>typeof performance !== "undefined" ? performance.now() : Date.now();+/** How stuck a phase reads; a wait never looks better than it already did. */+const PHASE_RANK: Record<StartupPhase, number> = {+ starting: 0,+ slow: 1,+ stalled: 2,+};+export type StartupWatchdogState = {/** Where the wait for the first state currently is. */phase: StartupPhase;/** Milliseconds waited so far, read on demand (never during render). */waitedMs: () => number;+ /** A retry is in flight and has not run out its own bounds yet. */+ retrying: boolean;/*** Ask for the initial state again after a stalled boot. The watchdog restarts* with the attempt, so the retry gets its own full window before it is called@@ -33,16 +42,35 @@ export type StartupWatchdogState = {export function useStartupWatchdog(ready: boolean): StartupWatchdogState {const [phase, setPhase] = useState<StartupPhase>("starting");const [attempt, setAttempt] = useState(0);+ const [retrying, setRetrying] = useState(false);+ const retryingRef = useRef(false);const startedAtRef = useRef(clockNow());useEffect(() => {if (ready) {+ // The initial state arrived: the wait is over, however it looked.+ retryingRef.current = false;+ setRetrying(false);setPhase("starting");return;}startedAtRef.current = clockNow();const watchdog = createStartupWatchdog({- onPhase: setPhase,+ onPhase: (next) => {+ // A retry restarts the clock, not the story. Dropping back to+ // "starting" would hide the surface (and its retry) the user is standing+ // on, and the fresh attempt's own slow bound must not walk "stalled"+ // back to "slow" while nothing has actually improved. The stalled bound+ // is also where a retry stops counting as in flight, so the action is+ // offered again instead of staying disabled forever.+ if (next === "stalled") {+ retryingRef.current = false;+ setRetrying(false);+ }+ setPhase((current) =>+ PHASE_RANK[next] > PHASE_RANK[current] ? next : current,+ );+ },scheduler: {setTimeout: (handler, ms) => setTimeout(handler, ms),clearTimeout: (handle) =>@@ -57,11 +85,19 @@ export function useStartupWatchdog(ready: boolean): StartupWatchdogState {}, [ready, attempt]);const retry = useCallback(() => {+ // Every click would otherwise start another full startup (about ten reads+ // plus a model listing per provider) against a service that is already not+ // answering.+ if (retryingRef.current) return;+ retryingRef.current = true;+ setRetrying(true);setAttempt((current) => current + 1);+ // The store keeps only the newest attempt's result, so an older read that+ // finally lands cannot reset the view the retry already published.void useAppStore.getState().bootstrap();}, []);const waitedMs = useCallback(() => clockNow() - startedAtRef.current, []);- return { phase, waitedMs, retry };+ return { phase, waitedMs, retrying, retry };}diff --git a/apps/desktop/src/lib/startup-watchdog.ts b/apps/desktop/src/lib/startup-watchdog.tsindex 13665b823..7b9c6fea6 100644--- a/apps/desktop/src/lib/startup-watchdog.ts+++ b/apps/desktop/src/lib/startup-watchdog.ts@@ -39,18 +39,6 @@ export const STARTUP_SLOW_HINT_MS = 30_000;*/export const STARTUP_STALLED_MS = 180_000;-/** Phase for the time already spent waiting for the initial state. */-export function startupPhaseFor(- elapsedMs: number,- bounds: { slowMs?: number; stalledMs?: number } = {},-): StartupPhase {- const slowMs = bounds.slowMs ?? STARTUP_SLOW_HINT_MS;- const stalledMs = bounds.stalledMs ?? STARTUP_STALLED_MS;- if (elapsedMs >= stalledMs) return "stalled";- if (elapsedMs >= slowMs) return "slow";- return "starting";-}-/** The two timers a watchdog needs; injectable so tests need no real clock. */export type StartupWatchdogScheduler = {setTimeout: (handler: () => void, ms: number) => unknown;@@ -124,9 +112,10 @@ export type StartupDiagnosticsInput = {* The report behind "copy diagnostics".** Built only from what the renderer already holds: asking the local service for- * more would repeat the very call that is not answering. Deliberately plain text- * so it can be pasted into a bug report as-is, and deliberately free of anything- * the user did not already see (no paths, tokens, or session content).+ * more would repeat the very call that is not answering. Plain text so it can be+ * pasted into a bug report as-is, and limited to facts the user already saw — no+ * session content, no file paths, no credentials. The error and reported-down+ * text it carries is the app's own message, the same one the user is looking at.*/export function buildStartupDiagnostics(input: StartupDiagnosticsInput): string {const seconds = Math.round(input.elapsedMs / 1000);diff --git a/apps/desktop/src/stores/app-store.ts b/apps/desktop/src/stores/app-store.tsindex db56efe64..a7da29eeb 100644--- a/apps/desktop/src/stores/app-store.ts+++ b/apps/desktop/src/stores/app-store.ts@@ -441,6 +441,16 @@ const {const transcriptReading = createTranscriptReadingRuntime(runtimeStoreAccess, api.getSession);+/**+ * Which `bootstrap` attempt owns the state it publishes.+ *+ * The renderer's startup is retryable now (issue #831), and the attempt it+ * retries is usually one that never settled: without this, that older attempt+ * could land after the retry already published the shell and reset the view the+ * user is working in (`activeSessionId`, `messages`, `page`, panes).+ */+let bootstrapGeneration = 0;+export const useAppStore = create<AppState>((set, get) => {storeAccess = { get, set };return {@@ -528,6 +538,9 @@ export const useAppStore = create<AppState>((set, get) => {}),bootstrap: async () => {+ // Only the newest attempt may publish; an older in-flight one returns+ // without touching the store.+ const generation = ++bootstrapGeneration;let recoveredSettings: AppSettings | undefined;try {const settingsRequest = api.getSettings().then(async (settingsRaw) => {@@ -651,6 +664,7 @@ export const useAppStore = create<AppState>((set, get) => {for (const proposal of activePendingPlans) {planningStates[proposal.sessionId] = "awaiting_approval";}+ if (generation !== bootstrapGeneration) return;set({ready: true,version,@@ -721,6 +735,9 @@ export const useAppStore = create<AppState>((set, get) => {});}} catch (e) {+ // A superseded attempt reports nothing: its failure belongs to a wait the+ // user already left behind.+ if (generation !== bootstrapGeneration) return;set({ready: true,healthOk: false,diff --git a/apps/desktop/test/startup-watchdog.test.mjs b/apps/desktop/test/startup-watchdog.test.mjsindex cd8b30256..9c613218d 100644--- a/apps/desktop/test/startup-watchdog.test.mjs+++ b/apps/desktop/test/startup-watchdog.test.mjs@@ -2,8 +2,8 @@* Issue #831: a launch that never receives its initial state left the window on* the boot surface forever. These tests cover the watchdog's own bounds (they* are the contract that keeps a slow boot from being called a failure), its- * timer ownership, the diagnostics report behind the copy action, and the- * wiring that puts the recovery surface in front of the user.+ * timer ownership, the retry path, the diagnostics report behind the copy+ * action, and the wiring that puts the recovery surface in front of the user.*/import { readAppSource } from "./helpers/source-contracts.mjs";import assert from "node:assert/strict";@@ -15,7 +15,6 @@ import {STARTUP_STALLED_MS,buildStartupDiagnostics,createStartupWatchdog,- startupPhaseFor,} from "../src/lib/startup-watchdog.ts";import { loadStyles } from "./helpers/styles.mjs";@@ -23,6 +22,8 @@ const read = (path) => readFile(new URL(path, import.meta.url), "utf8");const [shell,+ hook,+ store,recovery,apiSource,mainIpc,@@ -33,6 +34,8 @@ const [traditional,] = await Promise.all([readAppSource(),+ read("../src/features/app/useStartupWatchdog.ts"),+ read("../src/stores/app-store.ts"),read("../src/components/StartupRecovery.tsx"),read("../src/lib/api.ts"),read("../electron/main/ipc/app-ipc.ts"),@@ -59,6 +62,8 @@ function fakeScheduler() {},},armed: () => pending.size,+ /** Waiting bounds, lowest first. */+ bounds: () => [...pending.values()].map((entry) => entry.ms).sort((a, b) => a - b),fire: (ms) => {for (const [handle, entry] of [...pending]) {if (entry.ms !== ms) continue;@@ -69,18 +74,9 @@ function fakeScheduler() {};}-test("a boot is only slow after the hint, and only stalled after the ceiling", () => {+test("the two bounds are the documented ones, above the RPC ceiling", () => {assert.equal(STARTUP_SLOW_HINT_MS, 30_000);assert.equal(STARTUP_STALLED_MS, 180_000);- assert.equal(startupPhaseFor(0), "starting");- assert.equal(startupPhaseFor(STARTUP_SLOW_HINT_MS - 1), "starting");- assert.equal(startupPhaseFor(STARTUP_SLOW_HINT_MS), "slow");- assert.equal(startupPhaseFor(STARTUP_STALLED_MS - 1), "slow");- assert.equal(startupPhaseFor(STARTUP_STALLED_MS), "stalled");- assert.equal(startupPhaseFor(9_999_999), "stalled");-});--test("the stalled bound outlives every startup read that can fail on its own", () => {// A renderer startup read that never settles rejects only at the shared RPC// ceiling. Declaring the boot stalled before that would turn a slow but// successful launch into an error screen, so the bound has to stay above it.@@ -91,7 +87,7 @@ test("the stalled bound outlives every startup read that can fail on its own", (assert.ok(STARTUP_SLOW_HINT_MS < DEFAULT_RPC_TIMEOUT_MS);});-test("the watchdog announces each bound once, in order", () => {+test("the watchdog arms exactly those bounds and announces them in order", () => {const fake = fakeScheduler();const phases = [];const watchdog = createStartupWatchdog({@@ -100,7 +96,7 @@ test("the watchdog announces each bound once, in order", () => {});watchdog.start();- assert.equal(fake.armed(), 2);+ assert.deepEqual(fake.bounds(), [STARTUP_SLOW_HINT_MS, STARTUP_STALLED_MS]);// Arming is not a phase: nothing is published until a bound actually passes.assert.deepEqual(phases, []);@@ -201,8 +197,13 @@ test("the recovery surface stays operable with no backend at all", () => {assert.match(recovery, /t\("errors\.action\.retry"\)/);assert.match(recovery, /t\("status\.openLogs"\)/);assert.match(recovery, /t\("tray\.quit"\)/);- // A copy that fails still says so instead of looking like a dead button.+ // A retry in flight says so, and cannot be started twice from the button.+ assert.match(recovery, /disabled=\{retrying\}/);+ assert.match(recovery, /t\("startup\.retrying"\)/);+ // A copy that fails still says so instead of looking like a dead button, and+ // the label is announced rather than only re-drawn.assert.match(recovery, /setCopyState\("failed"\)/);+ assert.match(recovery, /aria-live="polite">\{copyLabel\}/);assert.match(recovery, /startup\.diagnosticsCopied/);assert.match(recovery, /startup\.diagnosticsFailed/);// The version read is bounded: a wedged bridge must not hang the action.@@ -214,23 +215,58 @@ test("the shell watches the wait and renders the recovery surface", () => {assert.match(shell, /useStartupWatchdog\(ready\)/);assert.match(shell, /import \{ StartupRecovery \} from "\.\.\/\.\.\/components\/StartupRecovery"/);assert.match(shell, /<StartupRecovery[\s\S]*onRetry=\{retryStartup\}/);+ assert.match(shell, /<StartupRecovery[\s\S]*retrying=\{startupRetrying\}/);assert.match(shell, /startupPhase !== "starting"/);// Exactly one boot surface is mounted: the splash yields to the recovery.assert.match(shell, /const splash = showSplash && startupPhase === "starting"/);- // Window controls are the only ones Windows/Linux have; they must be there- // while the recovery surface owns the window.- assert.match(shell, /\{\(ready \|\| startupPhase !== "starting"\) && !showSplash \? \(/);- assert.match(shell, /startupWaitedMs/);+});++test("the boot surfaces keep the window controls, so a stuck launch is closable", () => {+ // `showSplash` stays true while the shell is not ready, so a bare+ // `!showSplash` test would leave the recovery surface with no controls at all+ // on the frameless Windows/Linux builds. This is the regression that shipped+ // once already: the assertion pins the phase-aware condition.+ assert.match(+ shell,+ /\{\(ready && !showSplash\) \|\| startupPhase !== "starting" \? \(\s*<WindowControls \/>/,+ );+ assert.equal((shell.match(/<WindowControls\s*\/>/g) ?? []).length, 1);+ assert.match(css, /\.app-shell:has\(> \.startup-recovery\) > \.window-controls \{\n\s+z-index: 1500;/);+});++test("the menu acknowledgement follows a retried startup too", () => {+ // The first attempt's `finally` is exactly what never runs when the watchdog+ // had to take over, so the shell must acknowledge readiness on `ready`.+ assert.match(+ shell,+ /useEffect\(\(\) => \{\s*if \(!ready\) return;\s*void api\.menuRendererReady\(\)\.catch\(\(\) => undefined\);\s*\}, \[ready\]\);/,+ );});test("the watchdog hook owns its timers and keeps the wait alive on retry", () => {- const hook = shell.match(/useStartupWatchdog\.ts[\s\S]*$/)?.[0] ?? shell;assert.match(hook, /return \(\) => watchdog\.stop\(\)/);assert.match(hook, /setAttempt\(\(current\) => current \+ 1\)/);// A boot that does finish must clear the phase, or the surface would outlive// the data it was covering.- assert.match(hook, /if \(ready\) \{\n\s+setPhase\("starting"\);/);+ assert.match(hook, /if \(ready\) \{[\s\S]*setPhase\("starting"\);/);assert.match(hook, /void useAppStore\.getState\(\)\.bootstrap\(\)/);+ // A retry restarts the clock without walking the visible phase backwards, and+ // only one retry may be in flight.+ assert.match(hook, /PHASE_RANK\[next\] > PHASE_RANK\[current\] \? next : current/);+ assert.match(hook, /if \(retryingRef\.current\) return;/);+ assert.match(hook, /if \(next === "stalled"\) \{[\s\S]*setRetrying\(false\)/);+});++test("a superseded startup attempt cannot publish over the retry", () => {+ // The retried attempt is usually one that never settled: without a generation+ // guard it could land after the retry already showed the shell and reset the+ // view the user is working in.+ assert.match(store, /const generation = \+\+bootstrapGeneration;/);+ assert.equal(+ (store.match(/if \(generation !== bootstrapGeneration\) return;/g) ?? []).length,+ 2,+ "both the success and the failure path must refuse to publish",+ );});test("quitting from the recovery surface is main-process owned", () => {@@ -244,10 +280,6 @@ test("the recovery surface layers above the splash and below the window controlsassert.match(css, /\.startup-recovery \{[\s\S]*position: fixed;[\s\S]*inset: 0;/);assert.match(css, /\.app-shell > \.startup-splash \{\n\s+z-index: 1300;/);assert.match(css, /\.startup-recovery \{[\s\S]*z-index: 1400;/);- assert.match(- css,- /\.app-shell:has\(> \.startup-recovery\) > \.window-controls \{\n\s+z-index: 1500;/,- );assert.match(css, /\.startup-recovery-actions \{[\s\S]*flex-wrap: wrap;/);// The surface is draggable like the splash, but its controls are not.assert.match(css, /\.startup-recovery \{[\s\S]*-webkit-app-region: drag;/);@@ -269,6 +301,7 @@ test("the recovery copy is catalog-backed in every mirrored locale", () => {"copyDiagnostics","diagnosticsCopied","diagnosticsFailed",+ "retrying",]) {assert.match(catalog, new RegExp(`${key}:`), `${name} is missing startup.${key}`);}diff --git a/apps/desktop/test/window-menu.test.mjs b/apps/desktop/test/window-menu.test.mjsindex a3ac543a9..507986371 100644--- a/apps/desktop/test/window-menu.test.mjs+++ b/apps/desktop/test/window-menu.test.mjs@@ -166,11 +166,11 @@ test("Windows and Linux use menu-free frameless chrome with window controls", ()assert.match(controlsSource, /ariaLabel=\{t\("window\.minimize"/);assert.match(controlsSource, /ariaLabel=\{t\("window\.close"/);assert.equal((appSource.match(/<WindowControls\s*\/>/g) ?? []).length, 1);- // The controls are rendered under the boot surfaces too, so a window that+ // The controls are rendered under the recovery surface too, so a window that// never reaches the shell is still closable (issue #831).assert.match(appSource,- /\{shell\}[\s\S]*?\{\(ready \|\| startupPhase !== "starting"\) && !showSplash \?/,+ /\{shell\}[\s\S]*?\{\(ready && !showSplash\) \|\| startupPhase !== "starting" \?/,);assert.match(stylesSource,diff --git a/apps/desktop/test/work-panel.test.mjs b/apps/desktop/test/work-panel.test.mjsindex 39d93b82b..9fb125837 100644--- a/apps/desktop/test/work-panel.test.mjs+++ b/apps/desktop/test/work-panel.test.mjs@@ -614,11 +614,11 @@ test("preview mode keeps shell actions and restores routes before navigation", (assert.match(appSource, /className=\{cx\([\s\S]*?"window-chrome-row"/);assert.match(appSource, /data-nav="new-task"/);assert.match(appSource, /<CollapsedTitlebarActions[\s\S]*?onNewTask=/);- // The boot surfaces (splash and startup recovery) own the window before the- // shell is ready, so the controls follow whichever of them is up.+ // `showSplash` stays true until the shell is ready, so the controls have to+ // follow the boot surface that is actually up (splash or startup recovery).assert.match(appSource,- /\{\(ready \|\| startupPhase !== "starting"\) && !showSplash \? \(\s*<WindowControls \/>/,+ /\{\(ready && !showSplash\) \|\| startupPhase !== "starting" \? \(\s*<WindowControls \/>/,);assert.match(appSource, /const workPanelMaximizedRef = useRef\(false\)/);assert.match(diff --git a/packages/i18n/src/locales/de/index.ts b/packages/i18n/src/locales/de/index.tsindex deeb57119..ac74dbafb 100644--- a/packages/i18n/src/locales/de/index.ts+++ b/packages/i18n/src/locales/de/index.ts@@ -13,6 +13,7 @@ export const de = {"slowBody": "PI-Desktop braucht länger als sonst, um Ihren lokalen Dienst zu erreichen. Der Start kann noch von selbst abschließen — Sie können warten oder zuerst die Protokolle sichern.","stalledTitle": "PI-Desktop konnte den Start nicht abschließen","stalledBody": "Dieses Fenster hat Ihre Chats und Einstellungen nie erhalten, daher gibt es noch nichts anzuzeigen. Es wurde nichts gelöscht — Ihre Daten sind noch auf dem Datenträger.",+ "retrying": "Erneuter Versuch…","copyDiagnostics": "Diagnosen kopieren","diagnosticsCopied": "Diagnosen kopiert","diagnosticsFailed": "Diagnosen konnten nicht kopiert werden"diff --git a/packages/i18n/src/locales/en/index.ts b/packages/i18n/src/locales/en/index.tsindex 74854d2b7..8564b8520 100644--- a/packages/i18n/src/locales/en/index.ts+++ b/packages/i18n/src/locales/en/index.ts@@ -11,6 +11,7 @@ export const en = {slowBody: "PI-Desktop is taking longer than usual to reach your local service. It may still finish on its own — you can wait, or collect the logs first.",stalledTitle: "PI-Desktop couldn't finish starting",stalledBody: "This window never received your chats and settings, so there is nothing to show yet. Nothing was deleted — your data is still on disk.",+ retrying: "Trying again…",copyDiagnostics: "Copy diagnostics",diagnosticsCopied: "Diagnostics copied",diagnosticsFailed: "Couldn't copy diagnostics",diff --git a/packages/i18n/src/locales/es/index.ts b/packages/i18n/src/locales/es/index.tsindex 05093e474..7381a3b9c 100644--- a/packages/i18n/src/locales/es/index.ts+++ b/packages/i18n/src/locales/es/index.ts@@ -13,6 +13,7 @@ export const es = {"slowBody": "PI-Desktop está tardando más de lo habitual en alcanzar tu servicio local. Puede que aún termine por sí solo — puedes esperar o recoger los registros primero.","stalledTitle": "PI-Desktop no pudo terminar de iniciarse","stalledBody": "Esta ventana nunca recibió tus chats y tu configuración, así que todavía no hay nada que mostrar. No se eliminó nada — tus datos siguen en el disco.",+ "retrying": "Reintentando…","copyDiagnostics": "Copiar diagnósticos","diagnosticsCopied": "Diagnósticos copiados","diagnosticsFailed": "No se pudieron copiar los diagnósticos"diff --git a/packages/i18n/src/locales/fr/index.ts b/packages/i18n/src/locales/fr/index.tsindex fc06758e7..1f54b4ab1 100644--- a/packages/i18n/src/locales/fr/index.ts+++ b/packages/i18n/src/locales/fr/index.ts@@ -13,6 +13,7 @@ export const fr = {"slowBody": "PI-Desktop met plus de temps que d'habitude à joindre votre service local. Le démarrage peut encore aboutir de lui-même — vous pouvez patienter ou récupérer d'abord les journaux.","stalledTitle": "PI-Desktop n'a pas pu terminer son démarrage","stalledBody": "Cette fenêtre n'a jamais reçu vos discussions ni vos paramètres, donc rien ne peut encore s'afficher. Rien n'a été supprimé — vos données sont toujours sur le disque.",+ "retrying": "Nouvelle tentative…","copyDiagnostics": "Copier les diagnostics","diagnosticsCopied": "Diagnostics copiés","diagnosticsFailed": "Impossible de copier les diagnostics"diff --git a/packages/i18n/src/locales/ko/index.ts b/packages/i18n/src/locales/ko/index.tsindex d96ce3905..c2f9b3491 100644--- a/packages/i18n/src/locales/ko/index.ts+++ b/packages/i18n/src/locales/ko/index.ts@@ -13,6 +13,7 @@ export const ko = {slowBody: "PI-Desktop이 로컬 서비스에 연결되는 데 평소보다 오래 걸리고 있습니다. 스스로 완료될 수도 있으니 기다리거나, 먼저 로그를 수집해 두세요.",stalledTitle: "PI-Desktop이 시작을 완료하지 못했습니다",stalledBody: "이 창은 대화와 설정을 받지 못해 아직 표시할 내용이 없습니다. 삭제된 것은 없으며 데이터는 여전히 디스크에 있습니다.",+ retrying: "다시 시도하는 중…",copyDiagnostics: "진단 정보 복사",diagnosticsCopied: "진단 정보 복사됨",diagnosticsFailed: "진단 정보를 복사하지 못했습니다",diff --git a/packages/i18n/src/locales/tr/index.ts b/packages/i18n/src/locales/tr/index.tsindex 25269eca8..708cbb22e 100644--- a/packages/i18n/src/locales/tr/index.ts+++ b/packages/i18n/src/locales/tr/index.ts@@ -13,6 +13,7 @@ export const tr = {slowBody: "PI-Desktop yerel servise ulaşmakta normalden uzun sürüyor. Kendiliğinden tamamlanabilir — bekleyebilir ya da önce günlükleri toplayabilirsiniz.",stalledTitle: "PI-Desktop başlatmayı tamamlayamadı",stalledBody: "Bu pencere sohbetlerinizi ve ayarlarınızı hiç almadı, bu yüzden henüz gösterilecek bir şey yok. Hiçbir şey silinmedi — verileriniz hâlâ diskte.",+ retrying: "Yeniden deneniyor…",copyDiagnostics: "Tanılamaları kopyala",diagnosticsCopied: "Tanılamalar kopyalandı",diagnosticsFailed: "Tanılamalar kopyalanamadı",diff --git a/packages/i18n/src/locales/zh-CN/index.ts b/packages/i18n/src/locales/zh-CN/index.tsindex bf88084e6..cbefc34ce 100644--- a/packages/i18n/src/locales/zh-CN/index.ts+++ b/packages/i18n/src/locales/zh-CN/index.ts@@ -13,6 +13,7 @@ export const zhCN = {slowBody: "PI-Desktop 连接本地服务比平时更久,可能还会自己完成启动——你可以继续等待,也可以先把日志收好。",stalledTitle: "PI-Desktop 未能完成启动",stalledBody: "这个窗口一直没拿到你的会话和设置,所以暂时没有内容可以显示。数据没有被删除,仍在磁盘上。",+ retrying: "正在重试…",copyDiagnostics: "复制诊断信息",diagnosticsCopied: "诊断信息已复制",diagnosticsFailed: "无法复制诊断信息",diff --git a/packages/i18n/src/locales/zh-TW/index.ts b/packages/i18n/src/locales/zh-TW/index.tsindex 6581d7a4c..b372f591b 100644--- a/packages/i18n/src/locales/zh-TW/index.ts+++ b/packages/i18n/src/locales/zh-TW/index.ts@@ -13,6 +13,7 @@ export const zhTW = {slowBody: "PI-Desktop 連接本地服務比平時更久,可能還是會自己完成啟動——你可以繼續等待,也可以先把日誌收好。",stalledTitle: "PI-Desktop 未能完成啟動",stalledBody: "這個視窗一直沒拿到你的會話與設定,所以暫時沒有內容可以顯示。資料沒有被刪除,仍在磁碟上。",+ retrying: "正在重試…",copyDiagnostics: "複製診斷資訊",diagnosticsCopied: "診斷資訊已複製",diagnosticsFailed: "無法複製診斷資訊",