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 22, 20:45 UTC
Fix wait connection
kaavee315 committed
Aug 14, 2025 at 20:17 UTC
0d482ee5404307058a731b1490374be15f5cff9a
1 file changed
+10
-3
python/composio/core/models/connected_accounts.py
+10
-3
@@ -360,9 +360,16 @@ class ConnectedAccounts:
360
"""
361
Wait for connected account with given ID to be active
362
"""
363
- return ConnectionRequest.from_id(
364
- id=id, client=self._client
365
- ).wait_for_connection(
363
+ # Get the connection status first
364
+ connection = self._client.connected_accounts.retrieve(nanoid=id)
365
+ # Create a ConnectionRequest instance
366
+ connection_request = ConnectionRequest(
367
+ id=id,
368
+ status=connection.status,
369
+ redirect_url=None,
370
+ client=self._client,
371
+ )
372
+ return connection_request.wait_for_connection(
373
timeout=timeout,
374
)
375