Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
feat(update): check in the background, show an update button, install on quit
EtienneLescot4c10aab08c0b
diff --git a/AGENTS.md b/AGENTS.mdindex ceea69bb6..e9557c6b7 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -132,7 +132,7 @@ This section is the *mechanics*. **What to actually run is [`technical-documenta**The tray icon** (notification area on Windows, menu bar on macOS, the desktop's indicator area on Linux)- Because the HUD skips the taskbar and can be minimized/hidden, the **system-tray icon is the reliable way to refocus the app**: **a click or double-click brings back the app's window** (`showMainWindow`: the HUD, or the editor while it is open), and so does its menu's *Open*. Its icon swaps to a red dot while recording.-- **Right-click → context menu**: when idle, *Open*, *Check for Updates* (not on a Store, Flathub, Snap or Nix install), *Update Settings* (packaged builds that update themselves), *About OpenScreen*, *Save Diagnostics*, *Permissions…* (macOS), *Quit*; while recording, only ***Stop Recording*** (mirrors the HUD's stop). Tooltip shows `OpenScreen` or `Recording: <source>`. Use this to stop a recording if the HUD isn't reachable.+- **Right-click → context menu**: when idle, *Open*, *Update to <version>* (only while a background check has found one; the same click as the HUD's and the editor's blue update button), *Check for Updates* (not on a Store, Flathub, Snap or Nix install), *Update Settings* (packaged builds that update themselves), *About OpenScreen*, *Save Diagnostics*, *Permissions…* (macOS), *Quit*; while recording, only ***Stop Recording*** (mirrors the HUD's stop). Tooltip shows `OpenScreen` or `Recording: <source>`. Use this to stop a recording if the HUD isn't reachable.**End-to-end flow (record → edit)**diff --git a/electron/auto-updater.test.ts b/electron/auto-updater.test.tsindex 3f60a2ec2..80fdb4570 100644--- a/electron/auto-updater.test.ts+++ b/electron/auto-updater.test.ts@@ -1,10 +1,15 @@-import { beforeEach, describe, expect, it, vi } from "vitest";+import { mkdtempSync, readdirSync, rmSync } from "node:fs";+import os from "node:os";+import path from "node:path";+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";import {blockedFromInstalling,checkForSelfUpdate,downloadSelfUpdate,type InstallReadiness,+ installNeedsElevation,installSelfUpdate,+ setInstallOnQuit,} from "./auto-updater";const mocks = vi.hoisted(() => ({@@ -155,4 +160,64 @@ describe("self-update flow", () => {await installSelfUpdate();expect(mocks.autoUpdater.quitAndInstall).toHaveBeenCalledWith(false, true);});++ // electron-updater only registers its quit handler if the flag is on when the download ends,+ // and only installs if it is still on at quit. Both halves have to follow the switch.+ it("applies install-on-quit at the next call and flips it live once loaded", async () => {+ mocks.autoUpdater.checkForUpdates.mockResolvedValue({ updateInfo: { version: "1.9.2" } });+ try {+ setInstallOnQuit(true);+ await checkForSelfUpdate("nsis");+ expect(mocks.autoUpdater.autoInstallOnAppQuit).toBe(true);+ // From before-quit: synchronous, no updater call in between.+ setInstallOnQuit(false);+ expect(mocks.autoUpdater.autoInstallOnAppQuit).toBe(false);+ } finally {+ setInstallOnQuit(false);+ }+ });+});++describe("installNeedsElevation", () => {+ const dirs: string[] = [];+ afterEach(() => {+ for (const dir of dirs) rmSync(dir, { recursive: true, force: true });+ dirs.length = 0;+ });+ function installDir(): string {+ const dir = mkdtempSync(path.join(os.tmpdir(), "os-install-"));+ dirs.push(dir);+ return dir;+ }++ it("always needs it for a package the system package manager installed", () => {+ for (const channel of ["deb", "rpm", "pacman"] as const) {+ expect(installNeedsElevation(channel, path.join(installDir(), "openscreen"))).toBe(true);+ }+ });++ it("never asks on macOS, where Squirrel installs", () => {+ expect(installNeedsElevation("dmg", "/nonexistent/Openscreen.app/Contents/MacOS/x")).toBe(+ false,+ );+ });++ it("needs none where the install directory is writable, and leaves nothing behind", () => {+ const dir = installDir();+ expect(installNeedsElevation("nsis", path.join(dir, "Openscreen.exe"))).toBe(false);+ expect(readdirSync(dir)).toEqual([]);+ });++ it("needs it where the install directory cannot be written", () => {+ const missing = path.join(installDir(), "gone", "Openscreen.exe");+ expect(installNeedsElevation("nsis", missing)).toBe(true);+ });++ it("probes the AppImage's own folder, not the mount it runs from", () => {+ const dir = installDir();+ const mount = path.join(dir, "missing-mount", "openscreen");+ expect(installNeedsElevation("appimage", mount, path.join(dir, "Openscreen.AppImage"))).toBe(+ false,+ );+ });});diff --git a/electron/auto-updater.ts b/electron/auto-updater.tsindex fdee80d2b..36a03a0c8 100644--- a/electron/auto-updater.ts+++ b/electron/auto-updater.ts@@ -8,7 +8,10 @@// bundle and come along. What does NOT come along is anything under userData — recordings,// projects, and the ~500 MB STT model — which is exactly what we want.+import { mkdtempSync, rmdirSync } from "node:fs";+import path from "node:path";import { app } from "electron";+import type { AppUpdater } from "electron-updater";import type { InstallChannel } from "./install-channel";import { ownsItsUpdates } from "./install-channel";@@ -36,24 +39,59 @@ export function blockedFromInstalling(state: InstallReadiness): string | null {return null;}+/** Whether a downloaded update installs as the app quits. Off unless the user's update mode asks+ * for it, and main turns it back off at quit when `shouldInstallOnQuit` says not now. */+let installOnQuit = false;+/** Set once electron-updater has been imported, so `setInstallOnQuit` can reach it synchronously+ * from `before-quit` without importing it there. */+let loadedUpdater: AppUpdater | null = null;++/** electron-updater reads the flag twice. At download, where only a `true` registers its quit+ * handler (and, on macOS, hands the update to Squirrel, which then installs on any quit), and at+ * quit, where the handler skips the install if it is `false` by then. */+export function setInstallOnQuit(enabled: boolean): void {+ installOnQuit = enabled;+ if (loadedUpdater) loadedUpdater.autoInstallOnAppQuit = enabled;+}+/** Loaded lazily: importing electron-updater costs startup time on every launch, and the* channels that cannot use it must not pay for it at all. */async function getUpdater() {const { autoUpdater } = await import("electron-updater");- // Never surprise the user with a 240 MB download or an install they did not ask for.- // `window-all-closed` quits this app, and the HUD is a window — with the default- // `autoInstallOnAppQuit` simply closing the HUD would kick off an installer.+ // Never download behind the user's back from here: every download is an explicit+ // `downloadSelfUpdate`, made by the update mode or by a click.//// Reapplied on every call rather than set once behind a flag: these are three property// writes, so memoising them buys nothing measurable, and a "configured" flag would mean// anything that later reset them is never corrected — while making the guarantee hold only// for whichever caller happened to come first.autoUpdater.autoDownload = false;- autoUpdater.autoInstallOnAppQuit = false;+ autoUpdater.autoInstallOnAppQuit = installOnQuit;autoUpdater.logger = null;+ loadedUpdater = autoUpdater;return autoUpdater;}+/** Would replacing this install prompt for rights the user has to grant? deb, rpm and pacman always+ * go through pkexec. For NSIS and AppImage the install directory is probed by writing into it,+ * because on Windows `fs.access` ignores ACLs and calls Program Files writable. macOS is not+ * asked: Squirrel installs there. */+export function installNeedsElevation(+ channel: InstallChannel,+ execPath: string = process.execPath,+ appImage: string | undefined = process.env.APPIMAGE,+): boolean {+ if (channel === "deb" || channel === "rpm" || channel === "pacman") return true;+ if (channel === "dmg") return false;+ const dir = path.dirname(channel === "appimage" && appImage ? appImage : execPath);+ try {+ rmdirSync(mkdtempSync(path.join(dir, ".update-probe-")));+ return false;+ } catch {+ return true;+ }+}+/** Is an update available, and can this install apply it itself? */export async function checkForSelfUpdate(channel: InstallChannel): Promise<UpdateOutcome> {if (!ownsItsUpdates(channel) || !app.isPackaged) return { kind: "unsupported" };diff --git a/electron/background-update.test.ts b/electron/background-update.test.tsindex 53f92b0c5..61d82a158 100644--- a/electron/background-update.test.ts+++ b/electron/background-update.test.ts@@ -2,6 +2,7 @@ import { describe, expect, it, vi } from "vitest";import {planBackgroundUpdate,runUnblockedDownloadAndInstall,+ shouldInstallOnQuit,shouldQuitAndInstallAfterRestartPrompt,shouldStartBackgroundUpdateTimer,} from "./background-update";@@ -65,6 +66,19 @@ describe("background update policy", () => {expect(shouldQuitAndInstallAfterRestartPrompt(0)).toBe(true);});+ // The NSIS installer ends every process of this executable, so an install nobody clicked for+ // must not cut an agent's `openscreen mcp` session short, nor raise a UAC or pkexec prompt on+ // the way out.+ it("installs on quit only in its mode, without elevation and with no CLI run alive", () => {+ const clear = { needsElevation: false, cliSessionAlive: false };+ expect(shouldInstallOnQuit({ ...clear, mode: "download-and-install" })).toBe(true);+ expect(shouldInstallOnQuit({ ...clear, mode: "download" })).toBe(false);+ expect(shouldInstallOnQuit({ ...clear, mode: "notify" })).toBe(false);+ const auto = { ...clear, mode: "download-and-install" as const };+ expect(shouldInstallOnQuit({ ...auto, needsElevation: true })).toBe(false);+ expect(shouldInstallOnQuit({ ...auto, cliSessionAlive: true })).toBe(false);+ });+it("hands the download error back so the dialog can show its message", async () => {const error = new Error("ECONNRESET mid-download");const failed = await runUnblockedDownloadAndInstall({diff --git a/electron/background-update.ts b/electron/background-update.tsindex ec17e3431..d1ce9ed36 100644--- a/electron/background-update.ts+++ b/electron/background-update.ts@@ -1,14 +1,40 @@import type { UpdateOutcome } from "./auto-updater";-/** How far a background-discovered update may go on its own. No mode ever- * flips `autoInstallOnAppQuit`: install is always an explicit- * `quitAndInstall` behind a restart prompt, because `window-all-closed`- * quits this app and the HUD is a window — install-on-quit would fire a- * ~243 MB installer when the user merely closed the HUD. */+/** How far a background-discovered update may go on its own. None of them opens a dialog: a+ * background find only ever becomes the update button (`UpdateBadge`). `download-and-install`+ * also installs the downloaded update when the app quits, silently and without relaunching,+ * unless `shouldInstallOnQuit` says not now. Closing the last window quits this app, so that+ * quit is an ordinary one, and the installer is already on disk by then. */export type UpdateMode = "notify" | "download" | "download-and-install";-export const DEFAULT_UPDATE_MODE: UpdateMode = "notify";-export const BACKGROUND_UPDATE_INTERVAL_MS = 24 * 60 * 60 * 1000;+/** Keeping users current is the point, so the default goes all the way. A mode the user picked in+ * the tray is stored and wins. */+export const DEFAULT_UPDATE_MODE: UpdateMode = "download-and-install";+/** A minute after launch, then every six hours. Most sessions end long before 24 hours, so a check+ * that only ran once a day of uptime almost never ran at all. */+export const BACKGROUND_UPDATE_FIRST_CHECK_MS = 60 * 1000;+export const BACKGROUND_UPDATE_INTERVAL_MS = 6 * 60 * 60 * 1000;++/** What a background find shows: a button in the HUD and the editor, and a tray item. */+export interface UpdateBadge {+ /** `available`: found, not downloaded, so the click downloads it (or opens the release page,+ * when only the release lookup worked). `ready`: downloaded, so the click restarts into it. */+ state: "available" | "ready";+ version: string;+}++/** May the downloaded update install while the app quits? Only in the mode that says so; only+ * where it needs no rights the user would be prompted for on the way out (UAC for a per-machine+ * NSIS install, pkexec for deb/rpm/pacman); and never while a CLI run is alive, because the NSIS+ * installer ends every process of this executable, `openscreen mcp` driven by an agent included.+ * The update button does not ask this: a click is the user deciding. */+export function shouldInstallOnQuit(input: {+ mode: UpdateMode;+ needsElevation: boolean;+ cliSessionAlive: boolean;+}): boolean {+ return input.mode === "download-and-install" && !input.needsElevation && !input.cliSessionAlive;+}export function parseUpdateMode(raw: unknown): UpdateMode {if (raw === "notify" || raw === "download" || raw === "download-and-install") return raw;diff --git a/electron/cli/sessionData.test.ts b/electron/cli/sessionData.test.tsindex d770b6a66..dffd84251 100644--- a/electron/cli/sessionData.test.ts+++ b/electron/cli/sessionData.test.ts@@ -1,5 +1,8 @@-import { describe, expect, it } from "vitest";-import { isAbandonedSession, type SessionOwner } from "./sessionData";+import fs from "node:fs";+import os from "node:os";+import path from "node:path";+import { afterEach, describe, expect, it } from "vitest";+import { hasLiveCliSession, isAbandonedSession, type SessionOwner } from "./sessionData";const DAY = 24 * 60 * 60 * 1000;const self: SessionOwner = { host: "box", pidNamespace: "pid:[1]", pid: 100 };@@ -31,3 +34,38 @@ describe("isAbandonedSession", () => {expect(isAbandonedSession({ ...self, host: "other" }, 8 * DAY, self, alive)).toBe(true);});});++describe("hasLiveCliSession", () => {+ const dirs: string[] = [];+ afterEach(() => {+ for (const dir of dirs) fs.rmSync(dir, { recursive: true, force: true });+ dirs.length = 0;+ });+ function userData(): string {+ const dir = fs.mkdtempSync(path.join(os.tmpdir(), "os-cli-sessions-"));+ dirs.push(dir);+ return dir;+ }+ function addRun(root: string, owner: SessionOwner | null) {+ const run = path.join(root, "cli-sessions", "200-abc");+ fs.mkdirSync(run, { recursive: true });+ if (owner) fs.writeFileSync(path.join(run, "owner.json"), JSON.stringify(owner));+ }++ it("finds none when no CLI run ever started", () => {+ expect(hasLiveCliSession(userData(), alive, self)).toBe(false);+ });++ it("sees an agent's `openscreen mcp` run while its pid lives, and not after", () => {+ const root = userData();+ addRun(root, { ...self, pid: 200 });+ expect(hasLiveCliSession(root, alive, self)).toBe(true);+ expect(hasLiveCliSession(root, dead, self)).toBe(false);+ });++ it("does not count a folder whose run never wrote its owner", () => {+ const root = userData();+ addRun(root, null);+ expect(hasLiveCliSession(root, alive, self)).toBe(false);+ });+});diff --git a/electron/cli/sessionData.ts b/electron/cli/sessionData.tsindex 0d2ade872..2d3ed303d 100644--- a/electron/cli/sessionData.ts+++ b/electron/cli/sessionData.ts@@ -64,6 +64,37 @@ function isProcessAlive(pid: number): boolean {}}+/**+ * Whether a CLI run is alive: `openscreen mcp` started by an agent, an export, anything that+ * went through `isolateCliSessionData`. The app asks before installing an update on quit, since+ * the NSIS installer ends every process of this executable. A folder with no readable owner+ * counts as no run: it is one that died before writing it, or one a few milliseconds old.+ */+export function hasLiveCliSession(+ userData: string,+ isAlive: (pid: number) => boolean = isProcessAlive,+ self: SessionOwner = currentOwner(),+): boolean {+ const root = path.join(userData, CLI_SESSIONS_DIR);+ let entries: fs.Dirent[];+ try {+ entries = fs.readdirSync(root, { withFileTypes: true });+ } catch {+ return false;+ }+ return entries.some((entry) => {+ if (!entry.isDirectory()) return false;+ const ownerPath = path.join(root, entry.name, OWNER_FILE);+ try {+ const owner = JSON.parse(fs.readFileSync(ownerPath, "utf8")) as SessionOwner;+ const ageMs = Date.now() - fs.statSync(ownerPath).mtimeMs;+ return !isAbandonedSession(owner, ageMs, self, isAlive);+ } catch {+ return false;+ }+ });+}+async function readOwner(dir: string): Promise<{ owner: SessionOwner | null; ageMs: number }> {const ownerPath = path.join(dir, OWNER_FILE);try {diff --git a/electron/electron-env.d.ts b/electron/electron-env.d.tsindex fc6b5f911..b85d616ce 100644--- a/electron/electron-env.d.ts+++ b/electron/electron-env.d.ts@@ -469,6 +469,11 @@ interface Window {checkForUpdates: () => Promise<void>;showAbout: () => Promise<void>;canCheckForUpdatesNow: () => Promise<boolean>;+ getUpdateBadge: () => Promise<import("./background-update").UpdateBadge | null>;+ onUpdateBadgeChanged: (+ callback: (badge: import("./background-update").UpdateBadge | null) => void,+ ) => () => void;+ applyUpdate: () => Promise<void>;revealInFolder: (filePath: string,) => Promise<{ success: boolean; error?: string; message?: string }>;diff --git a/electron/main.ts b/electron/main.tsindex 43249d65a..bb5ad40e9 100644--- a/electron/main.ts+++ b/electron/main.ts@@ -26,18 +26,24 @@ import {blockedFromInstalling,checkForSelfUpdate,downloadSelfUpdate,+ installNeedsElevation,installSelfUpdate,+ setInstallOnQuit,type UpdateOutcome,} from "./auto-updater";import {+ BACKGROUND_UPDATE_FIRST_CHECK_MS,BACKGROUND_UPDATE_INTERVAL_MS,planBackgroundUpdate,runUnblockedDownloadAndInstall,+ shouldInstallOnQuit,shouldStartBackgroundUpdateTimer,+ type UpdateBadge,type UpdateMode,} from "./background-update";import { parseCliArgs } from "./cli/args";import { runCli } from "./cli/cliMain";+import { hasLiveCliSession } from "./cli/sessionData";import { disableHttpCacheForDevServer } from "./dev-http-cache";import { mainLogBuffer } from "./diagnostics/main-log-buffer";import { buildEditMenuSubmenu, type EditorUndoRedoChannel, routeEditorUndoRedo } from "./edit-menu";@@ -610,6 +616,12 @@ function runUpdateCheck() {});}+function runApplyUpdate() {+ applyUpdate().catch((error) => {+ console.error("[updates] update failed", error);+ });+}+/*** Menu and tray entry point for exporting a diagnostic bundle. The backend* (`exportDiagnosticFile`) and its "Save Diagnostics" label already existed —@@ -659,6 +671,13 @@ function runSaveDiagnostics() {let isRecording = false;let currentUpdateMode: UpdateMode = "notify";let backgroundUpdateTimer: ReturnType<typeof setInterval> | null = null;+/** The update button, shown by the HUD, the editor and the tray; null hides it. Only a background+ * check and the downloads it leads to set it: the manual check keeps its own dialogs. */+let updateBadge: UpdateBadge | null = null;+/** Set when the self-updater failed and only the release lookup found the version: the button+ * then opens this page, the one way out a broken updater leaves. */+let updateReleasePage: string | null = null;+let applyUpdateInFlight = false;function showUpdateSettingsMenu(): boolean {return app.isPackaged && ownsItsUpdates(getInstallChannel());@@ -667,9 +686,39 @@ function showUpdateSettingsMenu(): boolean {function persistUpdateMode(mode: UpdateMode) {currentUpdateMode = mode;saveUpdateMode(app.getPath("userData"), mode);+ setInstallOnQuit(mode === "download-and-install");+ updateTrayMenu(isRecording);+}++function setUpdateBadge(badge: UpdateBadge | null, releasePage: string | null = null) {+ updateBadge = badge;+ updateReleasePage = releasePage;+ for (const window of BrowserWindow.getAllWindows()) {+ if (!window.isDestroyed()) window.webContents.send("update-badge-changed", badge);+ }updateTrayMenu(isRecording);}+function installBlock(): string | null {+ return blockedFromInstalling({+ recording: isRecording,+ inApplicationsFolder:+ process.platform === "darwin" ? (app.isInApplicationsFolder?.() ?? true) : true,+ platform: process.platform,+ });+}++async function showBlockedInstall(blocked: string) {+ await showMessageBox({+ type: "info",+ title: PRODUCT_NAME,+ message: mainT(+ "common",+ blocked === "recording" ? "updates.blockedRecording" : "updates.blockedLocation",+ ),+ });+}+let usagePingEnabled = true;/** Hidden where the ping never runs anyway: a dev build, or DO_NOT_TRACK set. */@@ -696,13 +745,7 @@ function runUsagePing() {async function downloadAndInstall(latestVersion: string) {const result = await runUnblockedDownloadAndInstall({download: downloadSelfUpdate,- blocked: () =>- blockedFromInstalling({- recording: isRecording,- inApplicationsFolder:- process.platform === "darwin" ? (app.isInApplicationsFolder?.() ?? true) : true,- platform: process.platform,- }),+ blocked: installBlock,confirmRestart: async () => {const restart = await showMessageBox({type: "info",@@ -730,72 +773,54 @@ async function downloadAndInstall(latestVersion: string) {});return;}+ // Downloaded, then left for later: the button now restarts straight into it.+ if (result.status === "blocked" || result.status === "cancelled") {+ setUpdateBadge({ state: "ready", version: latestVersion });+ }if (result.status === "blocked") {- const blocked = blockedFromInstalling({- recording: isRecording,- inApplicationsFolder:- process.platform === "darwin" ? (app.isInApplicationsFolder?.() ?? true) : true,- platform: process.platform,- });- await showMessageBox({- type: "info",- title: PRODUCT_NAME,- message: mainT(- "common",- blocked === "recording" ? "updates.blockedRecording" : "updates.blockedLocation",- ),- });+ const blocked = installBlock();+ if (blocked) await showBlockedInstall(blocked);}}-async function presentAvailableUpdate(latestVersion: string) {- const choice = await showMessageBox({- type: "info",- title: PRODUCT_NAME,- message: mainT("common", "updates.available", {- currentVersion: app.getVersion(),- latestVersion,- }),- buttons: [- mainT("common", "actions.downloadUpdate") || "Download Update",- mainT("common", "actions.cancel") || "Cancel",- ],- defaultId: 0,- cancelId: 1,- });- if (choice.response === 0) await downloadAndInstall(latestVersion);-}-+/** Never a dialog: a background find becomes the update button, and a failure is only logged. */async function runBackgroundUpdateCheck() {if (updateCheckInFlight || !canOfferUpdateCheck()) return;updateCheckInFlight = true;try {const outcome = await probeSelfUpdate();- const plan = planBackgroundUpdate({ outcome, mode: currentUpdateMode });+ if (outcome.kind === "failed") {+ // A broken updater or a missing feed. The release lookup does not go through+ // electron-updater, so the user is still pointed at the release page instead of being+ // left on this version for good.+ console.warn("[updates] background self-update probe failed", outcome.error.message);+ const release = await checkLatestRelease({+ currentVersion: app.getVersion(),+ fetchLatest: (url, init) => net.fetch(url, init),+ signal: AbortSignal.timeout(10_000),+ });+ if (release.kind === "available") {+ setUpdateBadge({ state: "available", version: release.latestVersion }, release.releaseUrl);+ }+ return;+ }+ // A translocated Mac cannot install: it gets the button alone, whose click says why.+ const mode = installBlock() === "not-in-applications" ? "notify" : currentUpdateMode;+ const plan = planBackgroundUpdate({ outcome, mode });if (plan.action === "none") return;+ if (updateBadge?.state === "ready" && updateBadge.version === plan.version) return;if (plan.action === "notify-available") {- await presentAvailableUpdate(plan.version);+ setUpdateBadge({ state: "available", version: plan.version });return;}- if (plan.action === "download") {- const downloaded = await downloadSelfUpdate();- if (downloaded.kind === "failed") {- await showMessageBox({- type: "error",- title: PRODUCT_NAME,- message: mainT("common", "updates.downloadFailed"),- detail: downloaded.error.message,- });- return;- }- await showMessageBox({- type: "info",- title: PRODUCT_NAME,- message: mainT("common", "updates.downloaded", { latestVersion: plan.version }),- });+ const downloaded = await downloadSelfUpdate();+ if (downloaded.kind === "failed") {+ console.warn("[updates] background download failed", downloaded.error.message);+ // The click downloads it again, through the dialogs that can report a second failure.+ setUpdateBadge({ state: "available", version: plan.version });return;}- await downloadAndInstall(plan.version);+ setUpdateBadge({ state: "ready", version: plan.version });} catch (error) {console.error("[updates] background check failed", error);} finally {@@ -803,6 +828,27 @@ async function runBackgroundUpdateCheck() {}}+/** The update button. A click is the user deciding, so a live CLI run does not stop it, unlike+ * the install on quit; a take or a translocated Mac still does, with the dialog that says why. */+async function applyUpdate() {+ const badge = updateBadge;+ if (!badge || applyUpdateInFlight) return;+ applyUpdateInFlight = true;+ try {+ if (updateReleasePage) {+ await shell.openExternal(updateReleasePage);+ } else if (badge.state === "available") {+ await downloadAndInstall(badge.version);+ } else {+ const blocked = installBlock();+ if (blocked) await showBlockedInstall(blocked);+ else await installSelfUpdate();+ }+ } finally {+ applyUpdateInFlight = false;+ }+}+function startBackgroundUpdateTimer() {if (backgroundUpdateTimer) return;if (@@ -813,6 +859,9 @@ function startBackgroundUpdateTimer() {) {return;}+ setTimeout(() => {+ void runBackgroundUpdateCheck();+ }, BACKGROUND_UPDATE_FIRST_CHECK_MS).unref?.();backgroundUpdateTimer = setInterval(() => {void runBackgroundUpdateCheck();}, BACKGROUND_UPDATE_INTERVAL_MS);@@ -953,6 +1002,16 @@ function updateTrayMenu(recording: boolean = false) {showMainWindow();},},+ ...(updateBadge+ ? [+ {+ label:+ mainT("common", "actions.updateTo", { version: updateBadge.version }) ||+ `Update to ${updateBadge.version}`,+ click: runApplyUpdate,+ },+ ]+ : []),// Omitted entirely where a package manager owns the update (Microsoft Store,// Flathub, Snap, Nix): there the app is already kept current, and offering a// GitHub download walks the user into a second, parallel installation.@@ -1211,6 +1270,17 @@ app.on("before-quit", (event) => {// quit is deferred below: the user asked to leave, and a check they can re-run from the// tray is not worth holding the helper's teardown behind.updateCheckAbort?.abort();+ // Decided here rather than when the download finished: a CLI run can start or end, and the+ // mode can change, while the update waits. The last before-quit is the one that counts.+ if (updateBadge?.state === "ready") {+ setInstallOnQuit(+ shouldInstallOnQuit({+ mode: currentUpdateMode,+ needsElevation: installNeedsElevation(getInstallChannel()),+ cliSessionAlive: hasLiveCliSession(app.getPath("userData")),+ }),+ );+ }if (sttShutdownFinished) return;event.preventDefault();if (sttShutdownPromise) return;@@ -1350,6 +1420,13 @@ appReady?.then(async () => {// then silently refuses.ipcMain.handle("can-check-for-updates-now", () => canOfferUpdateCheck());+ // The update button. Pushed as `update-badge-changed`; this is for a window that mounts later.+ ipcMain.handle("get-update-badge", () => updateBadge);+ // Returns at once: whatever follows the click is a native dialog or a quit, owned by this side.+ ipcMain.handle("apply-update", () => {+ runApplyUpdate();+ });+// The one-time star ask. Decided here, not in the renderer, for the same reason the update// check is: the take flag and the install channel live in this file, and a rule enforced in// two places is a rule that gets asked two different ways. The renderer learns yes or no —@@ -1436,6 +1513,7 @@ appReady?.then(async () => {// all (see auto-updater.ts getUpdater) — every real update path applies// its settings lazily on first use.currentUpdateMode = loadUpdateMode(app.getPath("userData"));+ setInstallOnQuit(currentUpdateMode === "download-and-install");usagePingEnabled = loadUsagePingState(app.getPath("userData")).enabled;createTray();updateTrayMenu();diff --git a/electron/preload.ts b/electron/preload.tsindex 23160bcaa..4e96cdb76 100644--- a/electron/preload.ts+++ b/electron/preload.ts@@ -18,6 +18,7 @@ import {NATIVE_BRIDGE_CHANNEL,type NativeBridgeRequest,} from "../src/native/contracts";+import type { UpdateBadge } from "./background-update";import type { RecordingPrefs } from "./ipc/handlers";import type {SttStatusEvent,@@ -491,6 +492,16 @@ contextBridge.exposeInMainWorld("electronAPI", {* permanent half; this one also answers "not mid-take", so it is only correct for a caller* that asks at the moment it shows the affordance. */canCheckForUpdatesNow: () => ipcRenderer.invoke("can-check-for-updates-now") as Promise<boolean>,+ /** The update button's state: null hides it. Found by the main process's background check. */+ getUpdateBadge: () => ipcRenderer.invoke("get-update-badge") as Promise<UpdateBadge | null>,+ onUpdateBadgeChanged: (callback: (badge: UpdateBadge | null) => void) => {+ const listener = (_event: unknown, badge: UpdateBadge | null) => callback(badge);+ ipcRenderer.on("update-badge-changed", listener);+ return () => ipcRenderer.removeListener("update-badge-changed", listener);+ },+ /** The button's click. Resolves at once; the dialogs or the restart that follow are the main+ * process's. */+ applyUpdate: () => ipcRenderer.invoke("apply-update") as Promise<void>,revealInFolder: (filePath: string) => {return ipcRenderer.invoke("reveal-in-folder", filePath);},diff --git a/electron/update-settings.test.ts b/electron/update-settings.test.tsindex 4050987c6..9e977e27a 100644--- a/electron/update-settings.test.ts+++ b/electron/update-settings.test.ts@@ -2,7 +2,7 @@ import { mkdtempSync, rmSync, writeFileSync } from "node:fs";import os from "node:os";import path from "node:path";import { afterEach, describe, expect, it } from "vitest";-import { parseUpdateMode } from "./background-update";+import { DEFAULT_UPDATE_MODE, parseUpdateMode } from "./background-update";import { loadUpdateMode, saveUpdateMode, updateSettingsPath } from "./update-settings";const temps: string[] = [];@@ -19,25 +19,29 @@ function tmp(): string {}describe("update settings", () => {+ // Saved as something other than the default, or a load that ignored the file would pass too.it("round-trips a saved mode through load", () => {const dir = tmp();- saveUpdateMode(dir, "download-and-install");- expect(loadUpdateMode(dir)).toBe("download-and-install");+ saveUpdateMode(dir, "notify");+ expect(loadUpdateMode(dir)).toBe("notify");});- it("defaults to notify when nothing was ever saved", () => {- expect(loadUpdateMode(tmp())).toBe("notify");+ // Keeping users current is what the setting is for, so a user who never opened it gets the+ // mode that downloads and installs on its own.+ it("defaults to download-and-install when nothing was ever saved", () => {+ expect(DEFAULT_UPDATE_MODE).toBe("download-and-install");+ expect(loadUpdateMode(tmp())).toBe("download-and-install");});- it("falls back to notify on a corrupt settings file instead of throwing", () => {+ it("falls back to the default on a corrupt settings file instead of throwing", () => {const dir = tmp();writeFileSync(updateSettingsPath(dir), '{"mode": not-even-json !!}');- expect(loadUpdateMode(dir)).toBe("notify");+ expect(loadUpdateMode(dir)).toBe(DEFAULT_UPDATE_MODE);});it("refuses garbage mode values rather than trusting the file", () => {for (const garbage of ["install-silently", "", 42, null, { mode: "download" }]) {- expect(parseUpdateMode(garbage)).toBe("notify");+ expect(parseUpdateMode(garbage)).toBe(DEFAULT_UPDATE_MODE);}expect(parseUpdateMode("download")).toBe("download");});diff --git a/src/components/ai-edition/v4/EditorShellV4.module.css b/src/components/ai-edition/v4/EditorShellV4.module.cssindex 77bc77fd4..2c43257d8 100644--- a/src/components/ai-edition/v4/EditorShellV4.module.css+++ b/src/components/ai-edition/v4/EditorShellV4.module.css@@ -435,6 +435,26 @@opacity: 0.5;cursor: not-allowed;}+/* Present only while an update waits, so it is quieter than Export: a tint, not a fill. */+.updateBtn {+ display: inline-flex;+ align-items: center;+ gap: 6px;+ height: var(--topbar-icon);+ padding: 0 12px;+ border-radius: 10px;+ background: var(--update-soft);+ color: var(--update);+ border: 1px solid transparent;+ font-size: 13px;+ font-weight: 600;+ cursor: pointer;+ flex-shrink: 0;+ transition: border-color var(--motion-fast) var(--ease);+}+.updateBtn:hover {+ border-color: var(--update);+}/* ─── Responsive topbar rules ─── */@media (max-width: 1240px) {@@ -504,10 +524,12 @@font-size: 11px;max-width: 70px;}- .exportLabel {+ .exportLabel,+ .updateLabel {display: none;}- .exportBtn {+ .exportBtn,+ .updateBtn {padding: 0;width: var(--topbar-icon);justify-content: center;diff --git a/src/components/ai-edition/v4/EditorTopBar.test.tsx b/src/components/ai-edition/v4/EditorTopBar.test.tsxindex 9377d994c..71d83d96b 100644--- a/src/components/ai-edition/v4/EditorTopBar.test.tsx+++ b/src/components/ai-edition/v4/EditorTopBar.test.tsx@@ -532,3 +532,65 @@ describe("top bar drag region while a menu is open (issue #1009)", () => {expect(bar.matches(condition)).toBe(false);});});++describe("the update button", () => {+ function stubUpdateBadge(initial: { state: "available" | "ready"; version: string } | null) {+ let push: ((badge: typeof initial) => void) | null = null;+ const applyUpdate = vi.fn(() => Promise.resolve());+ (window as unknown as { electronAPI?: unknown }).electronAPI = {+ getAppInfo: () => Promise.resolve({ version: "2.1.2", canCheckForUpdates: true }),+ canCheckForUpdatesNow: () => Promise.resolve(true),+ getUpdateBadge: () => Promise.resolve(initial),+ onUpdateBadgeChanged: (callback: (badge: typeof initial) => void) => {+ push = callback;+ return () => {+ push = null;+ };+ },+ applyUpdate,+ };+ return {+ applyUpdate,+ push: (badge: typeof initial) => act(() => push?.(badge)),+ restore: () => {+ (window as unknown as { electronAPI?: unknown }).electronAPI = undefined;+ },+ };+ }++ it("stays out of the bar while no update waits", async () => {+ const stub = stubUpdateBadge(null);+ try {+ renderTopBar("Demo Project");+ await act(async () => {});+ expect(screen.queryByRole("button", { name: /actions\.updateTo/ })).not.toBeInTheDocument();+ } finally {+ stub.restore();+ }+ });++ it("appears once the main process has one ready, and hands the click back to it", async () => {+ const stub = stubUpdateBadge({ state: "ready", version: "2.2.0" });+ try {+ renderTopBar("Demo Project");+ fireEvent.click(await screen.findByRole("button", { name: /actions\.updateTo/ }));+ expect(stub.applyUpdate).toHaveBeenCalledTimes(1);+ } finally {+ stub.restore();+ }+ });++ it("follows a badge the background check pushes after the bar mounted", async () => {+ const stub = stubUpdateBadge(null);+ try {+ renderTopBar("Demo Project");+ await act(async () => {});+ stub.push({ state: "available", version: "2.2.0" });+ expect(screen.getByRole("button", { name: /actions\.updateTo/ })).toBeInTheDocument();+ stub.push(null);+ expect(screen.queryByRole("button", { name: /actions\.updateTo/ })).not.toBeInTheDocument();+ } finally {+ stub.restore();+ }+ });+});diff --git a/src/components/ai-edition/v4/EditorTopBar.tsx b/src/components/ai-edition/v4/EditorTopBar.tsxindex 6968b3661..d85a4189e 100644--- a/src/components/ai-edition/v4/EditorTopBar.tsx+++ b/src/components/ai-edition/v4/EditorTopBar.tsx@@ -1,5 +1,6 @@import {ChevronDown,+ CircleArrowDown,Download,FolderOpen,FolderPlus,@@ -22,6 +23,7 @@ import { Tooltip } from "@/components/ui/tooltip";import { useI18n, useScopedT } from "@/contexts/I18nContext";import { useShortcuts } from "@/contexts/ShortcutsContext";import { useTheme } from "@/hooks/useTheme";+import { useUpdateBadge } from "@/hooks/useUpdateBadge";import { getAvailableLocales, getLocaleName } from "@/i18n/loader";import { moveMenuFocus } from "@/lib/menuKeyboard";import { formatFirstFixedBinding } from "@/lib/shortcuts";@@ -57,6 +59,14 @@ interface EditorTopBarProps {actions: TopBarActions;}+/** The update button's click. The main process answers at once; the dialogs or the restart that+ * follow are its own. */+function applyUpdate() {+ void window.electronAPI?.applyUpdate?.().catch(() => {+ // The main process logs and reports its own failures.+ });+}+const MODES: Array<{ id: EditorMode; labelKey: string }> = [{ id: "media", labelKey: "topbar.modes.media" },{ id: "edit", labelKey: "topbar.modes.edit" },@@ -76,8 +86,10 @@ export function EditorTopBar({}: EditorTopBarProps) {const t = useScopedT("editor");const tShortcuts = useScopedT("shortcuts");+ const tCommon = useScopedT("common");const { isMac } = useShortcuts();const savedLabel = dirty ? t("topbar.unsaved") : t("topbar.saved");+ const updateBadge = useUpdateBadge();// ponytail: the left side panel only renders in "edit" mode (see// NewEditorShell body), so its toggle is meaningless in Media/Rec —@@ -175,6 +187,19 @@ export function EditorTopBar({</button></Tooltip><StylePresetsMenu />+ {updateBadge ? (+ <Tooltip content={tCommon("actions.updateTo", { version: updateBadge.version })}>+ <button+ type="button"+ className={styles.updateBtn}+ aria-label={tCommon("actions.updateTo", { version: updateBadge.version })}+ onClick={applyUpdate}+ >+ <CircleArrowDown size={15} />+ <span className={styles.updateLabel}>{tCommon("actions.update")}</span>+ </button>+ </Tooltip>+ ) : null}<buttontype="button"className={styles.exportBtn}diff --git a/src/components/launch/HudControls.tsx b/src/components/launch/HudControls.tsxindex 2c5fa7df1..78ef09a76 100644--- a/src/components/launch/HudControls.tsx+++ b/src/components/launch/HudControls.tsx@@ -1,4 +1,4 @@-import { Check, Languages, NotepadText, Settings } from "lucide-react";+import { Check, CircleArrowDown, Languages, NotepadText, Settings } from "lucide-react";import {createContext,memo,@@ -108,6 +108,10 @@ const hudFocusClasses =// was all but invisible.const hudIconBtnClasses = `flex h-[34px] w-[34px] shrink-0 items-center justify-center rounded-[10px] border-0 bg-transparent cursor-pointer text-[#828c99] transition-all duration-150 hover:bg-white/[0.08] hover:text-[#f5f7fa] active:scale-95 ${hudDisabledClasses} ${hudFocusClasses} ${styles.electronNoDrag}`;+// The icon button in blue, spelled out: appending a second `text-*` to the class above would+// leave the winner to the order Tailwind happens to emit the two rules in.+const hudUpdateBtnClasses = `flex h-[34px] w-[34px] shrink-0 items-center justify-center rounded-[10px] border-0 bg-transparent cursor-pointer text-[#60a5fa] transition-all duration-150 hover:bg-white/[0.08] hover:text-[#93c5fd] active:scale-95 ${hudFocusClasses} ${styles.electronNoDrag}`;+const hudAuxIconBtnClasses = `flex h-8 w-8 shrink-0 items-center justify-center rounded-[10px] border-0 bg-transparent cursor-pointer text-[#9aa3ae] transition-colors duration-150 hover:bg-white/[0.08] hover:text-[#f5f7fa] ${hudDisabledClasses} ${hudFocusClasses}`;const windowBtnClasses = `flex h-8 w-8 shrink-0 items-center justify-center rounded-[10px] border-0 bg-transparent cursor-pointer text-[#828c99] transition-all duration-150 hover:bg-white/[0.08] hover:text-[#e9edf3] ${hudDisabledClasses} ${hudFocusClasses}`;@@ -505,6 +509,30 @@ export const HudNotesButton = memo(function HudNotesButton({);});+// Blue rather than the bar's green: green says "this toggle is on", and an update is not a toggle.+// Icon only, so it fits the vertical bar as well as the horizontal one.+export const HudUpdateButton = memo(function HudUpdateButton({+ label,+ onClick,+}: {+ label: string;+ onClick: () => void;+}) {+ return (+ <HudTooltip content={label}>+ <button+ type="button"+ data-testid="launch-update-button"+ aria-label={label}+ className={hudUpdateBtnClasses}+ onClick={onClick}+ >+ <CircleArrowDown size={ICON_SIZE} />+ </button>+ </HudTooltip>+ );+});+export const HudRecordingControls = memo(function HudRecordingControls({vertical,paused,diff --git a/src/components/launch/LaunchWindow.tsx b/src/components/launch/LaunchWindow.tsxindex d4b402b84..0bad565d7 100644--- a/src/components/launch/LaunchWindow.tsx+++ b/src/components/launch/LaunchWindow.tsx@@ -16,6 +16,7 @@ import {import { usePortalOwnsSource } from "../../hooks/usePortalOwnsSource";import { useRememberedSourceName } from "../../hooks/useRememberedSourceName";import { useScreenRecorder } from "../../hooks/useScreenRecorder";+import { useUpdateBadge } from "../../hooks/useUpdateBadge";import type { WebcamQualityId } from "../../hooks/webcamCaptureTarget";import { requestCameraAccess } from "../../lib/requestCameraAccess";import { Toaster } from "../ui/sonner";@@ -37,6 +38,7 @@ import {HudStudioButton,HudSystemAudioButton,HudTrayLayoutButton,+ HudUpdateButton,HudWindowControls,} from "./HudControls";import { HudDeviceSettings, type HudDeviceSettingsLabels } from "./HudDeviceSettings";@@ -88,6 +90,12 @@ export function LaunchWindow() {const tCommon = useScopedT("common");// The microphone check's toast is worded where the camera check's is: in `editor`.const tEditor = useScopedT("editor");+ const updateBadge = useUpdateBadge();+ const applyUpdate = useCallback(() => {+ void window.electronAPI?.applyUpdate?.().catch(() => {+ // The main process logs and reports its own failures.+ });+ }, []);const {locale,setLocale,@@ -1350,6 +1358,14 @@ export function LaunchWindow() {<divclassName={`flex items-center gap-[5px] ${isVertical ? "flex-col" : ""} ${styles.electronNoDrag}`}>+ {/* Hidden mid-take: an update cannot install during one anyway. */}+ {updateBadge && !recording && (+ <HudUpdateButton+ label={tCommon("actions.updateTo", { version: updateBadge.version })}+ onClick={applyUpdate}+ />+ )}+<HudLanguageButtonbuttonRef={languageTriggerRef}vertical={isVertical}diff --git a/src/hooks/useUpdateBadge.ts b/src/hooks/useUpdateBadge.tsnew file mode 100644index 000000000..6c44b58d8--- /dev/null+++ b/src/hooks/useUpdateBadge.ts@@ -0,0 +1,34 @@+import { useEffect, useState } from "react";+import type { UpdateBadge } from "../../electron/background-update";++/**+ * The update button's state, as the main process's background check found it: null hides the+ * button. Subscribed before the first read, so a badge pushed while that read is in flight is not+ * overwritten by the older answer.+ */+export function useUpdateBadge(): UpdateBadge | null {+ const [badge, setBadge] = useState<UpdateBadge | null>(null);++ useEffect(() => {+ const api = window.electronAPI;+ let pushed = false;+ const unsubscribe = api?.onUpdateBadgeChanged?.((next) => {+ pushed = true;+ setBadge(next);+ });+ void api+ ?.getUpdateBadge?.()+ .then((current) => {+ if (!pushed) setBadge(current);+ })+ .catch(() => {+ // No badge is the safe answer: the button stays hidden.+ });+ return () => {+ pushed = true;+ unsubscribe?.();+ };+ }, []);++ return badge;+}diff --git a/src/i18n/locales/ar/common.json b/src/i18n/locales/ar/common.jsonindex 65a0171ca..8a66a7be7 100644--- a/src/i18n/locales/ar/common.json+++ b/src/i18n/locales/ar/common.json@@ -10,6 +10,8 @@"open": "فتح","checkForUpdates": "التحقق من وجود تحديثات","updateSettings": "إعدادات التحديث",+ "update": "تحديث",+ "updateTo": "التحديث إلى {{version}}","updateModeNotify": "إشعار عند توفر تحديث","updateModeDownload": "تنزيل التحديثات تلقائيًا","updateModeDownloadAndInstall": "تنزيل التحديثات وتثبيتها تلقائيًا",@@ -56,7 +58,6 @@"available": "يتوفر OpenScreen {{latestVersion}}. الإصدار المثبت هو {{currentVersion}}.","current": "OpenScreen محدّث ({{currentVersion}}).","readyToInstall": "تم تنزيل OpenScreen {{latestVersion}}. أعد التشغيل لإكمال التثبيت.",- "downloaded": "تم تنزيل OpenScreen {{latestVersion}}.","blockedRecording": "أنهِ التسجيل قبل تثبيت التحديث.","blockedLocation": "انقل OpenScreen إلى مجلد التطبيقات قبل التحديث.","failed": "تعذّر التحقق من وجود تحديثات.",diff --git a/src/i18n/locales/cs/common.json b/src/i18n/locales/cs/common.jsonindex f1bb84422..d6e5104e9 100644--- a/src/i18n/locales/cs/common.json+++ b/src/i18n/locales/cs/common.json@@ -10,6 +10,8 @@"open": "Otevřít","checkForUpdates": "Zkontrolovat aktualizace","updateSettings": "Nastavení aktualizací",+ "update": "Aktualizovat",+ "updateTo": "Aktualizovat na {{version}}","updateModeNotify": "Upozornit na dostupnou aktualizaci","updateModeDownload": "Stahovat aktualizace automaticky","updateModeDownloadAndInstall": "Stahovat a instalovat aktualizace automaticky",@@ -56,7 +58,6 @@"available": "OpenScreen {{latestVersion}} je k dispozici. Používáte verzi {{currentVersion}}.","current": "OpenScreen je aktuální ({{currentVersion}}).","readyToInstall": "OpenScreen {{latestVersion}} byl stažen. Restartujte aplikaci pro dokončení instalace.",- "downloaded": "OpenScreen {{latestVersion}} byl stažen.","blockedRecording": "Před instalací aktualizace dokončete nahrávání.","blockedLocation": "Před aktualizací přesuňte OpenScreen do složky Aplikace.","failed": "Nepodařilo se zkontrolovat aktualizace.",diff --git a/src/i18n/locales/de/common.json b/src/i18n/locales/de/common.jsonindex 458bec8be..7bfd52e37 100644--- a/src/i18n/locales/de/common.json+++ b/src/i18n/locales/de/common.json@@ -10,6 +10,8 @@"open": "Öffnen","checkForUpdates": "Nach Updates suchen","updateSettings": "Update-Einstellungen",+ "update": "Aktualisieren",+ "updateTo": "Auf {{version}} aktualisieren","updateModeNotify": "Benachrichtigen, wenn ein Update verfügbar ist","updateModeDownload": "Updates automatisch herunterladen","updateModeDownloadAndInstall": "Updates automatisch herunterladen und installieren",@@ -56,7 +58,6 @@"available": "OpenScreen {{latestVersion}} ist verfügbar. Du verwendest {{currentVersion}}.","current": "OpenScreen ist auf dem neuesten Stand ({{currentVersion}}).","readyToInstall": "OpenScreen {{latestVersion}} wurde heruntergeladen. Starte neu, um die Installation abzuschließen.",- "downloaded": "OpenScreen {{latestVersion}} wurde heruntergeladen.","blockedRecording": "Beende deine Aufnahme, bevor du das Update installierst.","blockedLocation": "Verschiebe OpenScreen in deinen Programme-Ordner, bevor du aktualisierst.","failed": "Nach Updates konnte nicht gesucht werden.",diff --git a/src/i18n/locales/en/common.json b/src/i18n/locales/en/common.jsonindex f04adbec7..41c89db28 100644--- a/src/i18n/locales/en/common.json+++ b/src/i18n/locales/en/common.json@@ -10,6 +10,8 @@"open": "Open","checkForUpdates": "Check for Updates","updateSettings": "Update Settings",+ "update": "Update",+ "updateTo": "Update to {{version}}","updateModeNotify": "Notify when an update is available","updateModeDownload": "Download updates automatically","updateModeDownloadAndInstall": "Download and install updates automatically",@@ -56,7 +58,6 @@"available": "OpenScreen {{latestVersion}} is available. You are using {{currentVersion}}.","current": "OpenScreen is up to date ({{currentVersion}}).","readyToInstall": "OpenScreen {{latestVersion}} has been downloaded. Restart to finish installing.",- "downloaded": "OpenScreen {{latestVersion}} has been downloaded.","blockedRecording": "Finish your recording before installing the update.","blockedLocation": "Move OpenScreen to your Applications folder before updating.","failed": "Could not check for updates.",diff --git a/src/i18n/locales/es/common.json b/src/i18n/locales/es/common.jsonindex cb5f145e7..2f05649a7 100644--- a/src/i18n/locales/es/common.json+++ b/src/i18n/locales/es/common.json@@ -10,6 +10,8 @@"open": "Abrir","checkForUpdates": "Buscar actualizaciones","updateSettings": "Ajustes de actualización",+ "update": "Actualizar",+ "updateTo": "Actualizar a {{version}}","updateModeNotify": "Avisar cuando haya una actualización","updateModeDownload": "Descargar actualizaciones automáticamente","updateModeDownloadAndInstall": "Descargar e instalar actualizaciones automáticamente",@@ -56,7 +58,6 @@"available": "OpenScreen {{latestVersion}} está disponible. Estás usando {{currentVersion}}.","current": "OpenScreen está actualizado ({{currentVersion}}).","readyToInstall": "Se ha descargado OpenScreen {{latestVersion}}. Reinicia para completar la instalación.",- "downloaded": "Se ha descargado OpenScreen {{latestVersion}}.","blockedRecording": "Termina la grabación antes de instalar la actualización.","blockedLocation": "Mueve OpenScreen a la carpeta Aplicaciones antes de actualizar.","failed": "No se pudieron buscar actualizaciones.",diff --git a/src/i18n/locales/fr/common.json b/src/i18n/locales/fr/common.jsonindex 1f04b15f0..d1384e357 100644--- a/src/i18n/locales/fr/common.json+++ b/src/i18n/locales/fr/common.json@@ -10,6 +10,8 @@"open": "Ouvrir","checkForUpdates": "Rechercher des mises à jour","updateSettings": "Paramètres de mise à jour",+ "update": "Mettre à jour",+ "updateTo": "Mettre à jour vers la version {{version}}","updateModeNotify": "Notifier lorsqu'une mise à jour est disponible","updateModeDownload": "Télécharger les mises à jour automatiquement","updateModeDownloadAndInstall": "Télécharger et installer les mises à jour automatiquement",@@ -56,7 +58,6 @@"available": "OpenScreen {{latestVersion}} est disponible. Vous utilisez la version {{currentVersion}}.","current": "OpenScreen est à jour ({{currentVersion}}).","readyToInstall": "OpenScreen {{latestVersion}} a été téléchargé. Redémarrez pour terminer l'installation.",- "downloaded": "OpenScreen {{latestVersion}} a été téléchargé.","blockedRecording": "Terminez votre enregistrement avant d'installer la mise à jour.","blockedLocation": "Déplacez OpenScreen dans le dossier Applications avant de le mettre à jour.","failed": "Impossible de rechercher les mises à jour.",diff --git a/src/i18n/locales/it/common.json b/src/i18n/locales/it/common.jsonindex 6554344e2..5316e4c63 100644--- a/src/i18n/locales/it/common.json+++ b/src/i18n/locales/it/common.json@@ -10,6 +10,8 @@"open": "Apri","checkForUpdates": "Controlla aggiornamenti","updateSettings": "Impostazioni aggiornamento",+ "update": "Aggiorna",+ "updateTo": "Aggiorna alla versione {{version}}","updateModeNotify": "Notifica quando è disponibile un aggiornamento","updateModeDownload": "Scarica gli aggiornamenti automaticamente","updateModeDownloadAndInstall": "Scarica e installa gli aggiornamenti automaticamente",@@ -56,7 +58,6 @@"available": "OpenScreen {{latestVersion}} è disponibile. Stai usando la versione {{currentVersion}}.","current": "OpenScreen è aggiornato ({{currentVersion}}).","readyToInstall": "OpenScreen {{latestVersion}} è stato scaricato. Riavvia per completare l'installazione.",- "downloaded": "OpenScreen {{latestVersion}} è stato scaricato.","blockedRecording": "Termina la registrazione prima di installare l'aggiornamento.","blockedLocation": "Sposta OpenScreen nella cartella Applicazioni prima di aggiornare.","failed": "Impossibile controllare gli aggiornamenti.",diff --git a/src/i18n/locales/ja-JP/common.json b/src/i18n/locales/ja-JP/common.jsonindex b36f2c5a4..068f0e5b0 100644--- a/src/i18n/locales/ja-JP/common.json+++ b/src/i18n/locales/ja-JP/common.json@@ -10,6 +10,8 @@"open": "開く","checkForUpdates": "アップデートを確認","updateSettings": "アップデート設定",+ "update": "アップデート",+ "updateTo": "{{version}} にアップデート","updateModeNotify": "アップデートが利用可能になったら通知","updateModeDownload": "アップデートを自動でダウンロード","updateModeDownloadAndInstall": "アップデートを自動でダウンロードしてインストール",@@ -56,7 +58,6 @@"available": "OpenScreen {{latestVersion}} を利用できます。現在のバージョンは {{currentVersion}} です。","current": "OpenScreen は最新です({{currentVersion}})。","readyToInstall": "OpenScreen {{latestVersion}} をダウンロードしました。再起動してインストールを完了してください。",- "downloaded": "OpenScreen {{latestVersion}} をダウンロードしました。","blockedRecording": "アップデートをインストールする前に録画を終了してください。","blockedLocation": "アップデートする前に OpenScreen をアプリケーションフォルダに移動してください。","failed": "アップデートを確認できませんでした。",diff --git a/src/i18n/locales/ko-KR/common.json b/src/i18n/locales/ko-KR/common.jsonindex 2291c442a..ac110e934 100644--- a/src/i18n/locales/ko-KR/common.json+++ b/src/i18n/locales/ko-KR/common.json@@ -10,6 +10,8 @@"open": "열기","checkForUpdates": "업데이트 확인","updateSettings": "업데이트 설정",+ "update": "업데이트",+ "updateTo": "{{version}}(으)로 업데이트","updateModeNotify": "업데이트가 있으면 알림","updateModeDownload": "업데이트 자동 다운로드","updateModeDownloadAndInstall": "업데이트 자동 다운로드 및 설치",@@ -56,7 +58,6 @@"available": "OpenScreen {{latestVersion}} 버전을 사용할 수 있습니다. 현재 버전은 {{currentVersion}}입니다.","current": "OpenScreen이 최신 버전입니다({{currentVersion}}).","readyToInstall": "OpenScreen {{latestVersion}}을(를) 다운로드했습니다. 다시 시작하여 설치를 완료하세요.",- "downloaded": "OpenScreen {{latestVersion}}이(가) 다운로드되었습니다.","blockedRecording": "업데이트를 설치하기 전에 녹화를 마치세요.","blockedLocation": "업데이트하기 전에 OpenScreen을 응용 프로그램 폴더로 옮기세요.","failed": "업데이트를 확인할 수 없습니다.",diff --git a/src/i18n/locales/pt-BR/common.json b/src/i18n/locales/pt-BR/common.jsonindex 747e9ffa5..26c99168e 100644--- a/src/i18n/locales/pt-BR/common.json+++ b/src/i18n/locales/pt-BR/common.json@@ -10,6 +10,8 @@"open": "Abrir","checkForUpdates": "Verificar atualizações","updateSettings": "Configurações de atualização",+ "update": "Atualizar",+ "updateTo": "Atualizar para {{version}}","updateModeNotify": "Avisar quando houver uma atualização","updateModeDownload": "Baixar atualizações automaticamente","updateModeDownloadAndInstall": "Baixar e instalar atualizações automaticamente",@@ -56,7 +58,6 @@"available": "O OpenScreen {{latestVersion}} está disponível. Você está usando a versão {{currentVersion}}.","current": "O OpenScreen está atualizado ({{currentVersion}}).","readyToInstall": "O OpenScreen {{latestVersion}} foi baixado. Reinicie para concluir a instalação.",- "downloaded": "O OpenScreen {{latestVersion}} foi baixado.","blockedRecording": "Conclua a gravação antes de instalar a atualização.","blockedLocation": "Mova o OpenScreen para a pasta Aplicativos antes de atualizar.","failed": "Não foi possível verificar atualizações.",diff --git a/src/i18n/locales/ru/common.json b/src/i18n/locales/ru/common.jsonindex 523743e30..47ec8ceef 100644--- a/src/i18n/locales/ru/common.json+++ b/src/i18n/locales/ru/common.json@@ -10,6 +10,8 @@"open": "Открыть","checkForUpdates": "Проверить обновления","updateSettings": "Настройки обновления",+ "update": "Обновить",+ "updateTo": "Обновить до {{version}}","updateModeNotify": "Уведомлять, когда доступно обновление","updateModeDownload": "Загружать обновления автоматически","updateModeDownloadAndInstall": "Загружать и устанавливать обновления автоматически",@@ -56,7 +58,6 @@"available": "Доступен OpenScreen {{latestVersion}}. Установлена версия {{currentVersion}}.","current": "Установлена последняя версия OpenScreen ({{currentVersion}}).","readyToInstall": "OpenScreen {{latestVersion}} загружен. Перезапустите, чтобы завершить установку.",- "downloaded": "OpenScreen {{latestVersion}} загружен.","blockedRecording": "Завершите запись перед установкой обновления.","blockedLocation": "Переместите OpenScreen в папку «Программы» перед обновлением.","failed": "Не удалось проверить наличие обновлений.",diff --git a/src/i18n/locales/tr/common.json b/src/i18n/locales/tr/common.jsonindex 86fd7321d..56f92ce90 100644--- a/src/i18n/locales/tr/common.json+++ b/src/i18n/locales/tr/common.json@@ -10,6 +10,8 @@"open": "Aç","checkForUpdates": "Güncellemeleri denetle","updateSettings": "Güncelleme ayarları",+ "update": "Güncelle",+ "updateTo": "{{version}} sürümüne güncelle","updateModeNotify": "Güncelleme olduğunda bildir","updateModeDownload": "Güncellemeleri otomatik indir","updateModeDownloadAndInstall": "Güncellemeleri otomatik indir ve yükle",@@ -56,7 +58,6 @@"available": "OpenScreen {{latestVersion}} kullanılabilir. Mevcut sürümünüz {{currentVersion}}.","current": "OpenScreen güncel ({{currentVersion}}).","readyToInstall": "OpenScreen {{latestVersion}} indirildi. Kurulumu tamamlamak için yeniden başlatın.",- "downloaded": "OpenScreen {{latestVersion}} indirildi.","blockedRecording": "Güncellemeyi yüklemeden önce kaydınızı tamamlayın.","blockedLocation": "Güncellemeden önce OpenScreen'i Uygulamalar klasörüne taşıyın.","failed": "Güncellemeler denetlenemedi.",diff --git a/src/i18n/locales/vi/common.json b/src/i18n/locales/vi/common.jsonindex 419188852..8e2d6cf93 100644--- a/src/i18n/locales/vi/common.json+++ b/src/i18n/locales/vi/common.json@@ -10,6 +10,8 @@"open": "Mở","checkForUpdates": "Kiểm tra bản cập nhật","updateSettings": "Cài đặt cập nhật",+ "update": "Cập nhật",+ "updateTo": "Cập nhật lên {{version}}","updateModeNotify": "Thông báo khi có bản cập nhật","updateModeDownload": "Tự động tải bản cập nhật","updateModeDownloadAndInstall": "Tự động tải và cài đặt bản cập nhật",@@ -56,7 +58,6 @@"available": "Đã có OpenScreen {{latestVersion}}. Bạn đang dùng phiên bản {{currentVersion}}.","current": "OpenScreen đang ở phiên bản mới nhất ({{currentVersion}}).","readyToInstall": "Đã tải xuống OpenScreen {{latestVersion}}. Khởi động lại để hoàn tất cài đặt.",- "downloaded": "Đã tải OpenScreen {{latestVersion}}.","blockedRecording": "Hãy kết thúc bản ghi trước khi cài đặt bản cập nhật.","blockedLocation": "Hãy chuyển OpenScreen vào thư mục Applications trước khi cập nhật.","failed": "Không thể kiểm tra bản cập nhật.",diff --git a/src/i18n/locales/zh-CN/common.json b/src/i18n/locales/zh-CN/common.jsonindex 607199bac..4358dfc03 100644--- a/src/i18n/locales/zh-CN/common.json+++ b/src/i18n/locales/zh-CN/common.json@@ -10,6 +10,8 @@"open": "打开","checkForUpdates": "检查更新","updateSettings": "更新设置",+ "update": "更新",+ "updateTo": "更新到 {{version}}","updateModeNotify": "有更新时通知","updateModeDownload": "自动下载更新","updateModeDownloadAndInstall": "自动下载并安装更新",@@ -56,7 +58,6 @@"available": "OpenScreen {{latestVersion}} 已发布。当前版本为 {{currentVersion}}。","current": "OpenScreen 已是最新版本({{currentVersion}})。","readyToInstall": "OpenScreen {{latestVersion}} 已下载完成。重启以完成安装。",- "downloaded": "已下载 OpenScreen {{latestVersion}}。","blockedRecording": "请先结束录制,再安装更新。","blockedLocation": "更新前请将 OpenScreen 移动到「应用程序」文件夹。","failed": "无法检查更新。",diff --git a/src/i18n/locales/zh-TW/common.json b/src/i18n/locales/zh-TW/common.jsonindex ca72bbeee..36b16d75e 100644--- a/src/i18n/locales/zh-TW/common.json+++ b/src/i18n/locales/zh-TW/common.json@@ -10,6 +10,8 @@"open": "開啟","checkForUpdates": "檢查更新","updateSettings": "更新設定",+ "update": "更新",+ "updateTo": "更新至 {{version}}","updateModeNotify": "有更新時通知","updateModeDownload": "自動下載更新","updateModeDownloadAndInstall": "自動下載並安裝更新",@@ -56,7 +58,6 @@"available": "OpenScreen {{latestVersion}} 已推出。目前版本為 {{currentVersion}}。","current": "OpenScreen 已是最新版本({{currentVersion}})。","readyToInstall": "OpenScreen {{latestVersion}} 已下載完成。請重新啟動以完成安裝。",- "downloaded": "已下載 OpenScreen {{latestVersion}}。","blockedRecording": "請先結束錄影,再安裝更新。","blockedLocation": "更新前請將 OpenScreen 移至「應用程式」資料夾。","failed": "無法檢查更新。",diff --git a/src/native/browserShim.ts b/src/native/browserShim.tsindex d66dbf1ab..3b7b704d2 100644--- a/src/native/browserShim.ts+++ b/src/native/browserShim.ts@@ -171,6 +171,9 @@ function createShimElectronAPI() {showAbout: () => Promise.resolve(),// No installer in browser mode, so nothing may ever be checked.canCheckForUpdatesNow: () => Promise.resolve(false),+ getUpdateBadge: () => Promise.resolve(null),+ onUpdateBadgeChanged: () => () => undefined,+ applyUpdate: () => Promise.resolve(),getSources: () => Promise.resolve(SHIM_SOURCES),selectSource: (source: ShimDesktopSource, options?: { persist?: boolean }) => {shimSelectedSource = source;diff --git a/src/styles/design-tokens.css b/src/styles/design-tokens.cssindex 4b9c51434..5efa10250 100644--- a/src/styles/design-tokens.css+++ b/src/styles/design-tokens.css@@ -102,6 +102,11 @@--success: #10b981;--success-soft: rgba(16, 185, 129, 0.10);+ /* the update button: blue, apart from the mint accent, which already means "export" in the+ same bar */+ --update: #2563eb;+ --update-soft: rgba(37, 99, 235, 0.10);+/* macOS traffic lights */--light-red: #ff5f57;--light-yellow: #febc2e;@@ -235,6 +240,9 @@--success: #10b981;--success-soft: rgba(16, 185, 129, 0.14);+ --update: #60a5fa;+ --update-soft: rgba(96, 165, 250, 0.14);+--scene-sky-hi: #2e3440;--scene-sky-mid: #252a35;--scene-foliage: #14181f;diff --git a/technical-documentation/testing/manual-e2e-checklist.md b/technical-documentation/testing/manual-e2e-checklist.mdindex 2bd38f8a9..2d8dab358 100644--- a/technical-documentation/testing/manual-e2e-checklist.md+++ b/technical-documentation/testing/manual-e2e-checklist.md@@ -698,7 +698,10 @@ The inspector's rail holds five facets: Composition (background, format, frame,- [ ] **post-1.10.0** — Confirm the submenu is absent in a dev build and in a build on a channel that does not own its updates (`app.isPackaged && ownsItsUpdates`), rather than present and inert.- [ ] **post-1.10.0** — Confirm a background check that finds nothing shows no dialog at all — the background path never reports "you are current".- [ ] **post-1.10.0** — Confirm a failed or unavailable download stops short of the restart prompt rather than offering to restart into an installer that was never fetched.-- [ ] **post-1.10.0** — Confirm no mode installs on quit: closing the HUD must not fire the installer.+- [ ] **post-2.1.2** — Install the previous release, launch it and wait a minute. Confirm no dialog opens; a blue update button appears in the HUD bar and in the editor's top bar, and the tray gains *Update to <version>*. In the two download modes it appears once the download has finished; in "Notify" at once.+- [ ] **post-2.1.2** — Click the button. In the two download modes the app restarts into the new version; in "Notify" it downloads, then asks to restart. Start a recording first and confirm the button is gone for the length of the take.+- [ ] **post-2.1.2** — In "Download and install updates automatically", quit with the button showing. Confirm no installer window and no relaunch, and that the next launch is the new version. On a per-machine Windows install, and on deb, rpm or pacman, confirm the quit installs nothing and raises no UAC or password prompt: there the button is the way.+- [ ] **post-2.1.2** — Same mode, with an agent connected through `openscreen mcp` (Claude Code or Codex). Quit OpenScreen and confirm nothing installs and the agent's session survives. Disconnect the agent, launch and quit again, and confirm the update installs.- [ ] **post-1.10.0** — Reach **Save Diagnostics** from the tray context menu while idle, and from the Help menu on Windows and Linux (Alt) or the app menu on macOS; confirm each writes a bundle. It is deliberately not in the wordmark menu.- [ ] With the wordmark menu open, walk it with the Down and Up arrows and confirm focus wraps at both ends.- [ ] Switch the app language and confirm the wordmark menu's labels follow — Keyboard Shortcuts and AI settings matching the dialogs they open, Check for Updates and About OpenScreen the wording the macOS app menu and the tray use.diff --git a/website/docs/faq.md b/website/docs/faq.mdindex 51bc639d3..b9a200c8b 100644--- a/website/docs/faq.md+++ b/website/docs/faq.md@@ -34,7 +34,7 @@ OpenScreen is a free, MIT-licensed screen recorder and video editor for Windows,- **huggingface.co, once.** The first transcription downloads the Whisper model, about 264 MB, and a voice-detection model under 1 MB, each checked against a SHA-256 hash. After that, transcription needs no connection.- **github.com, once per language.** On a machine with a GPU, the first English or French transcription also downloads the model that re-times each word: about 110 MB for English, 350 MB for French.-- **github.com and api.github.com.** Builds that update themselves check for a new release every 24 hours, and when you ask. By default they only tell you one is available.+- **github.com and api.github.com.** Builds that update themselves check for a new release a minute after launch, then every six hours, and when you ask. By default they download it in the background and install it when you quit OpenScreen; **Update Settings** in the tray menu can make them only tell you instead.- **fonts.googleapis.com, only for a font added in 1.x.** A custom annotation font added in an earlier version is still fetched at launch, though 2.x no longer draws it.- **PostHog, once a day.** An anonymous count of active installs, sent to PostHog's EU servers. It holds the app version, the operating system, the processor architecture, how the app was installed, whether it was used directly or through its MCP server by an AI agent, and whether it is the first count of the week and of the month. That is all: no installation identifier (each count gets a new random ID), no IP address kept, nothing about your recordings. Untick **Send Anonymous Usage Count** in the tray menu to turn it off, or set `DO_NOT_TRACK=1`.- **Your AI provider, only if you connect one.** Chat editing sends your messages and the project data it reads, such as the timeline and transcript. Caption translation sends the caption text. Both stay off until you connect a provider. See [AI editing](./ai-editing.md).diff --git a/website/i18n/de/docusaurus-plugin-content-docs/current/faq.md b/website/i18n/de/docusaurus-plugin-content-docs/current/faq.mdindex d59ccc053..b7c9af2db 100644--- a/website/i18n/de/docusaurus-plugin-content-docs/current/faq.md+++ b/website/i18n/de/docusaurus-plugin-content-docs/current/faq.md@@ -34,7 +34,7 @@ OpenScreen ist ein kostenloser Bildschirmrekorder und Videoeditor unter MIT-Lize- **huggingface.co, einmalig.** Die erste Transkription lädt das Whisper-Modell herunter, etwa 264 MB, und ein Modell zur Spracherkennung unter 1 MB, jedes gegen einen SHA-256-Hash geprüft. Danach braucht die Transkription keine Verbindung mehr.- **github.com, einmal pro Sprache.** Auf einem Rechner mit GPU lädt die erste englische oder französische Transkription zusätzlich das Modell herunter, das jedes Wort neu zeitlich ausrichtet: etwa 110 MB für Englisch, 350 MB für Französisch.-- **github.com und api.github.com.** Builds, die sich selbst aktualisieren, suchen alle 24 Stunden und auf deine Anfrage nach einer neuen Version. Standardmäßig melden sie nur, dass eine verfügbar ist.+- **github.com und api.github.com.** Builds, die sich selbst aktualisieren, suchen eine Minute nach dem Start, dann alle sechs Stunden und auf deine Anfrage nach einer neuen Version. Standardmäßig laden sie sie im Hintergrund herunter und installieren sie, wenn du OpenScreen beendest; mit **Update-Einstellungen** im Tray-Menü melden sie stattdessen nur, dass eine verfügbar ist.- **fonts.googleapis.com, nur für eine in 1.x hinzugefügte Schrift.** Eine eigene Schrift für Annotationen, die in einer früheren Version hinzugefügt wurde, wird beim Start weiterhin geladen, obwohl 2.x sie nicht mehr zeichnet.- **PostHog, einmal täglich.** Eine anonyme Zählung aktiver Installationen, gesendet an die EU-Server von PostHog. Sie enthält die App-Version, das Betriebssystem, die Prozessorarchitektur, die Art der Installation, ob die App direkt oder über ihren MCP-Server von einem KI-Agenten genutzt wurde, und ob es die erste Zählung der Woche und des Monats ist. Mehr nicht: keine Installationskennung (jede Zählung erhält eine neue Zufalls-ID), keine gespeicherte IP-Adresse, nichts über deine Aufnahmen. Entferne im Menü des Symbols im Infobereich das Häkchen bei **Anonyme Nutzungszählung senden**, um sie abzuschalten, oder setze `DO_NOT_TRACK=1`.- **Dein KI-Anbieter, nur wenn du einen verbindest.** Die Chat-Bearbeitung sendet deine Nachrichten und die Projektdaten, die sie liest, etwa Zeitleiste und Transkript. Die Untertitelübersetzung sendet den Untertiteltext. Beides bleibt aus, bis du einen Anbieter verbindest. Siehe [KI-Bearbeitung](./ai-editing.md).diff --git a/website/i18n/es/docusaurus-plugin-content-docs/current/faq.md b/website/i18n/es/docusaurus-plugin-content-docs/current/faq.mdindex 8f395734d..baa60908b 100644--- a/website/i18n/es/docusaurus-plugin-content-docs/current/faq.md+++ b/website/i18n/es/docusaurus-plugin-content-docs/current/faq.md@@ -34,7 +34,7 @@ OpenScreen es un grabador de pantalla y editor de video gratis, con licencia MIT- **huggingface.co, una vez.** La primera transcripción descarga el modelo Whisper, de unos 264 MB, y un modelo de detección de voz de menos de 1 MB, cada uno verificado con un hash SHA-256. Después, la transcripción no necesita conexión.- **github.com, una vez por idioma.** En un equipo con GPU, la primera transcripción en inglés o en francés también descarga el modelo que vuelve a sincronizar cada palabra: unos 110 MB para el inglés, 350 MB para el francés.-- **github.com y api.github.com.** Las compilaciones que se actualizan solas buscan una nueva versión cada 24 horas, y cuando tú lo pides. De forma predeterminada, solo te avisan de que hay una disponible.+- **github.com y api.github.com.** Las compilaciones que se actualizan solas buscan una nueva versión un minuto después de abrirse, luego cada seis horas, y cuando tú lo pides. De forma predeterminada, la descargan en segundo plano y la instalan cuando cierras OpenScreen; con **Ajustes de actualización**, en el menú de la bandeja, puedes hacer que solo te avisen.- **fonts.googleapis.com, solo para una fuente añadida en 1.x.** Una fuente personalizada para anotaciones añadida en una versión anterior se sigue descargando al iniciar, aunque la 2.x ya no la dibuja.- **PostHog, una vez al día.** Un recuento anónimo de instalaciones activas, enviado a los servidores de PostHog en la UE. Contiene la versión de la app, el sistema operativo, la arquitectura del procesador, cómo se instaló la app, si se usó directamente o a través de su servidor MCP por un agente de IA, y si es el primer recuento de la semana y del mes. Nada más: ningún identificador de instalación (cada recuento recibe un ID aleatorio nuevo), ninguna dirección IP conservada, nada sobre tus grabaciones. Desmarca **Enviar recuento de uso anónimo** en el menú de la bandeja para desactivarlo, o define `DO_NOT_TRACK=1`.- **Tu proveedor de IA, solo si conectas uno.** La edición por chat envía tus mensajes y los datos del proyecto que lee, como la línea de tiempo y la transcripción. La traducción de subtítulos envía el texto de los subtítulos. Ambas permanecen desactivadas hasta que conectas un proveedor. Consulta [Edición con IA](./ai-editing.md).diff --git a/website/i18n/fr/docusaurus-plugin-content-docs/current/faq.md b/website/i18n/fr/docusaurus-plugin-content-docs/current/faq.mdindex db6bce75a..99f0cb11e 100644--- a/website/i18n/fr/docusaurus-plugin-content-docs/current/faq.md+++ b/website/i18n/fr/docusaurus-plugin-content-docs/current/faq.md@@ -34,7 +34,7 @@ OpenScreen est un enregistreur d'écran et éditeur vidéo gratuit, sous licence- **huggingface.co, une fois.** La première transcription télécharge le modèle Whisper, environ 264 Mo, et un modèle de détection de la voix de moins de 1 Mo, chacun vérifié à l'aide d'une empreinte SHA-256. Ensuite, la transcription n'a plus besoin de connexion.- **github.com, une fois par langue.** Sur une machine dotée d'un GPU, la première transcription en anglais ou en français télécharge aussi le modèle qui recale chaque mot dans le temps : environ 110 Mo pour l'anglais, 350 Mo pour le français.-- **github.com et api.github.com.** Les versions qui se mettent à jour d'elles-mêmes vérifient la présence d'une nouvelle version toutes les 24 heures, et quand vous le demandez. Par défaut, elles se contentent de vous signaler qu'une version est disponible.+- **github.com et api.github.com.** Les versions qui se mettent à jour d'elles-mêmes vérifient la présence d'une nouvelle version une minute après le lancement, puis toutes les six heures, et quand vous le demandez. Par défaut, elles la téléchargent en arrière-plan et l'installent quand vous quittez OpenScreen ; **Paramètres de mise à jour**, dans le menu de la barre système, permet de vous contenter d'un signalement.- **fonts.googleapis.com, seulement pour une police ajoutée en 1.x.** Une police d'annotation personnalisée ajoutée dans une version précédente est encore téléchargée au lancement, bien que la 2.x ne l'affiche plus.- **PostHog, une fois par jour.** Un comptage anonyme des installations actives, envoyé aux serveurs de PostHog dans l'UE. Il contient la version de l'application, le système d'exploitation, l'architecture du processeur, le mode d'installation de l'application, si elle a servi directement ou à un agent IA via son serveur MCP, et s'il s'agit du premier comptage de la semaine et du mois. C'est tout : aucun identifiant d'installation (chaque comptage reçoit un nouvel identifiant aléatoire), aucune adresse IP conservée, rien sur vos enregistrements. Décochez **Envoyer le comptage d'utilisation anonyme** dans le menu de l'icône de la zone de notification pour le désactiver, ou définissez `DO_NOT_TRACK=1`.- **Votre fournisseur d'IA, seulement si vous en connectez un.** Le montage par chat envoie vos messages et les données du projet qu'il lit, comme la timeline et la transcription. La traduction des sous-titres envoie le texte des sous-titres. Les deux restent désactivés tant que vous n'avez pas connecté de fournisseur. Voir [Montage par IA](./ai-editing.md).diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/faq.md b/website/i18n/ja/docusaurus-plugin-content-docs/current/faq.mdindex d4ec9496f..f01843783 100644--- a/website/i18n/ja/docusaurus-plugin-content-docs/current/faq.md+++ b/website/i18n/ja/docusaurus-plugin-content-docs/current/faq.md@@ -34,7 +34,7 @@ OpenScreen は、Windows、macOS、Linux に対応した、MIT ライセンス- **huggingface.co(一度だけ)。** 最初の文字起こしで約 264 MB の Whisper モデルと、1 MB 未満の音声検出モデルをダウンロードし、それぞれ SHA-256 ハッシュで検証します。それ以降、文字起こしに接続は必要ありません。- **github.com(言語ごとに一度だけ)。** GPU を搭載したマシンでは、英語またはフランス語の最初の文字起こしで、各単語のタイミングを付け直すモデルもダウンロードします。英語は約 110 MB、フランス語は約 350 MB です。-- **github.com と api.github.com。** 自動でアップデートするビルドは、24 時間ごとと、ユーザーが求めたときに、新しいリリースを確認します。既定では、新しいリリースがあることを知らせるだけです。+- **github.com と api.github.com。** 自動でアップデートするビルドは、起動の 1 分後、その後は 6 時間ごと、そしてユーザーが求めたときに、新しいリリースを確認します。既定では、バックグラウンドでダウンロードし、OpenScreen を終了したときにインストールします。トレイメニューの **アップデート設定** で、知らせるだけにもできます。- **fonts.googleapis.com(1.x で追加したフォントのみ)。** 以前のバージョンで追加したカスタムの注釈フォントは、2.x では描画されませんが、起動時に引き続き読み込まれます。- **PostHog(1 日 1 回)。** アクティブなインストール数の匿名カウントで、PostHog の EU サーバーに送信されます。内容は、アプリのバージョン、OS、プロセッサのアーキテクチャ、アプリのインストール方法、アプリが直接使われたか AI エージェントが MCP サーバー経由で使ったか、そしてその週とその月で最初のカウントかどうかです。それ以外は何もありません。インストールを識別する ID はなく(カウントごとに新しいランダム ID が付きます)、IP アドレスは保持されず、録画に関する情報も一切含みません。無効にするには、トレイメニューの**匿名の利用カウントを送信**のチェックを外すか、`DO_NOT_TRACK=1` を設定します。- **AI プロバイダー(接続した場合のみ)。** チャット編集では、あなたのメッセージと、エージェントが読み取るプロジェクトのデータ(タイムラインや文字起こしなど)が送信されます。字幕の翻訳では、字幕のテキストが送信されます。どちらも、プロバイダーを接続するまではオフです。[AI 編集](./ai-editing.md)を参照してください。diff --git a/website/i18n/pt-BR/docusaurus-plugin-content-docs/current/faq.md b/website/i18n/pt-BR/docusaurus-plugin-content-docs/current/faq.mdindex 551df1e65..b38c45de5 100644--- a/website/i18n/pt-BR/docusaurus-plugin-content-docs/current/faq.md+++ b/website/i18n/pt-BR/docusaurus-plugin-content-docs/current/faq.md@@ -34,7 +34,7 @@ O OpenScreen é um gravador de tela e editor de vídeo gratuito, com licença MI- **huggingface.co, uma vez.** A primeira transcrição baixa o modelo Whisper, de cerca de 264 MB, e um modelo de detecção de voz com menos de 1 MB, cada um conferido com um hash SHA-256. Depois disso, a transcrição não precisa de conexão.- **github.com, uma vez por idioma.** Em uma máquina com GPU, a primeira transcrição em inglês ou em francês também baixa o modelo que reajusta o tempo de cada palavra: cerca de 110 MB para o inglês, 350 MB para o francês.-- **github.com e api.github.com.** Os builds que se atualizam sozinhos procuram uma nova versão a cada 24 horas e quando você pede. Por padrão, eles só avisam que há uma disponível.+- **github.com e api.github.com.** Os builds que se atualizam sozinhos procuram uma nova versão um minuto depois de abrir, depois a cada seis horas, e quando você pede. Por padrão, eles a baixam em segundo plano e a instalam quando você fecha o OpenScreen; em **Configurações de atualização**, no menu da bandeja, você pode fazer com que só avisem.- **fonts.googleapis.com, só para uma fonte adicionada na 1.x.** Uma fonte personalizada de anotação adicionada numa versão anterior ainda é baixada na inicialização, embora a 2.x não a desenhe mais.- **PostHog, uma vez por dia.** Uma contagem anônima de instalações ativas, enviada aos servidores do PostHog na UE. Ela contém a versão do app, o sistema operacional, a arquitetura do processador, como o app foi instalado, se foi usado diretamente ou pelo seu servidor MCP por um agente de IA, e se é a primeira contagem da semana e do mês. Só isso: nenhum identificador de instalação (cada contagem recebe um ID aleatório novo), nenhum endereço IP guardado, nada sobre suas gravações. Desmarque **Enviar contagem de uso anônima** no menu da bandeja para desativá-la, ou defina `DO_NOT_TRACK=1`.- **Seu provedor de IA, somente se você conectar um.** A edição por chat envia suas mensagens e os dados do projeto que ela lê, como a linha do tempo e a transcrição. A tradução de legendas envia o texto das legendas. As duas ficam desativadas até você conectar um provedor. Veja [Edição com IA](./ai-editing.md).diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/faq.md b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/faq.mdindex dd37c9bcb..23015732a 100644--- a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/faq.md+++ b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/faq.md@@ -34,7 +34,7 @@ OpenScreen 是一款免费的录屏与视频剪辑软件,采用 MIT 许可证- **huggingface.co,仅一次**。第一次转录时会下载约 264 MB 的 Whisper 模型,以及一个不到 1 MB 的语音检测模型,每个都用 SHA-256 哈希值进行校验。此后转录无需联网。- **github.com,每种语言一次**。在带 GPU 的电脑上,第一次进行英语或法语转录时,还会下载为每个词重新计时的模型:英语约 110 MB,法语约 350 MB。-- **github.com 和 api.github.com**。能够自动更新的版本每 24 小时检查一次新版本,你手动检查时也会连接。默认情况下,它们只会通知你有新版本可用。+- **github.com 和 api.github.com**。能够自动更新的版本在启动一分钟后检查一次新版本,之后每六小时检查一次,你手动检查时也会连接。默认情况下,它们会在后台下载新版本,并在你退出 OpenScreen 时安装;在托盘菜单的 **更新设置** 中,可以改为只通知你。- **fonts.googleapis.com,仅限 1.x 中添加的字体**。在早期版本中添加的自定义标注字体仍会在启动时加载,尽管 2.x 已不再绘制它。- **PostHog,每天一次**。活跃安装数的匿名计数,发送到 PostHog 位于欧盟的服务器。它包含应用版本、操作系统、处理器架构、应用的安装方式、应用是被直接使用还是由 AI 智能体通过其 MCP 服务器使用,以及这是否为当周和当月的首次计数。仅此而已:没有安装标识符(每次计数都使用新的随机 ID),不保留 IP 地址,不涉及你的录制内容。要关闭它,请在托盘菜单中取消勾选**发送匿名使用计数**,或设置 `DO_NOT_TRACK=1`。- **你的 AI 提供方,仅在你连接之后**。聊天编辑会发送你的消息以及它读取的项目数据,例如时间轴和转录文本。字幕翻译会发送字幕文本。在你连接提供方之前,这两项功能都处于关闭状态。请参阅 [AI 编辑](./ai-editing.md)。diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/faq.md b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/faq.mdindex b774f201c..5bb6f9394 100644--- a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/faq.md+++ b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/faq.md@@ -34,7 +34,7 @@ OpenScreen 是一款採用 MIT 授權的免費螢幕錄影與影片剪輯軟體- **huggingface.co,只有一次。** 第一次轉錄時會下載 Whisper 模型(約 264 MB)與一個小於 1 MB 的語音偵測模型,每個都以 SHA-256 雜湊值驗證。之後轉錄就不再需要網路連線。- **github.com,每種語言一次。** 在有 GPU 的電腦上,第一次進行英文或法文轉錄時,還會下載為每個字詞重新對時的模型:英文約 110 MB,法文約 350 MB。-- **github.com 與 api.github.com。** 會自行更新的版本每 24 小時檢查一次新版本,你手動要求時也會檢查。預設只會通知你有新版本可用。+- **github.com 與 api.github.com。** 會自行更新的版本在啟動一分鐘後檢查一次新版本,之後每六小時檢查一次,你手動要求時也會檢查。預設會在背景下載新版本,並在你結束 OpenScreen 時安裝;在系統匣選單的 **更新設定** 中,可以改為只通知你。- **fonts.googleapis.com,僅限 1.x 中加入的字體。** 在先前版本中加入的自訂標註字體仍會在啟動時載入,儘管 2.x 已不再繪製它。- **PostHog,每天一次。** 活躍安裝數的匿名計數,會送到 PostHog 位於歐盟的伺服器。內容包括應用程式版本、作業系統、處理器架構、應用程式的安裝方式、應用程式是直接使用還是由 AI 代理透過其 MCP 伺服器使用,以及這是否為當週與當月的第一次計數。僅此而已:沒有安裝識別碼(每次計數都使用新的隨機 ID),不保留 IP 位址,也不含任何與你錄影有關的資訊。若要關閉,請在系統匣選單中取消勾選**傳送匿名使用計數**,或設定 `DO_NOT_TRACK=1`。- **你的 AI 提供者,僅在你連接時。** 聊天剪輯會送出你的訊息,以及它讀取的專案資料,例如時間軸與逐字稿。字幕翻譯會送出字幕文字。在你連接提供者之前,這兩項功能都保持關閉。請參閱 [AI 剪輯](./ai-editing.md)。