Skip to content

fix(knowledge): key vision checkpoints by title and keep excluded images off while disabled - #8965

Merged
waleedlatif1 merged 4 commits into
stagingfrom
fix/kb-image-release-review
Oct 13, 2026
Merged

waleedlatif1 merged 4 commits into
stagingfrom
fix/kb-image-release-review

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • Vision checkpoints now include the filename in their cache key, since the extraction prompt names it as the title, so a rename never reuses text extracted under the old title
  • Restoring an excluded image is rejected while the connector's image attachments are off. Turning images off keeps excluded rows so the exclusion survives turning them back on, but those rows still hold their indexed text, and restoring one re-enabled text the source no longer lists
  • Follow-up to feat(knowledge): index Confluence image attachments #8949, from the release PR review

Type of Change

  • Bug fix

Testing

  • vision-checkpoints.test.ts: added a renamed-title case, which fails without the fix
  • confluence-images.integration.ts: an excluded image stays excluded with images off, restore is rejected, and restore succeeds after images come back on (runs in CI)
  • Targeted vitest on application/connectors, vision-checkpoints and image-extraction (67 passed); biome on touched files

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing (new tests pass the test-audit authoring gate)
  • 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 Oct 13, 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 Oct 13, 2026 6:29am UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 5 files

Heads up: you’ve reached your flex budget. Increase your flex budget or wait for usage to reset.

Turn on auto-fix | Re-trigger cubic

Comment thread apps/sim/lib/knowledge/application/connectors.ts Outdated
@greptile-apps

greptile-apps Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium impact] The PR appears safe to merge, with both earlier restore issues addressed.

Summary

This PR prevents vision checkpoints from reusing text after a filename changes and rejects image restores while image attachments are off.

  • Renamed images get a fresh vision extraction checkpoint.
  • Excluded images stay off until image attachments are enabled.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Restore requested] --> B[Update selected documents in transaction]
  B --> C{Restored rows include images?}
  C -->|No| G[Commit]
  C -->|Yes| D[Read settings with shared connector lock]
  D --> E{Image attachments enabled?}
  E -->|Yes| G
  E -->|No| F[Reject and roll back]
Loading

Reviews (4) · Last reviewed commit: "improvement(knowledge): read the connect..." · Reviewed by Greptile

Comment thread apps/sim/lib/knowledge/application/connectors.ts Outdated
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

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

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 5 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Heads up: you’ve reached your flex budget. Increase your flex budget or wait for usage to reset.

Turn on auto-fix | Re-trigger cubic

Comment thread apps/sim/lib/knowledge/application/connectors.ts Outdated
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

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

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 5 files

Heads up: you’ve reached your flex budget. Increase your flex budget or wait for usage to reset.

Turn on auto-fix | Re-trigger cubic

Comment thread apps/sim/lib/knowledge/application/connectors.ts
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

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

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 5 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Heads up: you’ve reached your flex budget. Increase your flex budget or wait for usage to reset.

Turn on auto-fix | Re-trigger cubic

@waleedlatif1
waleedlatif1 merged commit 831d11d into staging Oct 13, 2026
51 checks passed
@waleedlatif1
waleedlatif1 deleted the fix/kb-image-release-review branch October 13, 2026 15:33

This branch was previously deployed

1 inactive deployment
Preview — 2201de64 Deployed Oct 13, 2026 by vercel[bot]
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