mirror of
https://github.com/davidkaya/aryx.git
synced 2026-07-24 05:28:46 +02:00
When multiple MCP servers expose tools with the same name, the approval pill showed an incorrect count (e.g. 150/300) even when everything was approved. The numerator used a Set<string> to deduplicate by tool ID, so shared tools were counted once, while the denominator counted each group occurrence independently. Extract countApprovedToolsInGroups() into shared/domain/tooling.ts and switch to per-group counting that mirrors the totalItemCount formula. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>