Skip to content

fix: add MIME type fetch for composio drive connector and some fixes#774

Merged
MODSetter merged 5 commits intoMODSetter:devfrom
AnishSarkar22:fix/documents
Feb 3, 2026
Merged

fix: add MIME type fetch for composio drive connector and some fixes#774
MODSetter merged 5 commits intoMODSetter:devfrom
AnishSarkar22:fix/documents

Conversation

@AnishSarkar22
Copy link
Contributor

@AnishSarkar22 AnishSarkar22 commented Feb 3, 2026

Description

  • Added MIME type fetching of documents for composio google drive connector. Previously it was content based fetching which gave issues with google workspace related files.
  • Now emails show as the name for all the composio connector just like our google connectors.
  • Added skeletons in new chat page.
  • Improved the mentioned documents prefetching to reduce latency.

Motivation and Context

FIX #

Screenshots

API Changes

  • This PR includes API changes

Change Type

  • Bug fix
  • New feature
  • Performance improvement
  • Refactoring
  • Documentation
  • Dependency/Build system
  • Breaking change
  • Other (specify):

Testing Performed

  • Tested locally
  • Manual/QA verification

Checklist

  • Follows project coding standards and conventions
  • Documentation updated as needed
  • Dependencies updated as needed
  • No lint/build errors or new warnings
  • All relevant tests are passing

High-level PR Summary

This PR fixes several issues related to the Composio Drive connector integration. The main change switches from content-based file fetching to MIME type-based fetching for Google Drive documents, which resolves errors during file processing. Additionally, it improves the user experience by showing email addresses in connector names (like native Google connectors), adds skeleton loading states to the new chat page for better perceived performance, and optimizes document title prefetching for the @ mention picker to reduce latency.

⏱️ Estimated Review Time: 30-90 minutes

💡 Review Order Suggestion
Order File Path
1 surfsense_web/app/dashboard/[search_space_id]/new-chat/[[...chat_id]]/page.tsx
2 surfsense_web/components/new-chat/document-mention-picker.tsx
3 surfsense_backend/app/tasks/celery_tasks/connector_deletion_task.py
4 surfsense_backend/app/services/composio_service.py
5 surfsense_backend/app/routes/composio_routes.py
6 surfsense_backend/app/connectors/composio_google_drive_connector.py

Need help? Join our Discord

Analyze latest changes

@vercel
Copy link

vercel bot commented Feb 3, 2026

@AnishSarkar22 is attempting to deploy a commit to the Rohan Verma's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

@recurseml recurseml bot left a comment

Choose a reason for hiding this comment

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

Review by RecurseML

🔍 Review performed on 2789dd9..103baa8

✨ No bugs found, your code is sparkling clean

✅ Files analyzed, no issues (6)

surfsense_backend/app/connectors/composio_google_drive_connector.py
surfsense_backend/app/routes/composio_routes.py
surfsense_backend/app/services/composio_service.py
surfsense_backend/app/tasks/celery_tasks/connector_deletion_task.py
surfsense_web/app/dashboard/[search_space_id]/new-chat/[[...chat_id]]/page.tsx
surfsense_web/components/new-chat/document-mention-picker.tsx

@AnishSarkar22 AnishSarkar22 marked this pull request as ready for review February 3, 2026 21:47
@MODSetter MODSetter merged commit 02470fb into MODSetter:dev Feb 3, 2026
9 of 12 checks passed
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.

2 participants