Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
fix(connected-accounts,py): drop INACTIVE from terminal states in wait_for_connection
The previous patch added FAILED / EXPIRED / INACTIVE / REVOKED to the terminal-state set, flipping the contract from "loop until timeout for any non-ACTIVE" to "raise SDKError immediately on any of those four". INACTIVE means "user disabled, can be reactivated" — a connection can briefly transit through it before settling on ACTIVE, and failing fast there regressed callers that previously recovered. Align Python's terminal set with TS (`ConnectionRequest.ts`) at [FAILED, EXPIRED, REVOKED]. INACTIVE remains non-terminal in both SDKs, matching its "reactivatable" semantics. Addresses PR #3344 review comments P1#2 (regression on INACTIVE) and P1#3 (TS↔Python terminal-state divergence).