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, 11:00 UTC
docs: clean up Cloudflare Worker sessions after requests (#4585)
The Cloudflare Worker walkthrough creates a Composio session for each authenticated request but never deletes it. Await session deletion in `finally` on success and failure, log cleanup failures without replacing the response, and continue flushing telemetry. Addresses the two session-cleanup review comments on #4581, which merged while this fix was being prepared. Validation: production docs build and all 591 static tests passed. Executed the extracted Worker snippet with stubbed SDK calls for success, model/tool errors, session creation failure, deletion failure, and unauthorized requests. The cleanup assertion fails on the original snippet and passes with this change. No live credentialed calls were made.
No changes.