Skip to content

DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.

revert(plugin): 去掉插件面板上「没有升级」的 toast

hairyf54b7bc34bbb4
diff --git a/src/i18n/locales/en-US.json b/src/i18n/locales/en-US.json
index f82133a4..279e6e36 100644
--- a/src/i18n/locales/en-US.json
+++ b/src/i18n/locales/en-US.json
@@ -263,8 +263,6 @@
"plugins.remove_confirm_desc": "Uninstall {{name}}? Its features will no longer be available after removal.",
"plugins.remove_failed": "Failed to uninstall {{name}}",
"plugins.upgrade_failed": "Failed to upgrade {{name}}",
- "plugins.upgrade_held": "{{name}} was not upgraded",
- "plugins.upgrade_held_hint": "The profile pins this dependency, or the new release has not passed the supply-chain age window (releases younger than 24 hours are not installed by default). Retry later, or add the exact version to minimumReleaseAgeExclude in the profile.",
"plugins.updated_toast": "Plugin {{name}} updated",
"plugins.removed_toast": "Plugin {{name}} uninstalled",
"plugins.disable": "Disable",
diff --git a/src/i18n/locales/zh-CN.json b/src/i18n/locales/zh-CN.json
index aa8f9b65..f9b05bbb 100644
--- a/src/i18n/locales/zh-CN.json
+++ b/src/i18n/locales/zh-CN.json
@@ -263,8 +263,6 @@
"plugins.remove_confirm_desc": "确定卸载插件 {{name}} 吗?卸载后其功能将不可用。",
"plugins.remove_failed": "卸载插件 {{name}} 失败",
"plugins.upgrade_failed": "升级插件 {{name}} 失败",
- "plugins.upgrade_held": "{{name}} 没有升级",
- "plugins.upgrade_held_hint": "档案已钉死该依赖,或新版本尚未通过供应链保护期(发布不足 24 小时的版本默认不安装),稍后再试或把精确版本加进档案的 minimumReleaseAgeExclude。",
"plugins.updated_toast": "插件 {{name}} 已更新",
"plugins.removed_toast": "插件 {{name}} 已卸载",
"plugins.disable": "禁用",
diff --git a/src/ui/config/plugin.tsx b/src/ui/config/plugin.tsx
index 7aee28c1..465304cf 100644
--- a/src/ui/config/plugin.tsx
+++ b/src/ui/config/plugin.tsx
@@ -101,16 +101,6 @@ export function ConfigPlugin() {
onError: (err, id) => {
const name = plugins.find(p => p.id === id)?.name ?? id
console.error('[ConfigPlugin] upgrade failed:', err)
- // 「命令成功但版本没动」不是插件故障(档案钉死或 pnpm 的 release-age 策略,
- // 见后端 PLUGIN_UPDATE_NO_CHANGE):报「升级失败」会把用户引去排查插件本身。
- if (String(err).startsWith('PLUGIN_UPDATE_NO_CHANGE:')) {
- toast(t('plugins.upgrade_held', { name }), {
- variant: 'warning',
- description: t('plugins.upgrade_held_hint'),
- timeout: 10_000,
- })
- return
- }
toast(t('plugins.upgrade_failed', { name }), {})
},
})