fix(knowledge): stabilize skipped connector documents - #7130
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile SummaryThe PR aligns deferred-hydration skip handling with listing-time reconciliation while preserving retry behavior for content-less placeholders.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains; the previously reported retry path remains reachable because unchanged content-less placeholders still enter hydration during normal syncs.
|
| Filename | Overview |
|---|---|
| apps/sim/lib/knowledge/connectors/sync-engine.ts | Extracts and reuses the skip-replacement predicate during deferred hydration without disabling same-hash placeholder rehydration. |
| apps/sim/lib/knowledge/connectors/sync-engine.test.ts | Adds focused assertions covering content-less placeholders, indexed content retention, and authoritative skip replacement. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Listed external document] --> B{Needs deferred hydration?}
B -- No --> C[Apply skip replacement predicate]
B -- Yes --> D[Hydrate document]
D --> E{Hydration returns skip?}
E -- No --> F[Continue normal processing]
E -- Yes --> C
C --> G{Existing row has no storage key or skip is authoritative?}
G -- Yes --> H[Persist and count intentional skip]
G -- No --> I[Retain last-known-good indexed content]
Reviews (2): Last reviewed commit: "fix(knowledge): stabilize skipped connec..." | Re-trigger Greptile
waleedlatif1
force-pushed
the
codex/stable-connector-skips
branch
from
August 26, 2026 21:46
9c819fa to
30745dc
Compare
Collaborator
Author
Collaborator
Author
|
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
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
Production evidence
A production GitHub sync reported previously recorded binary placeholders as source failures after the ingestion hardening rollout. Trigger traces showed successful listing and processing dispatch, while persisted state showed the reported failures were existing binary placeholders rather than GitHub API or child-processing failures. The hydration path rediscovered an intentional binary skip but, unlike the equivalent listing-time path, treated the content-less existing row as an unverified indexed refresh.
Why this is minimal
The correction extracts the existing skip-replacement predicate and reuses it after deferred hydration. Existing content-less placeholders continue to rehydrate so providers with weak or absent modification metadata can recover. A rediscovered intentional skip is persisted and counted as
docsSkipped; indexed last-known-good content is still retained unless the connector opts into authoritative replacement. No provider-specific suppression, retry change, or alert filtering is added.Validation
No schema or migration changes.