Repository navigation
Replies: 1 comment
|
+1, with a concrete use case. Attachment receipts (0.59.10) now show that a PDF or XLSX arrived. We would like an opt-in way to index the text of selected attachments too: a per-source allowlist of MIME types (PDF text layer, XLSX/CSV), a size cap, and the same visibility as the parent message. Our case is monthly finance packs (aged receivables, P&L) that arrive only as email attachments. Agents can find the email but not the figures in it. Today we work around it by having the agent fetch and convert the attachment at question time, outside the brain. Running 0.60.464.0, managed Postgres, domain-wide-delegation token command. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Moved from #5550, opened by @andreineacsu on 2026-09-26. Feature requests now live in Discussions > Ideas.
Summary
The native Google source syncs a Gmail thread into the brain with the body text only. Every attachment is dropped, and the synced message keeps no record that one existed. A document that arrives by email (a spec, a contract, an offer annex) is invisible to the brain and to every agent reading it: search finds the email, nothing says a document came with it, and nothing ever fetches it.
Verified on 0.58.1.0 (46ad515), managed Postgres brain, 4 Gmail accounts connected through
gbrain google connect.Evidence
src/core/google/google-clients.ts:248extractBodywalks the MIME tree and returns the firsttext/plainpart (ortext/htmlas fallback). Parts with afilename/body.attachmentIdare never read.src/core/google/google-clients.ts:378-402getThreadbuildsGmailMessageMetafrom headers,calendarMethodandbodyText. It has no attachments field, so filename, mime type and size are lost at this point.RawGmailPart.filename(line 206) is parsed and only used for the.icsinvite check.text/calendar/.ics(extractCalendarMethod, line 275 onward).Relation to #2915
#2915 (closed 2026-07-28 as a feature request) described the same hole in the collector docs (
deterministic-collectors.md,diligence-ingestion.md). Since then gbrain ships its own native Gmail source, so the gap is now in gbrain's own sync path, not in a recipe an operator builds.Observed consequence
An email carried the specification documents for a fixed-price offer. The brain held the email and a deal page that pointed at "the attachments in the email". When the agent was asked whether the spec was in the brain, it had to fetch the attachment through a separate Gmail connector by hand. Until that moment no surface signalled that a document existed and was not ingested.
Proposed change (smallest first)
format=fullpayload). This alone lets an agent or a human see "this message carries a document not in the brain" and route it tobrain-pdf/ diligence ingestion.attachments/, whichsource-boost.ts:67excludes from search by design.Happy to test either on a managed Postgres brain.
All reactions