fix(search): harden connector setup and indexed access
Merged
WA
2mo ago+5313+5313+0123456789012345678901234567890123456789-538-538-012345678901234567890123456789
Summary
- Fix organization-scoped credential setup, managed-account browsing and provider-specific read scopes while keeping central indexing service-account-only.
- Correct connector pagination, permissions, Gmail body hydration and sync removal reporting; preserve staging's existing indexing safeguards.
- Align Search citations, source settings, sync history and MCP onboarding with existing UI patterns.
- Update Search setup guides, screenshots and MCP documentation to describe the supported paths and limitations.
Type of Change
- Bug fix
Testing
- 154 Vitest suites / 3,007 tests and 18 real PostgreSQL suites / 168 tests passed. Follow-up changes passed 89 setup tests and 167 Gmail/persistence tests, including oversized responses, revision races and unchanged-skip handling.
- Real Google and Atlassian setup, indexing, Search, assistant and MCP checks, including edits, deletion and selected permission transitions. Provider variants and production-scale workloads are not exhaustively certified.
- Repository lint, all 26 workspace type checks, all 46 repository audits and generated documentation checks passed.
Checklist
- Code follows project style guidelines
- Self-reviewed my changes
- Tests added/updated and passing
- No new warnings introduced
- I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)