Repository navigation
A gdrive source syncs the .docx files of a folder whose include names them - #314
Merged
Merged
Conversation
…actor Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…de list Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
… formats; the listing asks for Word documents Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
… source; the docx test lists through its own include Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…er replica's check does; rewraps Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…lback leaves default sources syncing Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…nsitive include test Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…ocx is unticked Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…onfined to it Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…; the form names Word documents; a two-source test Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…ing rewrapped Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…enamed to what it checks Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
… back; rule 31 says the gate does not check it Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
… name Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
zlareb1
force-pushed
the
fix/gdrive-docx-files
branch
from
November 7, 2026 08:24
66c8d50 to
403026b
Compare
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.
Changelog category (leave one):
Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):
A
gdrivesource can sync the.docxfiles in its folders: namedocxin itsinclude(or tick .docx documents in the dashboard's form), and each.docxfile goes to the extractor like a PDF or a.pptxdeck, its original kept for download. The defaultincludestays the four kinds it was.Why
A shared folder of design documents holds
.docxfiles beside native documents, decks and PDFs. The source listed onlydocs,slides,pdfandpptx, so a.docxin a synced folder was never listed, never counted and never searchable, with nothing in the source's state saying so. The extractor already reads DOCX (headings, tables, lists), and the ingest path already routes it; only the source's file kinds left it out.Checked on a private set of real folder contents: both
.docxfiles in it were invisible to the sync, and the reference extractor reads both completely (coverage complete, every paragraph).Scope and risk
includeacceptsdocx, off by default; the listing query asks for its media type when it is named; the file goes through the same path as a PDF or.pptx(size bound, extractor capability check,unconvertedwhen no extractor declares the format, original kept).includeis named once (DEFAULT_INCLUDE, the server'sGDRIVE_DEFAULT_INCLUDE).Compatibility, rollout and rollback
knowledge.source.addacceptsdocxin agdriveconfig'sinclude. The default (includeomitted) is unchanged:docs,slides,pdf,pptx.docs/architecture/rolling-upgrades.md, rule 31): this build acceptsdocxand writes it only when a caller names it. That departs from rule 3 (a new value is read by one release and written only by the next) the way rule 28 does for a new source kind: holdingaddback a release would hold back every folder of.docxfiles, while the cost below falls only on sources a maintainer opts in, ends with the rollout, and loses nothing; rule 31 records it. An older replica has nodocxin its file-kind table: it refuses to add a config naming it (BAD_CONFIG), answers a server error tocheckandrotateof such a source, and fails such a source's turn before any request (statusfailed, errorKeyError, nothing retired; the next turn by this build syncs it). Only sources whose config namesdocxpay this, and only while an older replica serves..docxfiles of a folder an existing source already syncs, add a second source on the same folders withinclude: ["docx"]: it writes only the.docxfiles, whose addresses no source holds, and leaves the first source's documents alone (a sync never writes or retires a document another source holds). A deployment with no extractor fordocxcounts each such fileunconverted(no_extractor), as for PDF.docxstops syncing on the older build (every turnfailed, all its file kinds) until it is removed; adocx-only second source as above confines that to the.docxfiles. Its synced documents stay. Sources withoutdocxare unaffected.Tests
tests/uniton this branch (-n 8): 27,602 passed; the 4 failures aretest_the_delimiter_is_sniffed_in_bounded_timecases, a timing bound that fails the same way onmainon a loaded host.tests/unit/test_knowledge_source_sync.py: a.docxfile goes to the extractor with its bytes kept, parametrised with the.pptxcase;tests/unit/test_knowledge_sources.py: a config namingdocxis stored in the table's order and probed with it; the existing add test pins the defaultincludeto the four kinds.tests/unit/test_knowledge_source_sync.py: a second source with onlydocxbeside a default source on the same folder writes only the.docxfiles and leaves the first source's documents alone (the fake listing now filters by media type, as the store does).frontend/src/lib/knowledgeSources.test.tsexpectations for the defaultinclude;npm --prefix frontend run test,buildandbudget.make format lint typecheck, the generators (op reference, TypeScript op table), the doc-link and public-copy tests.AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated (an agent wrote most of the diff): Claude Code. Checked: every place that lists the gdrive file kinds (config validation, listing query, extractor routing, form, docs, op reference).
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
make format-check,make lint,make typecheckandmake test-unitpass; the integration suite passes if server behaviour changed.docs/reference/configuration.mdand thedocs/reference/tables (python scripts/codegen/docs_reference.py), the reach manifest,schemas/schema.sql(make schema-dump) and the Codex plugin copies (python3 scripts/codegen/agent_plugin_sync.py).main; no merged migration is edited.hooks/,lib/,bin/,skills/,.mcp.json, the Codexplugin-defaults.json) bumps both plugin manifests' version, and no other open PR uses that version.npm --prefix frontend run build) and its tests pass, iffrontend/changed.docs/describe the system as it now is, and this description names any operator steps and wire changes.tests/unit/test_public_copy.py).git commit -s), as CONTRIBUTING.md asks.🤖 Generated with Claude Code