DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.
fix(plugin): 补 toast 描述与重开引导的收尾
hairyf3deaaba233f8
diff --git a/src/i18n/locales/en-US.json b/src/i18n/locales/en-US.jsonindex 6b03e2f7..f82133a4 100644--- a/src/i18n/locales/en-US.json+++ b/src/i18n/locales/en-US.json@@ -263,7 +263,8 @@"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: 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)",+ "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.jsonindex 584546c5..aa8f9b65 100644--- a/src/i18n/locales/zh-CN.json+++ b/src/i18n/locales/zh-CN.json@@ -263,7 +263,8 @@"plugins.remove_confirm_desc": "确定卸载插件 {{name}} 吗?卸载后其功能将不可用。","plugins.remove_failed": "卸载插件 {{name}} 失败","plugins.upgrade_failed": "升级插件 {{name}} 失败",- "plugins.upgrade_held": "{{name}} 没有升级:档案已钉死该依赖,或新版本尚未通过供应链保护期(默认 24 小时内不安装)",+ "plugins.upgrade_held": "{{name}} 没有升级",+ "plugins.upgrade_held_hint": "档案已钉死该依赖,或新版本尚未通过供应链保护期(发布不足 24 小时的版本默认不安装),稍后再试或把精确版本加进档案的 minimumReleaseAgeExclude。","plugins.updated_toast": "插件 {{name}} 已更新","plugins.removed_toast": "插件 {{name}} 已卸载","plugins.disable": "禁用",diff --git a/src/store/modules/preinstall/store.ts b/src/store/modules/preinstall/store.tsindex b723be15..f9e0664c 100644--- a/src/store/modules/preinstall/store.ts+++ b/src/store/modules/preinstall/store.ts@@ -216,6 +216,8 @@ export const preinstall = defineStore({returnvoid hooks['config.dialog.hidden'].trigger()this.error = ''+ // 重新打开引导时清掉上次留下的拦截清单,否则会直接落在授权对话框上+ this.incompatible = []this.logs = []// 侧边栏手动打开:非首次安装,默认勾选策略为「仅已安装」this.isFirstTime = falsediff --git a/src/ui/config/plugin.tsx b/src/ui/config/plugin.tsxindex ab37f55f..7aee28c1 100644--- a/src/ui/config/plugin.tsx+++ b/src/ui/config/plugin.tsx@@ -104,7 +104,11 @@ export function ConfigPlugin() {// 「命令成功但版本没动」不是插件故障(档案钉死或 pnpm 的 release-age 策略,// 见后端 PLUGIN_UPDATE_NO_CHANGE):报「升级失败」会把用户引去排查插件本身。if (String(err).startsWith('PLUGIN_UPDATE_NO_CHANGE:')) {- toast(t('plugins.upgrade_held', { name }), { variant: 'warning' })+ toast(t('plugins.upgrade_held', { name }), {+ variant: 'warning',+ description: t('plugins.upgrade_held_hint'),+ timeout: 10_000,+ })return}toast(t('plugins.upgrade_failed', { name }), {})diff --git a/test/preinstall-incompatible.test.ts b/test/preinstall-incompatible.test.tsindex cf498ccc..110060bf 100644--- a/test/preinstall-incompatible.test.ts+++ b/test/preinstall-incompatible.test.ts@@ -101,4 +101,13 @@ describe('preinstall version-exemption grant', () => {expect(preinstall.incompatible).toEqual([])expect(preinstall.error).toBe('PLUGIN_EXEMPTION_FAILED: [email protected]: dsh plugin exited with code 1')})++ it('drops a stale pending list when the wizard is reopened', async () => {+ preinstall.incompatible = BLOCKED+ invoke.mockResolvedValue([])++ await preinstall.open()++ expect(preinstall.incompatible).toEqual([])+ })})