mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-25 07:27:13 +01:00
Review follow-up. composioAppSetupResult falls back to the first sign-in link anywhere in the response, so in a multi-app add a sibling's link marked an absent or errored app as needs_auth. Add composioAddOutcomes, which parses the response once and reads each toolkit's own result node: connected is succeeded, its own link is needs_auth, and an error or no node is failed. The response-wide link counts only when exactly one app was added. An MCP-level or provider error fails every app. The Composio list check compared every write with the status read before the batch, so a toolkit named twice (refreshAggregatorApps passes names through) sent two app_linked events for one change. Update the previous status after each committed write. Tested: connector-telemetry unit tests (sibling link, top-level link with several apps, single-app fallback), a composio-app-setup case with a repeated toolkit (fails without the fix), the partial-check case, and the shared telemetry and remote MCP suites (163 pass). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>