Skip to content

fix(den-api): invalidate GitHub discovery cache by head sha#1885

Open
kgarg2468 wants to merge 1 commit into
different-ai:devfrom
kgarg2468:kgarg/fix-github-discovery-cache-revision
Open

fix(den-api): invalidate GitHub discovery cache by head sha#1885
kgarg2468 wants to merge 1 commit into
different-ai:devfrom
kgarg2468:kgarg/fix-github-discovery-cache-revision

Conversation

@kgarg2468
Copy link
Copy Markdown

Summary

  • fetch the current GitHub branch head SHA as part of discovery context
  • require cached discovery entries to match sourceRevisionRef before reuse
  • add focused tests for cache freshness and the head SHA helper

Fixes #1871.

Tests

  • bun test ee/apps/den-api/test/github-discovery.test.ts ee/apps/den-api/test/github-connector-app.test.ts
  • pnpm --filter @openwork-ee/den-api exec tsc -p tsconfig.json --noEmit --pretty false
  • git diff --check

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 22, 2026

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

Project Deployment Actions Updated (UTC)
openwork-landing Ready Ready Preview, Comment, Open in v0 May 22, 2026 2:34am

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 22, 2026

@kgarg2468 is attempting to deploy a commit to the Different AI Team on Vercel.

A member of the Team first needs to authorize it.

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.

[Bug]: GitHub Connector discovery cache ignores commit SHA, causing UI to permanently show stale repository structure

1 participant