Repository navigation
fix(web): 同步 MCP 重新发现失败后的健康状态 - #462
Open
Qiyuanqiii wants to merge 2 commits into
Open
Qiyuanqiii wants to merge 2 commits into
Qiyuanqiii wants to merge 2 commits into
Conversation
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.
MCP 重新发现失败会在服务端保存不可用状态,但设置卡片此前保留旧的 healthy。现在失败后也会重新读取扩展状态,同时保留本次错误;恢复连接后更新为 healthy 并清除错误。
基于 #432;仅增加重新发现失败后的查询刷新。
验证:12 项扩展接入测试通过,新增回归在原实现失败;生产构建通过。Windows Chrome 使用同一个生产 API、SQLite 和本地 MCP 服务,实际断开、返回脱敏错误、恢复连接;原始错误内容未显示到页面。原生桌面包未单独运行。
变更前:

变更后:

恢复与错误脱敏截图、实际验证范围。