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, 23:30 UTC
fix(cli): encode path segments in dashboard fallback URL
The `handleNoManagedAuth` fallback in `composio link` constructs a dashboard URL to open in the browser, but the org name and toolkit slug were interpolated raw into the path. When the org name contains special characters (spaces, `@`, etc.), the unencoded URL passed to the `open` library gets mangled — the `?open=true` query parameter is absorbed into the path segment and percent-encoded as `%3Fopen%3Dtrue`. This causes the dashboard to interpret `twitter%3Fopen%3Dtrue` as the toolkit slug, which then hits the backend as `GET /api/v3/toolkits/twitter%3Fopen%3Dtrue` → 404. Fix: `encodeURIComponent()` both the org name and toolkit slug path segments, matching how the dashboard's own `getUrl()` builds paths. Sentry: https://composio-ly.sentry.io/issues/7412290676/ Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>