Skip to content

fix(search-mcp): skip Slack for an email person filter without users:read.email, and quote Gmail person addresses - #10454

Merged
waleedlatif1 merged 1 commit into
stagingfrom
fix/search-involving-followups
Nov 27, 2026
Merged

waleedlatif1 merged 1 commit into
stagingfrom
fix/search-involving-followups

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • Slack: an involving email search needs users:read.email to find the member, and the default Slack connection doesn't request that scope. Accounts without it are now skipped with the standard "cannot filter by this person" status. Before, they returned a "reconnect Slack" error that reconnecting couldn't fix. involving: "me" is unchanged.
  • Gmail: person clauses now quote the address, so {, } and |, which are valid in an email local part, no longer break the {from: to: cc:} group. The quoted form returns the same messages as the unquoted one.

Type of Change

  • Bug fix

Testing

  • lib/sim-search/live/providers.test.ts (2 new tests; both fail with the fix reverted) and lib/sim-search/live/application.test.ts: 143 passed
  • biome on the changed files; type-check and audits run in CI

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing (new tests pass the test-audit authoring gate)
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

…read.email, and quote Gmail person addresses

- A Slack account without users:read.email cannot find a member by email, so an involving email
  search now skips it with the cannot-filter status instead of asking for a reconnect that the
  default Slack connection cannot satisfy.
- Gmail person clauses quote the address, so characters valid in an email local part ({ } |) no
  longer break the {from: to: cc:} group.
@vercel

vercel Bot commented Nov 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Nov 27, 2026 3:32am UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 4 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@greptile-apps

greptile-apps Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · This PR appears safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] This PR appears safe to merge.

Summary

Slack accounts without users:read.email now skip email-based person searches instead of asking users to reconnect. Gmail person clauses now quote addresses.

  • Slack skips email person searches when an account lacks the lookup scope.
  • Gmail keeps person searches intact when addresses contain search operators.

Reviews (1) · Last reviewed commit: "fix(search-mcp): skip Slack for an email..." · Reviewed by Greptile

@waleedlatif1
waleedlatif1 merged commit e3c8c71 into staging Nov 27, 2026
84 checks passed
@waleedlatif1
waleedlatif1 deleted the fix/search-involving-followups branch November 27, 2026 03:42

This branch was previously deployed

1 inactive deployment
Preview — aa8b71c6 Deployed Nov 27, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant