Add composio gmail_sync_query to scope background Gmail ingestion - #5740
Draft
nocstah wants to merge 1 commit into
Draft
Add composio gmail_sync_query to scope background Gmail ingestion#5740nocstah wants to merge 1 commit into
nocstah wants to merge 1 commit into
Conversation
New [composio] gmail_sync_query config field (e.g. 'label:brain'), plumbed ComposioConfig -> memory host ComposioMode.gmail_sync_query -> tinymemory's Gmail sync pipeline filter. Only matching messages auto-ingest into memory; on-demand Gmail access is unaffected. Blocked on tinyhumansai/tinymemory#94 (the pipeline half); the vendor/tinymemory submodule bump follows once that merges. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UMNxXS5ucxpzNoHnuhyQPu
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueWarning Your free Security trial is over. An organization admin can activate billing to continue. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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
[composio] gmail_sync_queryconfig field: a Gmail search query (e.g.label:brain,from:someone,newer_than:30d) that scopes the background Gmail→memory sync to matching messages only.ComposioConfig→ memory hostComposioMode.gmail_sync_query→ tinymemory's Gmail pipeline standing filter (Add a standing Gmail search filter that scopes background sync tinymemory#94), which ANDs it with the incrementalafter:<cursor>clause — scoped sync stays incremental.Problem
With a Composio Gmail connection and sync enabled, the pipeline ingests the whole inbox window. Users who want the assistant to know only selected mail (privacy, noise, cost) have no content-level control — only quantity caps (
max_items/sync_depth_days). The natural workflow — label an email in Gmail (or let Gmail filters auto-label categories) and have exactly those flow into memory — needs a standing query filter.Solution
One additive config field, defaulting to empty (today's whole-window behavior). Empty/whitespace normalizes to
Noneat the host boundary; the pipeline-side semantics (compose-with-cursor vswith_query's replace-for-backfills) live in the tinymemory PR with 4 tests.Submission Checklist
N/A: additive config field## Related—N/AN/ACloses #NNNin the## Relatedsection —N/A: feature, discussed in #5731's contextImpact
Related
AI Authored PR Metadata (required for Codex/Linear PRs)
Linear Issue
Commit & Branch
Validation Run
pnpm --filter openhuman-app format:check— N/A: Rust-only changepnpm typecheck— N/A: Rust-only changeValidation Blocked
command:cargo check --liberror:ComposioModehas no fieldgmail_sync_queryuntil tinymemory#94 mergesimpact:draft until the dependency lands; validated end-to-end locally against the paired tinymemory branchBehavior Changes
gmail_sync_query = "label:brain", only labeled mail enters memory.Parity Contract
Duplicate / Superseded PR Handling
🤖 Generated with Claude Code
https://claude.ai/code/session_01UMNxXS5ucxpzNoHnuhyQPu