Repository navigation
Conversation
2 tasks done
Collaborator
|
LGTM,感谢修复! 已在完成端到端 MCP 批量导入实测:第一轮勾选 Pi 提交时,docs 成功入库并自动从待导入队列移除,events 因 Pi 不支持 SSE 被拦截失败且抽屉保持开启;取消不兼容应用再次提交后,第二轮仅发送 events 单条请求并成功关闭抽屉。建议先于 #10176 合入。 |
3 of 5 tasks
YUZHEthefool
approved these changes
Dec 3, 2026
funkpopo
approved these changes
Dec 3, 2026
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.
Human Note / 本人说明
我从很久很久之前就在使用 CC Switch,很想为 CC Switch 做贡献。
Summary / 概述
批量导入部分成功时,从待处理列表移除写入成功的服务器,保留失败项和原先跳过的项。用户更改「写入到」后可以重试剩余项。提交期间锁定会替换整批草稿的模板、粘贴框和清空按钮。
Related Issue / 关联 Issue
Fixes #10198
验证
使用 stdio 的
docs和 SSE 的events,先同时写入 Claude 与 Pi。Pi 拒绝 SSE 后取消勾选 Pi,再重试。真实表单的写入顺序从docs → events → docs → events变为docs → events → events。新增组件用例也核对了原先主动跳过的条目仍可选。将修复前后的表单参数分别回放到
McpService::upsert_server,每次使用独立的内存 SQLite 和临时 Pi 目录。修复前,重试后docs.apps.pi和 Pi 的mcpServers.docs.enabled都是false。修复后两者都是true,events成功写入 Claude。pnpm exec vitest run tests/components/McpFormModal.test.tsx该组件文件的 17 个用例在 Windows 上通过。
本地检查
pnpm typecheck、pnpm format:check、pnpm build:renderer