fix(search): validate a new provider server before the approval transaction - #8366
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
…r-validate-before-tx # Conflicts: # apps/sim/lib/sim-search/live/member-setup.ts
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
Summary
prepareSearchMcpProvidernow runs before the transaction. It skips DNS when the organization already has the server (same as before) and validates the URL up front for a new one.createManagedMcpConnectoraccepts the pre-validated input, so nothing resolves under the lockconflict("try again") instead of creating it unvalidatedtoSetupErrordedupes it). The organization-accounts and workspace callers still validate inside their own flowType of Change
Testing
Checklist