fix(search): close Slack and desktop source-connect review gaps - #8500
Closed
waleedlatif1 wants to merge 1 commit into
Closed
waleedlatif1 wants to merge 1 commit into
waleedlatif1 wants to merge 1 commit into
Conversation
- Forward the abort signal on the browser Slack Search OAuth start. - Report a signed-out managed Slack callback as signin_required so the completion page and desktop handoff show sign-in recovery. - Cap desktop source-connect bodies at 64 KiB at the parser.
Collaborator
Author
Collaborator
Author
|
@cubic-dev-ai review this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
Contributor
|
Collaborator
Author
Collaborator
Author
|
Closing as superseded: #8497 already merged the same three fixes (Slack search abort signal, source-connect body limit, managed-callback sign-in reason) with tests, plus the desktop double-connect guard. |
This branch was previously deployed
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
Follow-ups to the release review for the Slack Search, managed Slack, and desktop source-connect paths.
Fixed
hooks/queries/slack-search.ts). The browser branch ofuseStartSlackSearchOAuthdropped thesignalthe mutation accepts, so closing or unmounting the wizard could not cancel an in-flight start. It is now forwarded torequestJson, matching the desktop branch and the personal-search hook.app/credential-groups/slack-complete/page.tsx). The managed-users callback redirected withreason=unauthenticated, but the completion page and the desktop handoff (lib/desktop/source-browser.ts,lib/desktop/source-connect.ts) only recognizesignin_required. The callback now sendssignin_required, so a signed-out user gets the sign-in-and-restart guidance. The only other'unauthenticated'consumer (hooks/mcp/use-mcp-oauth-popup.ts) belongs to the MCP popup and is unaffected.app/api/desktop/source-connect/route.ts). The route parsed bodies up to the default 50 MiB before the use case applied its 32 KiB ticket limit. It now setsparseOptions.maxBodyBytes: 64 * 1024, so oversized bodies get a 413 at the parser. Valid requests are well under that limit and behave the same.Not changed
lib/sim-search/live/provider-rollout.ts). Not a real issue. Every Zoom Search path runs through connected accounts (credential groups).resolveCredentialGroupsAvailabilityinlib/credential-groups/availability.tsreturnsfeature_disabledfor any scope without an organization, so evaluating the Zoom flag globally for those workspaces could never enable anything.hooks/use-search-integration-connection.ts). Not a real issue. On desktop,mutateAsyncresolves only after OAuth completes.isPendingguards the click while it is in flight. TanStack Query awaits the mutation'sonSettledbefore it resolvesmutateAsync(query-coreMutation.execute), and thatonSettledawaits the inventory invalidation. So by the time the click guard is released,connectedalready reflects the new account.ZOOM_SEARCHin.env.exampleare handled in fix(search): recheck Zoom approval and bound MCP serialization #8496 and are left out here to avoid overlap.Type of Change
Testing
signin_required, a 256 KiB source-connect body gets a 413, and aborting the signal rejects an in-flight browser Slack OAuth start.bun run lint,bun run type-check(apps/sim),bun run check:audits(52/52)Checklist