@devries-cameron20 / composio-1 / commits / f5c259f8b
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.

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.

Brendan O'Leary committed Sep 22, 2026 at 15:36 UTC f5c259f8b606a3cb8b591cb1b76a93193d2c9769

No changes.