@devries-cameron20 / composio Mirror · read-only / commits / fab54828d
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, 22:15 UTC

fix(install): prefer stable CLI releases by default (#3323)

## Summary - make `install.sh` choose the latest stable `@composio/cli@x.y.z` tag by default instead of prerelease beta tags - add a clearer `--agent` setup failure message for users already signed in as a regular Composio user ## Tests - `bash -n install.sh` - verified the release-tag selection pipeline resolves `@composio/cli@0.2.28` instead of `@composio/cli@0.2.28-beta.223`

Rahul Tarak committed May 1, 2026 at 15:47 UTC fab54828d84bd95580fb49b272947217bb77d927
1 file changed +4 -1
install.sh
+4 -1
@@ -121,6 +121,7 @@ if [[ -z "$version_arg" ]]; then
121 version=$(git ls-remote --tags "$github_repo" "@composio/cli@*" \
122 | awk '{print $2}' \
123 | sed 's#^refs/tags/##; s#\^{}$##' \
124 + | grep -E '^@composio/cli@[0-9]+\.[0-9]+\.[0-9]+$' \
125 | sort -V \
126 | tail -1)
127
@@ -337,7 +338,9 @@ rm -f "$install_err"
338 if [[ $install_agent = true ]]; then
339 echo
340 info "Setting up Composio agent login..."
340 - "$exe" login --agent --no-skill-install || error 'Failed to sign up/log in as a Composio agent'
341 + if ! "$exe" login --agent --no-skill-install; then
342 + error 'Failed to sign up/log in as a Composio agent. If this CLI is already signed in as a regular user, run `composio logout` and then `composio signup` or `composio agent login <composio_agent_key>`.'
343 + fi
344 fi
345
346 echo