Repository navigation
fix(pi-tool-supervisor): 修复拒绝诊断在折叠卡片外重复展示 - #252
Merged
maplezzk merged 1 commit intoNov 9, 2026
Merged
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.
审查未通过时,折叠的 Supervisor 卡片外不再重复显示整段拒绝诊断,卡片详情仍可用 Ctrl+O 展开。
仅在 TUI 且对应工具的展示中间件活跃时省去 after 拒绝通知;Agent 仍收到完整诊断,无卡片或非 TUI 场景的通知、before 阻断与通知均保持不变。改动仅影响 pi-tool-supervisor,并同步中英文使用说明,无配置或依赖变更。
Fixes #251
验证:新增回归在修复前因重复通知失败、修复后通过;
npm run check --workspace=pi-tool-supervisor的 167 项测试及仓库npm run check均通过。测试覆盖折叠/展开、对应工具管线是否活跃、非 TUI、通用工具和 before 阻断;未运行真人 TUI 或真实模型。未附截图:原始截图含私人信息,当前 MCP 提交接口也不支持图片附件。现有锁定依赖的安装审计报告 6 个漏洞(3 moderate、3 high),本 PR 未升级依赖。