Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 21, 18:30 UTC
fix(cli): bind analytics identity to the caller's credential; propagate spawn failure
Two bugbot findings on the previous fix. - The credential fingerprint was read back via getUserApiKey, but every login path resolves identity BEFORE persisting the new credential (link at 327/512/720 vs ctx.login at 342/560/756). So the stored fingerprint described the previous key — or none on a fresh install — and could never match, leaving every post-login event anonymous. That defeated the identity stitch entirely. The credential is now passed in explicitly by the caller (each already holds the key it just validated), so identity no longer depends on write ordering. - spawnWorker swallowed DetachedProcessSpawnError and enqueue returned true regardless, so a failed spawn still marked the alias as sent and it was never retried — defeating the field added for exactly that purpose. Spawn failure now propagates through enqueue. Added a regression test that reproduces the login ordering (no readable credential at link time); verified it fails without the fix, producing the install_id instead of the Apollo id. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>