Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(desktop): 阻止客户端降级更新 (#3503)
guyong-zapo4ad3f2c78a99
diff --git a/apps/desktop/src/main/__tests__/updateService.test.ts b/apps/desktop/src/main/__tests__/updateService.test.tsindex d939e11a66..0d9df51cb4 100644--- a/apps/desktop/src/main/__tests__/updateService.test.ts+++ b/apps/desktop/src/main/__tests__/updateService.test.ts@@ -406,6 +406,300 @@ describe('checkForUpdate 版本无关(占位 0.0.0)打包豁免', () => {});});+describe('app update forward-only policy', () => {+ it('does not download a manifest version lower than the running app', async () => {+ const service = await freshUpdateService('darwin');++ await expect(service.checkForUpdate(updateManifest('0.0.63'))).resolves.toBe('idle');++ expect(service.getUpdateStatus()).toBe('idle');+ expect(download).not.toHaveBeenCalled();+ expect(logWarn.mock.calls.map((call) => String(call[0]))).toContain(+ 'Skipping app downgrade from %s to %s',+ );+ });++ it('fails closed when the manifest app version is not valid SemVer', async () => {+ const service = await freshUpdateService('darwin');++ await expect(service.checkForUpdate(updateManifest('not-semver'))).resolves.toBe(+ 'manifest_failed',+ );++ expect(service.getUpdateStatus()).toBe('idle');+ expect(download).not.toHaveBeenCalled();+ });++ it.each(['0.0.63', 'not-semver'])(+ 'does not apply an offline non-upgrade staged patch (%s)',+ async (patchVersion) => {+ vi.useFakeTimers();+ fetchManifest.mockResolvedValue(null);+ const updatesDir = path.join(TEST_USER_DATA, 'updates');+ const patchPath = path.join(updatesDir, 'staged.zip');+ const flagPath = path.join(TEST_USER_DATA, 'relogin-required.flag');+ fs.mkdirSync(updatesDir, { recursive: true });+ fs.writeFileSync(patchPath, 'update');+ fs.writeFileSync(+ path.join(updatesDir, 'patch-info.json'),+ JSON.stringify({+ version: patchVersion,+ fileName: 'staged.zip',+ sha256: 'abc',+ requireRelogin: true,+ enableBeta: false,+ }),+ );+ fs.writeFileSync(flagPath, JSON.stringify({ version: patchVersion }));++ const service = await freshUpdateService('darwin');+ service.initUpdateService();+ try {+ const handler = ipcHandlers.get('update-check-startup');+ await expect(handler?.()).resolves.toMatchObject({+ hasUpdate: false,+ action: 'none',+ error: 'manifest_failed',+ });+ expect(service.getUpdateStatus()).toBe('idle');+ expect(fs.existsSync(patchPath)).toBe(false);+ expect(fs.existsSync(path.join(updatesDir, 'patch-info.json'))).toBe(false);+ expect(fs.existsSync(flagPath)).toBe(false);+ } finally {+ service.stopUpdateService();+ }+ },+ );++ it('still restores a newer staged patch when startup is offline', async () => {+ vi.useFakeTimers();+ fetchManifest.mockResolvedValue(null);+ const updatesDir = path.join(TEST_USER_DATA, 'updates');+ const patchPath = path.join(updatesDir, 'staged.zip');+ fs.mkdirSync(updatesDir, { recursive: true });+ fs.writeFileSync(patchPath, 'update');+ fs.writeFileSync(+ path.join(updatesDir, 'patch-info.json'),+ JSON.stringify({+ version: '0.0.65',+ fileName: 'staged.zip',+ sha256: 'abc',+ enableBeta: false,+ }),+ );++ const service = await freshUpdateService('darwin');+ service.initUpdateService();+ try {+ const handler = ipcHandlers.get('update-check-startup');+ await expect(handler?.()).resolves.toMatchObject({+ hasUpdate: true,+ action: 'relaunch',+ version: '0.0.65',+ });+ expect(service.getUpdateStatus()).toBe('ready');+ expect(fs.existsSync(patchPath)).toBe(true);+ } finally {+ service.stopUpdateService();+ }+ });++ it('does not apply a lower local patch that matches the online manifest', async () => {+ vi.useFakeTimers();+ fetchManifest.mockResolvedValue(updateManifest('0.0.63'));+ const updatesDir = path.join(TEST_USER_DATA, 'updates');+ const patchPath = path.join(updatesDir, 'staged.zip');+ fs.mkdirSync(updatesDir, { recursive: true });+ fs.writeFileSync(patchPath, 'update');+ fs.writeFileSync(+ path.join(updatesDir, 'patch-info.json'),+ JSON.stringify({+ version: '0.0.63',+ fileName: 'staged.zip',+ sha256: 'abc',+ enableBeta: false,+ }),+ );++ const service = await freshUpdateService('darwin');+ service.initUpdateService();+ try {+ const handler = ipcHandlers.get('update-check-startup');+ await expect(handler?.()).resolves.toMatchObject({+ hasUpdate: false,+ action: 'none',+ });+ expect(download).not.toHaveBeenCalled();+ expect(fs.existsSync(patchPath)).toBe(false);+ expect(fs.existsSync(path.join(updatesDir, 'patch-info.json'))).toBe(false);+ } finally {+ service.stopUpdateService();+ }+ });++ it('discards a newer local patch that is no longer advertised by the online manifest', async () => {+ vi.useFakeTimers();+ fetchManifest.mockResolvedValue(updateManifest('0.0.64'));+ const updatesDir = path.join(TEST_USER_DATA, 'updates');+ const patchPath = path.join(updatesDir, 'staged.zip');+ fs.mkdirSync(updatesDir, { recursive: true });+ fs.writeFileSync(patchPath, 'update');+ fs.writeFileSync(+ path.join(updatesDir, 'patch-info.json'),+ JSON.stringify({+ version: '0.0.65',+ fileName: 'staged.zip',+ sha256: 'abc',+ enableBeta: false,+ }),+ );++ const service = await freshUpdateService('darwin');+ service.initUpdateService();+ try {+ const handler = ipcHandlers.get('update-check-startup');+ await expect(handler?.()).resolves.toMatchObject({+ hasUpdate: false,+ action: 'none',+ });+ expect(service.getUpdateStatus()).toBe('idle');+ expect(fs.existsSync(patchPath)).toBe(false);+ expect(fs.existsSync(path.join(updatesDir, 'patch-info.json'))).toBe(false);+ } finally {+ service.stopUpdateService();+ }+ });++ it('drops a ready patch when a later manifest no longer advertises an upgrade', async () => {+ readAutoUpdateSettings.mockReturnValue({ autoRelaunchOnIdle: false });+ download.mockImplementation(async ({ targetPath }: { targetPath: string }) => {+ fs.mkdirSync(path.dirname(targetPath), { recursive: true });+ fs.writeFileSync(targetPath, 'update');+ return { path: targetPath, size: 123 };+ });+ const service = await freshUpdateService('darwin');++ await expect(service.checkForUpdate(updateManifest('0.0.65'))).resolves.toBe('ready');+ await expect(service.checkForUpdate(updateManifest('0.0.63'))).resolves.toBe('idle');++ expect(service.getUpdateStatus()).toBe('idle');+ expect(fs.existsSync(path.join(TEST_USER_DATA, 'updates', 'patch-info.json'))).toBe(false);+ });++ it('rechecks the version immediately before launching the native updater', async () => {+ vi.useFakeTimers();+ readAutoUpdateSettings.mockReturnValue({ autoRelaunchOnIdle: false });+ download.mockImplementation(async ({ targetPath }: { targetPath: string }) => {+ fs.mkdirSync(path.dirname(targetPath), { recursive: true });+ fs.writeFileSync(targetPath, 'update');+ return { path: targetPath, size: 123 };+ });++ const service = await freshUpdateService('darwin');+ service.initUpdateService();+ try {+ await expect(service.checkForUpdate(updateManifest('0.0.65'))).resolves.toBe('ready');+ expect(service.getUpdateStatus()).toBe('ready');++ appGetVersion.mockReturnValue('0.0.65');+ ipcListeners.get('update-relaunch')?.({}, 'dark');++ await vi.waitFor(() => {+ expect(service.getUpdateStatus()).toBe('idle');+ });+ expect(fs.existsSync(path.join(TEST_USER_DATA, 'updates', 'patch-info.json'))).toBe(false);+ expect(logError.mock.calls.map((call) => String(call[0]))).toContain(+ 'executeRelaunch() refused non-upgrade patch: current=%s patch=%s relation=%s',+ );+ } finally {+ service.stopUpdateService();+ }+ });++ it('does not discard a staged patch while the native updater is already applying it', async () => {+ vi.useFakeTimers();+ readAutoUpdateSettings.mockReturnValue({ autoRelaunchOnIdle: false });+ download.mockImplementation(async ({ targetPath }: { targetPath: string }) => {+ fs.mkdirSync(path.dirname(targetPath), { recursive: true });+ fs.writeFileSync(targetPath, 'update');+ return { path: targetPath, size: 123 };+ });++ const service = await freshUpdateService('darwin');+ const exitSpy = vi.spyOn(process, 'exit').mockImplementation((() => undefined) as never);+ service.initUpdateService();+ try {+ await expect(service.checkForUpdate(updateManifest('0.0.65'))).resolves.toBe('ready');+ expect(service.getUpdateStatus()).toBe('ready');++ ipcListeners.get('update-relaunch')?.({}, 'dark');+ await vi.waitFor(() => {+ expect(logInfo.mock.calls.map((call) => String(call[0]))).toContain(+ 'executeRelaunch() called, theme=%s, readyFilePath=%s',+ );+ });++ await expect(service.checkForUpdate(updateManifest('0.0.63'))).resolves.toBe('idle');+ const stagedFile = path.basename(updateManifest('0.0.65').app.hotfix.file);+ expect(fs.existsSync(path.join(TEST_USER_DATA, 'updates', stagedFile))).toBe(true);+ expect(fs.existsSync(path.join(TEST_USER_DATA, 'updates', 'patch-info.json'))).toBe(true);+ } finally {+ exitSpy.mockRestore();+ service.stopUpdateService();+ }+ });++ it('defers manifest-driven discard while auto-relaunch eligibility is pending', async () => {+ vi.useFakeTimers();+ readAutoUpdateSettings.mockReturnValue({ autoRelaunchOnIdle: false });+ download.mockImplementation(async ({ targetPath }: { targetPath: string }) => {+ fs.mkdirSync(path.dirname(targetPath), { recursive: true });+ fs.writeFileSync(targetPath, 'update');+ return { path: targetPath, size: 123 };+ });++ const service = await freshUpdateService('darwin');+ let releaseProbe: ((busy: boolean) => void) | undefined;+ try {+ await expect(service.checkForUpdate(updateManifest('0.0.65'))).resolves.toBe('ready');+ const stagedFile = path.join(+ TEST_USER_DATA,+ 'updates',+ path.basename(updateManifest('0.0.65').app.hotfix.file),+ );+ expect(fs.existsSync(stagedFile)).toBe(true);++ readAutoUpdateSettings.mockReturnValue({ autoRelaunchOnIdle: true });+ const probeStarted = new Promise<void>((resolveStarted) => {+ service.setUpdateAutoRelaunchBusyProbe(+ () =>+ new Promise<boolean>((resolveProbe) => {+ resolveStarted();+ releaseProbe = resolveProbe;+ }),+ );+ });+ await probeStarted;++ await expect(service.checkForUpdate(updateManifest('0.0.63'))).resolves.toBe('idle');+ // The manifest says the staged version is no longer eligible, but the+ // pending busy probe still owns the apply decision. Keep the zip intact+ // until that decision settles; only the marker is removed immediately.+ expect(fs.existsSync(stagedFile)).toBe(true);+ expect(fs.existsSync(path.join(TEST_USER_DATA, 'updates', 'patch-info.json'))).toBe(false);++ releaseProbe?.(true);+ await vi.waitFor(() => {+ expect(service.getUpdateStatus()).toBe('idle');+ });+ expect(fs.existsSync(stagedFile)).toBe(false);+ } finally {+ releaseProbe?.(true);+ service.stopUpdateService();+ }+ });+});+describe('startup update relaunch safety', () => {// Startup/splash auto-applies a staged patch as soon as it is ready — the// historic behavior restored deliberately (owner-approved). A fresh launch hasdiff --git a/apps/desktop/src/main/__tests__/updateVersionPolicy.test.ts b/apps/desktop/src/main/__tests__/updateVersionPolicy.test.tsnew file mode 100644index 0000000000..7c872af35e--- /dev/null+++ b/apps/desktop/src/main/__tests__/updateVersionPolicy.test.ts@@ -0,0 +1,26 @@+import { describe, expect, it } from 'vitest';++import { compareAppUpdateVersions } from '../updateVersionPolicy';++describe('compareAppUpdateVersions', () => {+ it.each([+ ['0.0.65', '0.0.64', 'newer'],+ ['0.0.10', '0.0.9', 'newer'],+ ['1.0.0', '1.0.0-beta.1', 'newer'],+ ['1.0.0-beta.2', '1.0.0-beta.1', 'newer'],+ ['0.0.64', '0.0.64', 'same'],+ ['0.0.64+release', '0.0.64+beta', 'same'],+ ['0.0.63', '0.0.64', 'older'],+ ] as const)('classifies target %s against current %s as %s', (target, current, expected) => {+ expect(compareAppUpdateVersions(target, current)).toBe(expected);+ });++ it.each([+ ['not-semver', '0.0.64'],+ ['0.0.65', 'not-semver'],+ [65, '0.0.64'],+ ['0.0.65', null],+ ])('fails closed for malformed versions (%s, %s)', (target, current) => {+ expect(compareAppUpdateVersions(target, current)).toBe('invalid');+ });+});diff --git a/apps/desktop/src/main/updateService.ts b/apps/desktop/src/main/updateService.tsindex ee385fa3be..09043e83be 100644--- a/apps/desktop/src/main/updateService.ts+++ b/apps/desktop/src/main/updateService.ts@@ -38,6 +38,7 @@ import { fetchManifest, getBaseUrl, isDev, probeBetaManifest, clearCachedManifesimport type { Manifest } from './manifestService';import { download, DownloadError } from './downloader/index';import { ProgressNormalizer } from './updateProgressNormalizer';+import { compareAppUpdateVersions } from './updateVersionPolicy';import { createLogger, maskPath } from './logger';import {@@ -582,7 +583,12 @@ function checkExistingPatch(): { action: 'relaunch' | 'check' | 'none'; version?try {const raw = fs.readFileSync(infoPath, 'utf-8');patchInfo = JSON.parse(raw) as PatchInfo;- if (!patchInfo.version || !patchInfo.fileName) {+ if (+ typeof patchInfo.version !== 'string' ||+ !patchInfo.version ||+ typeof patchInfo.fileName !== 'string' ||+ !patchInfo.fileName+ ) {throw new Error('invalid patch-info');}} catch {@@ -603,20 +609,26 @@ function checkExistingPatch(): { action: 'relaunch' | 'check' | 'none'; version?patchInfo.enableBeta ? 'beta' : 'release',currentEnableBeta ? 'beta' : 'release',);- try { fs.unlinkSync(patchFilePath); } catch { /* ignore */ }- removePatchInfo();- const flag = readReloginFlag();- if (flag?.version === patchInfo.version) {- clearReloginFlag();- }+ discardExistingPatch(patchInfo, patchFilePath, true);return { action: 'check' };}const currentVersion = app.getVersion();- if (patchInfo.version === currentVersion) {+ const versionRelation = compareAppUpdateVersions(patchInfo.version, currentVersion);+ if (versionRelation === 'same') {// Patch matches current version → already applied; clean up and re-check.- try { fs.unlinkSync(patchFilePath); } catch { /* ignore */ }- removePatchInfo();+ // Keep the matching relogin flag: auth initialization owns consuming it.+ discardExistingPatch(patchInfo, patchFilePath, false);+ return { action: 'check' };+ }+ if (versionRelation !== 'newer') {+ log.warn(+ 'discarding non-upgrade staged patch: current=%s patch=%s relation=%s',+ currentVersion,+ patchInfo.version,+ versionRelation,+ );+ discardExistingPatch(patchInfo, patchFilePath, true);return { action: 'check' };}@@ -653,6 +665,20 @@ function removePatchInfo(): void {try { fs.unlinkSync(path.join(getUpdatesDir(), PATCH_INFO_FILE)); } catch { /* ignore */ }}+function discardExistingPatch(+ patchInfo: PatchInfo,+ patchFilePath: string,+ clearMatchingReloginFlag: boolean,+): void {+ try { fs.unlinkSync(patchFilePath); } catch { /* ignore */ }+ removePatchInfo();+ if (!clearMatchingReloginFlag) return;+ const flag = readReloginFlag();+ if (flag?.version === patchInfo.version) {+ clearReloginFlag();+ }+}+function isUpdateApplyCommitted(): boolean {return isRelaunching || autoRelaunchInProgress;}@@ -747,6 +773,21 @@ function isCurrentPatchNewerThanDeferred(}function discardStagedPatchFiles(): void {+ // A background manifest check can resume while the native updater is already+ // reading this same file. Keep the patch intact in that window; the apply+ // path owns cleanup after it either succeeds or reports a spawn failure.+ if (isUpdateApplyCommitted()) {+ log.info('skipping staged patch discard — update apply already in flight');+ return;+ }+ if (autoRelaunchDecisionDepth > 0) {+ rememberDeferredStagedPatch();+ // Keep the payload until the async eligibility check settles, but remove+ // the marker now so a channel/app relaunch cannot revive this patch.+ removePatchInfo();+ log.info('deferring staged patch discard until auto-relaunch eligibility settles');+ return;+ }const discardedVersion = readyVersion;if (readyFilePath) {try { fs.unlinkSync(readyFilePath); } catch { /* ignore */ }@@ -1019,20 +1060,56 @@ async function doCheckForUpdate(manifestOverride?: Manifest | null): Promise<Chereturn 'manifest_failed';}- const asset = resolveUpdateAsset(manifest);- if (!asset) {- log.info(process.platform === 'linux' ? 'No installer in Linux manifest' : 'No hotfix in manifest');- if (!wasReady) currentStatus = 'idle';- return 'idle';- }-const latestVersion = manifest.app.version;const currentVersion = app.getVersion();log.info('Version check: current=%s, latest=%s, ready=%s', currentVersion, latestVersion, previousReadyVersion ?? '<none>');- if (latestVersion === currentVersion) {+ const versionRelation = compareAppUpdateVersions(latestVersion, currentVersion);+ if (versionRelation === 'invalid') {+ log.error(+ 'Refusing app update because version comparison is invalid: current=%s latest=%s',+ currentVersion,+ latestVersion,+ );+ if (wasReady) {+ discardStagedPatchFiles();+ } else {+ currentStatus = 'idle';+ }+ return 'manifest_failed';+ }+ if (versionRelation === 'same') {log.info('Versions match, no update needed');- if (!wasReady) currentStatus = 'idle';+ if (wasReady) {+ log.info('Discarding staged patch because the current manifest no longer advertises an upgrade');+ discardStagedPatchFiles();+ } else {+ currentStatus = 'idle';+ }+ return 'idle';+ }+ if (versionRelation === 'older') {+ log.warn(+ 'Skipping app downgrade from %s to %s',+ currentVersion,+ latestVersion,+ );+ if (wasReady) {+ discardStagedPatchFiles();+ } else {+ currentStatus = 'idle';+ }+ return 'idle';+ }++ const asset = resolveUpdateAsset(manifest);+ if (!asset) {+ log.info(process.platform === 'linux' ? 'No installer in Linux manifest' : 'No hotfix in manifest');+ if (wasReady) {+ discardStagedPatchFiles();+ } else {+ currentStatus = 'idle';+ }return 'idle';}@@ -1731,6 +1808,21 @@ async function executeRelaunchUnguarded(theme: 'light' | 'dark'): Promise<void>return;}+ const currentVersion = app.getVersion();+ const versionRelation = compareAppUpdateVersions(readyVersion, currentVersion);+ if (versionRelation !== 'newer') {+ log.error(+ 'executeRelaunch() refused non-upgrade patch: current=%s patch=%s relation=%s',+ currentVersion,+ readyVersion ?? '<unknown>',+ versionRelation,+ );+ isRelaunching = false;+ autoRelaunchInProgress = false;+ discardStagedPatchFiles();+ return;+ }+// Gate *before* the updater is spawned, not inside forceQuit: once the// updater script is running it polls our pid and SIGKILLs us after 120s// (`updateScriptMacOS.ts`), so a late decision not to exit does not keep this@@ -2008,9 +2100,32 @@ export function initUpdateService(): void {const currentVersion = app.getVersion();log.info('Startup: current=%s, latest=%s', currentVersion, latestVersion);- if (latestVersion === currentVersion) {- // Already up to date — clean up any stale patch directory.- checkExistingPatch();+ const startupVersionRelation = compareAppUpdateVersions(latestVersion, currentVersion);+ if (startupVersionRelation !== 'newer') {+ // The online manifest is authoritative. A local patch that is no longer+ // advertised must not survive into a later offline startup.+ const patchResult = checkExistingPatch();+ if (patchResult.action === 'relaunch') {+ log.info(+ 'Discarding unadvertised local patch v%s (manifest relation=%s)',+ patchResult.version,+ startupVersionRelation,+ );+ discardStagedPatchFiles();+ }+ if (startupVersionRelation === 'invalid') {+ log.info('[diag] update-check-startup returning error=manifest_failed');+ return { hasUpdate: false, action: 'none' as const, error: 'manifest_failed' as const };+ }+ return { hasUpdate: false, action: 'none' as const };+ }++ if (!resolveUpdateAsset(manifest)) {+ const patchResult = checkExistingPatch();+ if (patchResult.action === 'relaunch') {+ log.info('Discarding local patch v%s because the manifest has no update asset', patchResult.version);+ discardStagedPatchFiles();+ }return { hasUpdate: false, action: 'none' as const };}diff --git a/apps/desktop/src/main/updateVersionPolicy.ts b/apps/desktop/src/main/updateVersionPolicy.tsnew file mode 100644index 0000000000..895ef3090c--- /dev/null+++ b/apps/desktop/src/main/updateVersionPolicy.ts@@ -0,0 +1,32 @@+import { createRequire } from 'node:module';++interface SemverApi {+ compare(left: string, right: string): number;+ valid(version: string): string | null;+}++const semver = createRequire(import.meta.url)('semver') as SemverApi;++export type AppUpdateVersionRelation = 'newer' | 'same' | 'older' | 'invalid';++/**+ * App updates are forward-only. Versions must be valid SemVer values; malformed+ * versions fail closed instead of being coerced into an installable target.+ */+export function compareAppUpdateVersions(+ targetVersion: unknown,+ currentVersion: unknown,+): AppUpdateVersionRelation {+ if (typeof targetVersion !== 'string' || typeof currentVersion !== 'string') {+ return 'invalid';+ }++ const target = semver.valid(targetVersion);+ const current = semver.valid(currentVersion);+ if (!target || !current) return 'invalid';++ const comparison = semver.compare(target, current);+ if (comparison > 0) return 'newer';+ if (comparison < 0) return 'older';+ return 'same';+}diff --git a/apps/desktop/src/renderer/i18n/locales/en/common.json b/apps/desktop/src/renderer/i18n/locales/en/common.jsonindex d39b6a1f45..b894655822 100644--- a/apps/desktop/src/renderer/i18n/locales/en/common.json+++ b/apps/desktop/src/renderer/i18n/locales/en/common.json@@ -2040,7 +2040,7 @@"restartBusyDescription": "Tasks are currently in progress and restarting will interrupt them. Restart now anyway?","unavailable": "The beta channel is unavailable — could not reach the beta update server.","toast": {- "disabled": "Beta channel disabled; takes effect after restart",+ "disabled": "Beta channel disabled. Cindy will keep the current version and switch when a newer release is available","toggleFailed": "Failed to toggle beta channel"}},diff --git a/apps/desktop/src/renderer/i18n/locales/ja/common.json b/apps/desktop/src/renderer/i18n/locales/ja/common.jsonindex 06de50cac3..b893991c26 100644--- a/apps/desktop/src/renderer/i18n/locales/ja/common.json+++ b/apps/desktop/src/renderer/i18n/locales/ja/common.json@@ -2039,7 +2039,7 @@"restartBusyDescription": "進行中のタスクがあります。再起動すると中断されます。今すぐ再起動しますか?","unavailable": "Beta チャンネルは利用できません。Beta 更新サーバーに接続できませんでした。","toast": {- "disabled": "Beta チャンネルをオフにしました。再起動後に反映されます",+ "disabled": "Beta チャンネルをオフにしました。現在のバージョンを使い続け、より新しい正式版が公開されたら自動で切り替えます","toggleFailed": "Beta チャンネルの切り替えに失敗しました"}},diff --git a/apps/desktop/src/renderer/i18n/locales/ko/common.json b/apps/desktop/src/renderer/i18n/locales/ko/common.jsonindex 271ec38024..9ea66f8116 100644--- a/apps/desktop/src/renderer/i18n/locales/ko/common.json+++ b/apps/desktop/src/renderer/i18n/locales/ko/common.json@@ -2039,7 +2039,7 @@"restartBusyDescription": "진행 중인 작업이 있어 재시작하면 중단됩니다. 그래도 지금 재시작할까요?","unavailable": "베타 채널을 사용할 수 없습니다. 베타 업데이트 서버에 연결할 수 없습니다.","toast": {- "disabled": "베타 채널이 꺼졌습니다. 재시작 후 적용됩니다",+ "disabled": "베타 채널을 껐습니다. 현재 버전을 계속 사용하며 새 정식 버전이 출시되면 자동으로 전환합니다","toggleFailed": "베타 채널 전환 실패"}},diff --git a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.jsonindex b8ff79a4a9..7c19a32a7c 100644--- a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json+++ b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json@@ -2031,7 +2031,7 @@"restartBusyDescription": "当前有任务正在进行中,重启会打断它们。确定要立即重启吗?","unavailable": "Beta 测试渠道暂不可用,无法连接到 Beta 更新服务器。","toast": {- "disabled": "Beta 测试渠道已关闭,重启后生效",+ "disabled": "Beta 测试渠道已关闭,将继续使用当前版本,等正式版推出更高版本后自动切换","toggleFailed": "切换 Beta 测试渠道失败"}},diff --git a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.jsonindex cbde914e0a..b2e11e99d7 100644--- a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json+++ b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json@@ -2031,7 +2031,7 @@"restartBusyDescription": "目前有任務進行中,重新啟動會中斷它們。確定要立即重新啟動嗎?","unavailable": "Beta 測試管道暫不可用,無法連接到 Beta 更新伺服器。","toast": {- "disabled": "Beta 測試管道已關閉,重新啟動後生效",+ "disabled": "Beta 測試管道已關閉,將繼續使用目前版本,等正式版推出較新版本後自動切換","toggleFailed": "切換 Beta 測試管道失敗"}},