Fix composio_auth_link connect link generation#161
Merged
xlabtg merged 3 commits intoxlabtg:mainfrom Apr 18, 2026
Merged
Conversation
Adding .gitkeep for PR creation (default mode). This file will be removed when the task is complete. Issue: xlabtg#160
Author
Solution summaryImplemented and pushed the fix for issue 160. PR: #161 What changed:
Verification:
PR 161 is marked ready for review, and GitHub Actions for the pushed commit are green: CI, Deploy to Vercel, and CodeQL all passed. This summary was automatically extracted from the AI working session output. |
Author
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
📊 Context and tokens usage:Total: (130.6K + 1.8M cached) input tokens, 9.4K output tokens 🤖 Models used:
📎 Log file uploaded as Gist (5943KB)Now working session is ended, feel free to review and add any feedback on the solution draft. |
Author
✅ Ready to mergeThis pull request is now ready to be merged:
Monitored by hive-mind with --auto-restart-until-mergeable flag |
This reverts commit 8bda216.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #160 by making
composio_auth_linkgenerate real Composio Connect Links through the documented v3 auth flow instead of relying on the SDKtoolkits.authorizeshortcut that can returnDefault auth config not foundfor toolkits without managed credentials.Changes
auth_configsplusconnected_accounts/linkHTTP flow forcomposio_auth_link.auth_config_id.callback_urlandaliassupport in the link request body and cover it with a regression test.https://app.composio.dev/connect?...example links.Reproduction
Before this change, requesting an auth link for a toolkit like
openaicould fail with:The new regression test simulates that Composio response and verifies the plugin returns a clear instruction to use a real auth config ID instead of handing back an unusable example link.
Verification
node --test plugins/composio-direct/test/unit/composio-direct.test.jsnode --test plugins/composio-direct/tests/index.test.js plugins/composio-direct/test/integration/composio-api.test.jsnpm run lintpasses with existing warnings onlynpm run typechecknpm testnpm run validatestill reports unrelated missing plugin-local optional packages forevaa(@evaafi/sdk),multisend(@tonkite/highload-wallet-v3), andstonfi(@ston-fi/api).composio-directvalidates successfully.