@devries-cameron20 / composio Mirror · read-only / commits / dd10b660a
Fork 0

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 (#3221)

## Summary - **Fixes** the `handleNoManagedAuth` fallback in `composio link` where the dashboard URL had unencoded path segments - The org name and toolkit slug were interpolated raw into the URL template — when the org name has special characters (spaces, `@`, etc.), the `open` library mangles the URL, turning `?open=true` into `%3Fopen%3Dtrue` in the path - This caused the dashboard to treat `twitter%3Fopen%3Dtrue` as the toolkit slug → `GET /api/v3/toolkits/twitter%3Fopen%3Dtrue` → **404** (20 events/24h, 3 users on [Sentry](https://composio-ly.sentry.io/issues/7412290676/)) - Fix: `encodeURIComponent()` both `orgName` and `toolkitSlug` in the path, matching how the dashboard's own `getUrl()` builds URLs ## Test plan - [ ] Run `composio link <toolkit>` for a toolkit without managed auth, with an org name containing special characters (e.g. spaces) - [ ] Verify the opened dashboard URL has properly encoded path segments and `?open=true` as a real query parameter - [ ] Verify the auto-open connect flow works on the dashboard side 🤖 Generated with [Claude Code](https://claude.com/claude-code)

Sarah Simionescu committed Apr 17, 2026 at 19:19 UTC dd10b660aaad8b2b64627518d1dd97aab902a805

No changes.