Skip to content

fix(knowledge): skip verified empty Slack threads - #7734

Merged
icecrasher321 merged 2 commits into
stagingfrom
codex/fix-slack-empty-thread-sync
Sep 10, 2026
Merged

icecrasher321 merged 2 commits into
stagingfrom
codex/fix-slack-empty-thread-sync

Conversation

@icecrasher321

Copy link
Copy Markdown
Collaborator

Summary

  • Mark fully fetched Slack threads with no extractable text as skipped so connector syncs complete without scheduling empty documents.
  • Remove stale indexed text when a thread becomes empty, recover when replies gain content, and retain failures for missing or incomplete responses.

Type of Change

  • Bug fix

Testing

  • 92 regression tests passed.
  • End-to-end coverage using disposable PostgreSQL/Redis, real sync jobs, storage, indexing, and authorized search; Slack and embedding responses are synthetic.
  • App type check, repo lint, API boundary validation, and all 46 audits passed.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercel Bot commented Sep 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Sep 10, 2026 8:55pm UTC

Request Review

@greptile-apps

greptile-apps Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge, with no outstanding correctness or repository-rule issues identified.

Summary

  • Produces a replace-disposition skipped document only after all reply pages are fetched.
  • Continues indexing a thread when edited replies later contain text.
  • Adds connector and end-to-end regression coverage for empty, restored, incomplete, and missing-root threads.
  • Changes since the previous review only reformat a test fixture insertion and introduce no behavioral differences.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Fetch all Slack reply pages] --> B{Fetch complete?}
    B -- No --> C[Fail sync and preserve existing indexed content]
    B -- Yes --> D{Root message present?}
    D -- No --> C
    D -- Yes --> E{Extractable text present?}
    E -- No --> F[Mark skipped with replace disposition]
    F --> G[Remove stale storage and searchable vectors]
    E -- Yes --> H[Fetch permalink]
    H --> I[Index or update document]
Loading

Reviews (2) · Last reviewed commit: "chore(knowledge): format Slack sync inte..."

@icecrasher321

Copy link
Copy Markdown
Collaborator Author

@greptile

@icecrasher321

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@icecrasher321 I have started the AI code review. It will take a few minutes to complete.

@icecrasher321
icecrasher321 merged commit ecf2ae2 into staging Sep 10, 2026
33 checks passed
@icecrasher321
icecrasher321 deleted the codex/fix-slack-empty-thread-sync branch September 10, 2026 21:00
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.

1 participant