π fix: add the creds tools into execAgentRuntime#13399
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
π @arvinxx Could you review this PR? It adds creds tools into execAgentRuntime, touching |
Codecov Reportβ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## canary #13399 +/- ##
==========================================
- Coverage 66.88% 66.85% -0.03%
==========================================
Files 1905 1906 +1
Lines 154323 154416 +93
Branches 18472 17769 -703
==========================================
+ Hits 103222 103242 +20
- Misses 50981 51054 +73
Partials 120 120
Flags with carried forward coverage won't be shown. Click here to find out more.
π New features to boost your workflow:
|
There was a problem hiding this comment.
π‘ Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7da49005f6
βΉοΈ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with π.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| // Get the authorization URL | ||
| // Note: In background execution, we cannot use window.location.origin | ||
| // The redirect URI should be configured for server-side OAuth flow | ||
| const redirectUri = `https://app.lobehub.com/oauth/callback/success?provider=${provider}`; |
There was a problem hiding this comment.
Derive OAuth redirect URI from deployment origin
Avoid hardcoding the OAuth callback to https://app.lobehub.com: when initiateOAuthConnect runs on self-hosted, staging, or custom-domain deployments, the returned authorization link redirects to the cloud site instead of the current instance, so the flow cannot reliably return to the userβs active environment and may fail to complete there. Use deployment-aware config (for example APP_URL/request origin) or inject the redirect URI via runtime context.
Useful? React with πΒ / π.
|
β€οΈ Great PR @ONLY-yours β€οΈ The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our discord and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world. |
fix: add the creds tools into execAgentRuntime
π» Change Type
π Related Issue
π Description of Change
π§ͺ How to Test
πΈ Screenshots / Videos
π Additional Information