fix: 增强启动失败兜底识别与组件冲突解析 - #99
Closed
yaojin3616 wants to merge 1 commit into
Closed
Conversation
…lugin name and support component conflict explanation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更背景
当安装的部分第三方插件(如
@deepseek-harness-tui/dsh-tui)由于组件定义冲突引发duplicate loader entry id: storage等错误时,Cordis 内核日志中并未输出具体的插件包名,导致此前的恢复界面无法识别出具体插件(提示“无法定位到具体插件”且无法一键卸载),从而造成重启后仍然持续报错。主要修复与增强
src/main/index.ts&src/main/state/plugin-recovery.ts):profiles/web/package.json中已安装的第三方插件(排除官方内置核心包)。src/main/plugin-recovery-view.ts):duplicate loader entry id: <entry>冲突类型的自然语言解析(展示为“插件注册了重复的服务组件”),向用户清晰展示冲突根因。src/main/state/plugin-recovery.ts):cordis.patch.yml为纯净状态,避免卸载后残留补丁配置导致二次报错。test/plugin-recovery-view.test.ts和test/plugin-recovery.test.ts,新增对应错误解析与第三方插件扫描用例。