From e0e06e3723e7f50c350c8c0bdaf82668485ef3b8 Mon Sep 17 00:00:00 2001 From: JUN Date: Thu, 19 Nov 2026 11:25:19 +0900 Subject: [PATCH] feat(update): explain managed release directories in the update dialog (carry of #8116) Rebased onto dev at 16723a52fd. Managed-release mode reads its opt-in only from the proof-bound Node launcher context; source checkouts keep git pull guidance. The release-evidence policy keeps dev's entries and appends one CI entry for the merged scripts/test.ts fingerprint. Co-authored-by: medking82 --- .github/scripts/release-evidence-policy.json | 34 ++++++ bin/ocx.mjs | 2 + .../docs/es/reference/cli/lifecycle.md | 17 +++ .../content/docs/reference/cli/lifecycle.md | 17 +++ gui/src/i18n/de.ts | 2 + gui/src/i18n/en.ts | 2 + gui/src/i18n/fr.ts | 2 + gui/src/i18n/ja.ts | 2 + gui/src/i18n/ko.ts | 2 + gui/src/i18n/pt.ts | 2 + gui/src/i18n/ru.ts | 2 + gui/src/i18n/tr.ts | 2 + gui/src/i18n/vi.ts | 2 + gui/src/i18n/zh-TW.ts | 2 + gui/src/i18n/zh.ts | 2 + gui/src/pages/dashboard-dialogs.tsx | 15 ++- gui/src/pages/dashboard-shared.ts | 1 + gui/tests/dashboard-managed-release.test.tsx | 59 ++++++++++ scripts/test-layout/layout.json | 2 +- scripts/test.ts | 7 +- src/cli/launcher-context.ts | 13 ++- src/update/check-types.ts | 2 + src/update/job.ts | 11 +- src/update/managed-release.ts | 6 + src/update/refresh-scheduler.ts | 24 ++-- structure/ops/service-and-sidecars.md | 2 +- structure/ops/update-supervised-recovery.md | 15 +++ structure/runtime.md | 4 +- tests/ci-workflows/test-runner.test.ts | 8 +- tests/fixtures/test-layout-expected.json | 1 + tests/helpers/update-import-policy.ts | 4 +- tests/preload.ts | 4 +- tests/update/update-managed-release.test.ts | 104 ++++++++++++++++++ tests/update/update-refresh.test.ts | 43 +++++++- tests/update/update-standalone.test.ts | 1 + 35 files changed, 388 insertions(+), 30 deletions(-) create mode 100644 gui/tests/dashboard-managed-release.test.tsx create mode 100644 src/update/managed-release.ts create mode 100644 tests/update/update-managed-release.test.ts diff --git a/.github/scripts/release-evidence-policy.json b/.github/scripts/release-evidence-policy.json index 7d0c61c3bd6..b512557d53a 100644 --- a/.github/scripts/release-evidence-policy.json +++ b/.github/scripts/release-evidence-policy.json @@ -636,5 +636,39 @@ "desktop/scripts/appimage-patchelf.py": "63e78ef74160bc48fbcdd882065f1d416db6d13c", "desktop/scripts/linux-packaged-e2e.ts": "9ca92352668ff881c85caea44a9b4747bedc7e2d" } + }, + { + "kind": "ci", + "version": 1, + "windowsShards": 14, + "files": { + ".github/workflows/ci.yml": "74f5dfb883786792c872c58f2311b0299818b702", + ".github/actions/setup-project-bun/action.yml": "cf28f6f9d4385d69784f4e3610914f6952ce789d", + ".github/scripts/release-evidence.cjs": "ace2b9006b2d58ef84ed0996b4e179ff4be15900", + ".github/scripts/release-evidence.test.cjs": "9cc686390e5c37d8e693b98d049e8b505d0273cf", + "scripts/ci/select-test-lane.sh": "b25836cb55f962d1ffd9e68ed00f45f8b45becc8", + "scripts/ci/windows-sensitive-diff.sh": "03495f256c671aff57e750febffe19ca7face6a1", + "scripts/ci/run-bun-test-batches.sh": "f8aa18e80aff1c95c584cd2c879dfbb6806c11fb", + "scripts/ci/bun-crash-signatures.sh": "d34662ddd07864d97bed909135095db33fe42c9e", + "scripts/ci/bun-install-frozen.sh": "e6d7bc3aec044e12297c7c4c04015a33df0eb22b", + "scripts/ci/docker-smoke.ts": "4eea7637d8658156feeaa356c0c3086c00d75fa5", + "scripts/ci/test-durations.tsv": "6ff82545debbd95286928a7a99abfdeb10020a7a", + "scripts/ci/test-durations.windows.tsv": "523cef871c3e17fc0344c98fb15eef79feb04c84", + "scripts/test.ts": "37a8b3cf3fc895826844ab0b29d06cef028fc63a", + "scripts/lib/test-runner-bun.ts": "8763806104a851dbdefeea8cffe8d7dd8d1c8da1", + "scripts/test-temp-lock.ts": "ee83fb254b728de119028f52b9894bf52d7aea15", + "scripts/git-repository-env.ts": "267950490fffb4c48d9adb90bdcf5a873733b324", + "scripts/ci/run-changed-tests.sh": "9a54d3a5db9849bcbe0dd766954a840185419fa5", + "scripts/keyring-smoke.ts": "cd3be07ad57796172696dfa053ea1fb129f29365", + "scripts/privacy-scan.ts": "86314e891b45e49739b94c76cddd9e4cc2d4340f", + "scripts/structure-ssot.ts": "5b2d2918dae877fddfb16cdba6e89f0d10e82298", + "scripts/generate-ocx-skill-surface.ts": "155e866656ba2d71e8fd48adda857451caf16322", + "desktop/scripts/prepare-sidecar.ts": "20f7eec61f73635ea681e25f13dd850b62bb41e2", + "desktop/scripts/build-widget.sh": "38e0eb9d713804b603aa75c32383aa18ef01d06c", + "desktop/scripts/verify-macos-runtime.sh": "43f1a31375c6f6fe7dcafb9d96c231b98d1f6ba4", + "desktop/scripts/verify-linux-sidecar.sh": "c502bb5c8ba8346c722a8f5274f2274bb325a934", + "desktop/scripts/appimage-patchelf.py": "63e78ef74160bc48fbcdd882065f1d416db6d13c", + "desktop/scripts/linux-packaged-e2e.ts": "9ca92352668ff881c85caea44a9b4747bedc7e2d" + } } ] diff --git a/bin/ocx.mjs b/bin/ocx.mjs index ab7dd8b6659..a156f0fc00e 100755 --- a/bin/ocx.mjs +++ b/bin/ocx.mjs @@ -1580,6 +1580,8 @@ function createNodeLaunchContext() { version: 1, proof: launchProof, anthropicEnvSlots: preBunAnthropicSlots, + // Running this shim under Bun can already have loaded project dotenv. + managedRelease: process.versions.bun === undefined && process.env.OCX_MANAGED_RELEASE === "1", codexCliInspectionEnv: codexCliUpdateInspectionContext ? { codexCliPath: preBunCodexCliPath, path: preBunPath, diff --git a/docs-site/src/content/docs/es/reference/cli/lifecycle.md b/docs-site/src/content/docs/es/reference/cli/lifecycle.md index 1213bd7440b..b432a9fd7a8 100644 --- a/docs-site/src/content/docs/es/reference/cli/lifecycle.md +++ b/docs-site/src/content/docs/es/reference/cli/lifecycle.md @@ -711,6 +711,23 @@ La aplicación orquestada sale con 0 cuando el resultado está verificado o ya e Las instalaciones independientes compiladas, incluido el paquete de escritorio MSI Windows, se actualizan a través de **Buscar actualizaciones...** en OpenCodex Desktop, con `ocx update --desktop` en una instalación de Desktop para Windows (que verifica el MSI publicado con la clave del actualizador de la aplicación, lo instala sin interfaz y reinicia el proxy que sigue sirviendo la versión anterior; consulta la guía de la aplicación de escritorio), o reinstalando el binario independiente desde [GitHub Lanzamientos](https://github.com/lidge-jun/opencodex/releases). `ocx system update check` reporta `installer: "standalone"`, `canUpdate: false` y `reason: "standalone_install"` con esa guía. `ocx update` sin `--desktop` sale sin éxito con la misma pista; no ejecuta una actualización de gestor de paquetes para el ejecutable compilado. Una comprobación de fuente genuina todavía reporta `installer: "source"` y `reason: "source_checkout"`. +Si el host ya usa un actualizador externo, por ejemplo un temporizador de systemd +que despliega y activa versiones del código fuente en `/opt/opencodex/releases/`, +configura `OCX_MANAGED_RELEASE=1` en el entorno del servicio del proxy e inicia +el proxy con el lanzador `ocx` de Node de la versión activa. Por ejemplo, configura +el servicio para ejecutar `node /opt/opencodex/current/bin/ocx.mjs start` y haz que +el actualizador reinicie el servicio después de cambiar el enlace `current`. El +lanzador obtiene este ajuste antes de iniciar Bun. El archivo `.env` del proyecto +no puede activar este modo. El administrador del host proporciona el actualizador y sus directorios +de versiones. El nombre del directorio por sí solo no activa este modo y la +variable de entorno no instala ni programa un actualizador. + +El panel y `ocx system update check` pueden comparar la versión instalada con el +canal de npm seleccionado. Si la consulta se completa, se obtienen +`installer: "source"`, `canUpdate: false` y `reason: "managed_release"`, sin +una sugerencia de ejecutar `git pull`. Si npm no devuelve la última versión, se +obtiene `reason: "latest_unavailable"` y el panel permite reintentar la consulta. + #### Actualización de Desktop para Windows sin interfaz ```bash diff --git a/docs-site/src/content/docs/reference/cli/lifecycle.md b/docs-site/src/content/docs/reference/cli/lifecycle.md index 8a538c6fca9..a83d8ca8fb4 100644 --- a/docs-site/src/content/docs/reference/cli/lifecycle.md +++ b/docs-site/src/content/docs/reference/cli/lifecycle.md @@ -1364,6 +1364,23 @@ the `canApply` and `reason` fields describe eligibility. Compiled standalone installs, including the Windows MSI Desktop bundle, are updated through **Check for Updates…** in OpenCodex Desktop, by `ocx update --desktop` on a Windows Desktop installation (below), or by reinstalling the standalone binary from [GitHub Releases](https://github.com/lidge-jun/opencodex/releases). `ocx system update check` reports `installer: "standalone"`, `canUpdate: false`, and `reason: "standalone_install"` with that guidance. `ocx update` without `--desktop` exits unsuccessfully with the same hint; it does not run a package-manager update for the compiled executable. A genuine source checkout still reports `installer: "source"` and `reason: "source_checkout"`. +If your host already uses an external updater, such as a systemd timer that deploys +and switches versioned source trees under `/opt/opencodex/releases/`, set +`OCX_MANAGED_RELEASE=1` in the proxy service environment and start the proxy through +the `ocx` Node launcher from the active release. For example, configure the service +to run `node /opt/opencodex/current/bin/ocx.mjs start` and have the updater restart +the service after switching the `current` link. The launcher captures the setting +before Bun starts. A project `.env` cannot enable this mode. +The host operator supplies the updater and its release directories. The directory +name alone does not enable this mode, and the environment variable does not install +or schedule an updater. + +The dashboard and `ocx system update check` can then compare the installed version +with the selected npm channel. A successful lookup reports +`installer: "source"`, `canUpdate: false`, and `reason: "managed_release"` +without a `git pull` hint. If npm cannot supply the latest version, the check +reports `reason: "latest_unavailable"` and the dashboard offers a retry. + #### Headless Windows Desktop update ```bash diff --git a/gui/src/i18n/de.ts b/gui/src/i18n/de.ts index 8955d6fc5c5..ee6c84c0415 100644 --- a/gui/src/i18n/de.ts +++ b/gui/src/i18n/de.ts @@ -757,11 +757,13 @@ export const de: Record = { "dash.updateCurrent": "Auf dem neuesten Stand", "dash.updateCommand": "Befehl", "dash.updateSource": "Dies ist ein Source-Checkout. Aktualisiere es im Terminal mit dem angezeigten Befehl.", + "dash.updateManaged": "Updates erfolgen automatisch. Der geplante Aktualisierungsdienst des Hosts verwaltet dieses Versionsverzeichnis. Hier ist nichts zu tun.", "dash.updateUnavailable": "Die neueste Version konnte nicht von npm gelesen werden. Versuche es später erneut.", "dash.updateRetry": "Wiederholen", "dash.updateRecheck": "Erneut prüfen", "dash.updateCannotAuto": "Ein-Klick-Update ist nicht verfügbar ({reason}).", "dash.updateReason.source_checkout": "Quellcode-Checkout", + "dash.updateReason.managed_release": "verwaltetes Versionsverzeichnis", "dash.updateReason.latest_unavailable": "npm-Registry nicht erreichbar", "dash.updateReason.already_latest": "bereits auf dem neuesten Stand", "dash.updateReason.externally_managed": "extern von mise verwaltet; führe den angezeigten Befehl aus", diff --git a/gui/src/i18n/en.ts b/gui/src/i18n/en.ts index 890c0105e3b..41a93d93144 100644 --- a/gui/src/i18n/en.ts +++ b/gui/src/i18n/en.ts @@ -778,11 +778,13 @@ export const en = { "dash.updateCurrent": "Up to date", "dash.updateCommand": "Command", "dash.updateSource": "This is a source checkout. Update it from the terminal with the shown command.", + "dash.updateManaged": "Updates are automatic. This release directory is updated by the host's scheduled updater; no action is needed here.", "dash.updateUnavailable": "Could not read the latest version from npm. Try again later.", "dash.updateRetry": "Retry", "dash.updateRecheck": "Re-check", "dash.updateCannotAuto": "One-click update is unavailable ({reason}).", "dash.updateReason.source_checkout": "source checkout", + "dash.updateReason.managed_release": "managed release directory", "dash.updateReason.latest_unavailable": "npm registry unreachable", "dash.updateReason.already_latest": "already on latest", "dash.updateReason.externally_managed": "managed externally by mise; run the shown command", diff --git a/gui/src/i18n/fr.ts b/gui/src/i18n/fr.ts index 45efb248742..1b80615003f 100644 --- a/gui/src/i18n/fr.ts +++ b/gui/src/i18n/fr.ts @@ -768,11 +768,13 @@ export const fr: Record = { "dash.updateCurrent": "À jour", "dash.updateCommand": "Commande", "dash.updateSource": "Il s’agit d’une extraction du code source. Mettez-la à jour depuis le terminal avec la commande affichée.", + "dash.updateManaged": "Les mises à jour sont automatiques. La tâche de mise à jour planifiée sur l’hôte gère ce dossier de version. Aucune action n’est nécessaire ici.", "dash.updateUnavailable": "Impossible de lire la dernière version depuis npm. Réessayez plus tard.", "dash.updateRetry": "Réessayer", "dash.updateRecheck": "Revérifier", "dash.updateCannotAuto": "La mise à jour en un clic est indisponible ({reason}).", "dash.updateReason.source_checkout": "extraction du code source", + "dash.updateReason.managed_release": "dossier de version géré", "dash.updateReason.latest_unavailable": "registre npm inaccessible", "dash.updateReason.already_latest": "dernière version déjà installée", "dash.updateReason.externally_managed": "géré par mise ; exécutez la commande affichée", diff --git a/gui/src/i18n/ja.ts b/gui/src/i18n/ja.ts index 2e930f28281..ee822881ad5 100644 --- a/gui/src/i18n/ja.ts +++ b/gui/src/i18n/ja.ts @@ -766,11 +766,13 @@ export const ja: Record = { "dash.updateCurrent": "最新です", "dash.updateCommand": "コマンド", "dash.updateSource": "これはソースチェックアウトです。表示されたコマンドでターミナルから更新してください。", + "dash.updateManaged": "更新は自動で行われます。ホストの定期更新処理がこのリリースディレクトリを管理するため、ここでの操作は不要です。", "dash.updateUnavailable": "npm から最新バージョンを読み取れませんでした。後でもう一度お試しください。", "dash.updateRetry": "再試行", "dash.updateRecheck": "再確認", "dash.updateCannotAuto": "ワンクリック更新は利用できません({reason})。", "dash.updateReason.source_checkout": "ソースチェックアウト", + "dash.updateReason.managed_release": "管理対象のリリースディレクトリ", "dash.updateReason.latest_unavailable": "npm レジストリに到達できません", "dash.updateReason.already_latest": "最新です", "dash.updateReason.externally_managed": "mise によって外部管理されています。表示されたコマンドを実行してください", diff --git a/gui/src/i18n/ko.ts b/gui/src/i18n/ko.ts index fdb71ceb158..b377a78431e 100644 --- a/gui/src/i18n/ko.ts +++ b/gui/src/i18n/ko.ts @@ -764,11 +764,13 @@ export const ko: Record = { "dash.updateCurrent": "최신 상태", "dash.updateCommand": "명령", "dash.updateSource": "현재는 소스 체크아웃입니다. 표시된 명령을 터미널에서 실행해 업데이트하세요.", + "dash.updateManaged": "업데이트는 자동으로 진행됩니다. 호스트의 예약된 업데이트 작업이 이 릴리스 디렉터리를 관리하므로 여기서 할 일은 없습니다.", "dash.updateUnavailable": "npm에서 최신 버전을 읽지 못했습니다. 잠시 후 다시 시도하세요.", "dash.updateRetry": "재시도", "dash.updateRecheck": "다시 확인", "dash.updateCannotAuto": "원클릭 업데이트를 사용할 수 없습니다 ({reason}).", "dash.updateReason.source_checkout": "소스 체크아웃", + "dash.updateReason.managed_release": "관리형 릴리스 디렉터리", "dash.updateReason.latest_unavailable": "npm 레지스트리에 연결할 수 없음", "dash.updateReason.already_latest": "이미 최신 버전", "dash.updateReason.externally_managed": "mise에서 외부 관리 중입니다. 표시된 명령을 실행하세요", diff --git a/gui/src/i18n/pt.ts b/gui/src/i18n/pt.ts index 5da361daf8d..7e942b9fa96 100644 --- a/gui/src/i18n/pt.ts +++ b/gui/src/i18n/pt.ts @@ -782,11 +782,13 @@ export const pt: Record = { "dash.updateCurrent": "Atualizado", "dash.updateCommand": "Comando", "dash.updateSource": "Esta é uma cópia do código-fonte. Atualize-a pelo terminal com o comando exibido.", + "dash.updateManaged": "As atualizações são automáticas. A tarefa de atualização agendada no host gerencia este diretório de versão. Nenhuma ação é necessária aqui.", "dash.updateUnavailable": "Não foi possível ler a versão mais recente no npm. Tente novamente mais tarde.", "dash.updateRetry": "Tentar novamente", "dash.updateRecheck": "Verificar de novo", "dash.updateCannotAuto": "A atualização com um clique não está disponível ({reason}).", "dash.updateReason.source_checkout": "cópia do código-fonte", + "dash.updateReason.managed_release": "diretório de versão gerenciado", "dash.updateReason.latest_unavailable": "registro do npm inacessível", "dash.updateReason.already_latest": "já está na versão mais recente", "dash.updateReason.externally_managed": "gerenciado externamente pelo mise; execute o comando exibido", diff --git a/gui/src/i18n/ru.ts b/gui/src/i18n/ru.ts index 6323377c111..185e235fcb8 100644 --- a/gui/src/i18n/ru.ts +++ b/gui/src/i18n/ru.ts @@ -766,11 +766,13 @@ export const ru: Record = { "dash.updateCurrent": "Актуальная версия", "dash.updateCommand": "Команда", "dash.updateSource": "Это рабочая копия из исходного кода. Обновите её в терминале с помощью показанной команды.", + "dash.updateManaged": "Обновления выполняются автоматически. Этот каталог релиза обслуживает запланированная задача обновления на хосте. Здесь ничего делать не нужно.", "dash.updateUnavailable": "Не удалось получить сведения о последней версии из npm. Попробуйте позже.", "dash.updateRetry": "Повторить", "dash.updateRecheck": "Проверить снова", "dash.updateCannotAuto": "Обновление в один клик недоступно ({reason}).", "dash.updateReason.source_checkout": "установка из исходного кода", + "dash.updateReason.managed_release": "управляемый каталог релиза", "dash.updateReason.latest_unavailable": "реестр npm недоступен", "dash.updateReason.already_latest": "уже установлена последняя версия", "dash.updateReason.externally_managed": "управляется mise; выполните показанную команду", diff --git a/gui/src/i18n/tr.ts b/gui/src/i18n/tr.ts index c4a04303729..1e5488a9126 100644 --- a/gui/src/i18n/tr.ts +++ b/gui/src/i18n/tr.ts @@ -770,11 +770,13 @@ export const tr: Record = { "dash.updateCurrent": "Güncel", "dash.updateCommand": "Komut", "dash.updateSource": "Bu bir kaynak kod kopyasıdır. Terminalden güncelleyin.", + "dash.updateManaged": "Güncellemeler otomatik yapılır. Bu sürüm dizinini ana makinedeki zamanlanmış güncelleme görevi yönetir. Burada işlem yapmanız gerekmez.", "dash.updateUnavailable": "npm'den en son sürüm okunamadı.", "dash.updateRetry": "Tekrar dene", "dash.updateRecheck": "Yeniden kontrol et", "dash.updateCannotAuto": "Tek tıkla güncelleme kullanılamıyor ({reason}).", "dash.updateReason.source_checkout": "kaynak kod kopyası", + "dash.updateReason.managed_release": "yönetilen sürüm dizini", "dash.updateReason.latest_unavailable": "npm sunucusuna ulaşılamıyor", "dash.updateReason.already_latest": "zaten en son sürümde", "dash.updateReason.externally_managed": "mise tarafından harici olarak yönetiliyor; gösterilen komutu çalıştırın", diff --git a/gui/src/i18n/vi.ts b/gui/src/i18n/vi.ts index c4bd1a834e2..ab5e65ea37a 100644 --- a/gui/src/i18n/vi.ts +++ b/gui/src/i18n/vi.ts @@ -768,11 +768,13 @@ export const vi: Record = { "dash.updateCurrent": "Đã cập nhật mới nhất", "dash.updateCommand": "Lệnh", "dash.updateSource": "Đây là bản checkout nguồn (source checkout). Hãy cập nhật nó từ terminal bằng lệnh hiển thị.", + "dash.updateManaged": "Bản cập nhật được cài đặt tự động. Tác vụ cập nhật theo lịch trên máy chủ quản lý thư mục phát hành này. Bạn không cần thao tác tại đây.", "dash.updateUnavailable": "Không thể đọc phiên bản mới nhất từ npm. Hãy thử lại sau.", "dash.updateRetry": "Thử lại", "dash.updateRecheck": "Kiểm tra lại", "dash.updateCannotAuto": "Tính năng cập nhật bằng một cú nhấp chuột không khả dụng ({reason}).", "dash.updateReason.source_checkout": "checkout mã nguồn", + "dash.updateReason.managed_release": "thư mục phát hành được quản lý", "dash.updateReason.latest_unavailable": "không thể kết nối với registry npm", "dash.updateReason.already_latest": "đã ở phiên bản mới nhất", "dash.updateReason.externally_managed": "được mise quản lý bên ngoài; hãy chạy lệnh được hiển thị", diff --git a/gui/src/i18n/zh-TW.ts b/gui/src/i18n/zh-TW.ts index 6dfb8216fa7..fa5c72f800c 100644 --- a/gui/src/i18n/zh-TW.ts +++ b/gui/src/i18n/zh-TW.ts @@ -637,11 +637,13 @@ export const zhTW: Record = { "dash.updateCurrent": "已是最新", "dash.updateCommand": "命令", "dash.updateSource": "當前是原始碼檢出。請在終端執行顯示的命令進行更新。", + "dash.updateManaged": "更新為自動進行。此版本目錄由主機的排程更新器管理,這裡不需要任何操作。", "dash.updateUnavailable": "無法從 npm 讀取最新版本。請稍後重試。", "dash.updateRetry": "重試", "dash.updateRecheck": "重新檢查", "dash.updateCannotAuto": "無法一鍵更新({reason})。", "dash.updateReason.source_checkout": "原始碼檢出", + "dash.updateReason.managed_release": "受管版本目錄", "dash.updateReason.latest_unavailable": "無法連線 npm 登入檔", "dash.updateReason.already_latest": "已是最新版本", "dash.updateReason.externally_managed": "由 mise 外部管理;請執行顯示的命令", diff --git a/gui/src/i18n/zh.ts b/gui/src/i18n/zh.ts index cf22404a769..d330b25cfc2 100644 --- a/gui/src/i18n/zh.ts +++ b/gui/src/i18n/zh.ts @@ -761,11 +761,13 @@ export const zh: Record = { "dash.updateCurrent": "已是最新", "dash.updateCommand": "命令", "dash.updateSource": "当前是源码检出。请在终端运行显示的命令进行更新。", + "dash.updateManaged": "更新为自动进行。此版本目录由主机的定时更新器管理,这里无需任何操作。", "dash.updateUnavailable": "无法从 npm 读取最新版本。请稍后重试。", "dash.updateRetry": "重试", "dash.updateRecheck": "重新检查", "dash.updateCannotAuto": "无法一键更新({reason})。", "dash.updateReason.source_checkout": "源码检出", + "dash.updateReason.managed_release": "受管版本目录", "dash.updateReason.latest_unavailable": "无法连接 npm 注册表", "dash.updateReason.already_latest": "已是最新版本", "dash.updateReason.externally_managed": "由 mise 外部管理;请运行显示的命令", diff --git a/gui/src/pages/dashboard-dialogs.tsx b/gui/src/pages/dashboard-dialogs.tsx index a87624880e8..8900c922604 100644 --- a/gui/src/pages/dashboard-dialogs.tsx +++ b/gui/src/pages/dashboard-dialogs.tsx @@ -42,7 +42,7 @@ export function DashboardDialogs(d: Dash) { -
{t("dash.updateDesc")}
+ {updateCheck?.reason !== "managed_release" &&
{t("dash.updateDesc")}
}