René's URL Explorer Experiment


Title: fix(knowledge): keep Slack searchable while its member crawl runs by waleedlatif1 · Pull Request #8005 · simstudioai/sim · GitHub

Open Graph Title: fix(knowledge): keep Slack searchable while its member crawl runs by waleedlatif1 · Pull Request #8005 · simstudioai/sim

X Title: fix(knowledge): keep Slack searchable while its member crawl runs by waleedlatif1 · Pull Request #8005 · simstudioai/sim

Description: Summary Members-mode search shows a document only while its member observation is under a day old, but a full Slack listing re-fetched every thread (a per-listing nonce in the listing hash) and took far longer than a day on a large workspace, so most of Slack went invisible and the crawl never completed a pass New optional ConnectorConfig.listAccessibleScopes: before each member's listing, the member engine renews that member's observations under every channel they can still read, about twice a day (new knowledge_connector_member.scope_renewed_at watermark, expand-only migration). Access no longer depends on re-crawling content, and a channel the member left still lapses within a day New optional ConnectorConfig.matchContentHash: Slack lists a thread under its root version (edit, reply count, latest reply, channel name) and stores version + text hash, so unchanged threads are not re-fetched. Re-read threads whose text is unchanged, including ones stored under the old text-only hash, only advance the stored hash, so nothing is re-embedded Slack still re-reads threads active in the last 7 days (reply edits don't change the root), a rolling 1/28 of quiet threads each day, and every thread on an explicit full resync; verified empty threads use skippedRetryPolicy: 'source-change' Fewer Slack calls per thread: permalinks are built from the workspace URL auth.test returns (chat.getPermalink only as a fallback), and conversations.info is fetched once per channel per run A member listing that is still resuming no longer reports earlier content failures as this run's error; the generation's failures carry over once it completes, so the next full listing still retries them Type of Change Bug fix Testing Unit: lib/knowledge + connectors (5,466 passing); each new behavior fails its test when reverted Postgres integration: new member-scope-renewal test, plus slack-empty-threads (both added to the CI integration list) and the surrounding connector suites, 77 passing Checked the renewal page query plan on a production-sized copy: ordered index scan with primary-key lookups, no sort bun run lint, check:audits, check:migrations origin/staging, type-check 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)

Open Graph Description: Summary Members-mode search shows a document only while its member observation is under a day old, but a full Slack listing re-fetched every thread (a per-listing nonce in the listing hash) and to...

X Description: Summary Members-mode search shows a document only while its member observation is under a day old, but a full Slack listing re-fetched every thread (a per-listing nonce in the listing hash) and to...

Opengraph URL: https://github.com/simstudioai/sim/pull/8005

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:40b9544b-daa1-bff4-edfc-cc6953a443dd
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA928:1C88A1:CBAE87:11FC6DA:6AFB5DBE
html-safe-noncee752c986b2d647064101fd56a4d66e843acaced1c43624f66e9820836068e13e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTI4OjFDODhBMTpDQkFFODc6MTFGQzZEQTo2QUZCNURCRSIsInZpc2l0b3JfaWQiOiI3MTg1MTM3ODgwMzI1MTE5NDIyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac8cf2222a412d496518c98eeda8421a039db9936b41405cde4fc4190b63e12f6b
hovercard-subject-tagpull_request:4576107394
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/8005/files
twitter:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
og:image:altSummary Members-mode search shows a document only while its member observation is under a day old, but a full Slack listing re-fetched every thread (a per-listing nonce in the listing hash) and to...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release59ef97164c52cf59bd10558ddec9c4f482763988
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/8005/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F8005%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F8005%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/8005/files
Reloadhttps://github.com/simstudioai/sim/pull/8005/files
Reloadhttps://github.com/simstudioai/sim/pull/8005/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests197 (197)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
fix/slack-member-crawl-freshnesshttps://github.com/simstudioai/sim/tree/fix/slack-member-crawl-freshness
Conversation 43 https://github.com/simstudioai/sim/pull/8005
Commits 5 https://github.com/simstudioai/sim/pull/8005/commits
Checks 33 https://github.com/simstudioai/sim/pull/8005/checks
Files changed https://github.com/simstudioai/sim/pull/8005/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/8005/files
fix(knowledge): keep Slack searchable while its member crawl runs https://github.com/simstudioai/sim/pull/8005/files#top
Show all changes 5 commits https://github.com/simstudioai/sim/pull/8005/files
1932033 fix(knowledge): keep Slack searchable while its member crawl runs waleedlatif1 Sep 19, 2026 https://github.com/simstudioai/sim/pull/8005/commits/193203302f07cdea49311443d81ea2409af6a7c3
cef0b6d fix(knowledge): keep scope renewal due when a channel listing is cut off waleedlatif1 Sep 19, 2026 https://github.com/simstudioai/sim/pull/8005/commits/cef0b6d7f66060d8aad9c3569ddf3007d2f69fdf
b50bbe8 fix(knowledge): restart listings for Full resync and reset renewal on… waleedlatif1 Sep 19, 2026 https://github.com/simstudioai/sim/pull/8005/commits/b50bbe89eba636779daf8cb7fcf7692b31c652e0
f15fb7c fix(knowledge): resume member scope renewal across runs waleedlatif1 Sep 19, 2026 https://github.com/simstudioai/sim/pull/8005/commits/f15fb7ccc90d0c4276df20c0c6b182cc5263befe
cc9abe0 fix(knowledge): batch scope renewal and keep refreshed metadata waleedlatif1 Sep 19, 2026 https://github.com/simstudioai/sim/pull/8005/commits/cc9abe0894c8060fb4117098d0021ae9ee9e0398
Clear filters https://github.com/simstudioai/sim/pull/8005/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/8005/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/8005/files
test-build.yml https://github.com/simstudioai/sim/pull/8005/files#diff-a583f7935a5f3192471a2999cbf059eadc857228b5be2c7247f481b799949f8d
knowledge-connector-member-sync.ts https://github.com/simstudioai/sim/pull/8005/files#diff-c9bc8eee5ab4b2c42b8e01859a4d628ce06b3566314cbffb7892b0b1b1cc3c7e
gmail.test.ts https://github.com/simstudioai/sim/pull/8005/files#diff-2015d76c06ae8ede41ca47189bb078baa6a2cde7161ef444be5cad6ed76f02f0
slack.test.ts https://github.com/simstudioai/sim/pull/8005/files#diff-e4691ffd81ad52bb42179f11f2fd0a4a2e3c4d753f21296d4ff41da24c7d503a
slack.ts https://github.com/simstudioai/sim/pull/8005/files#diff-148e7cb1c1964ac610d4691a00318e85c3240cf07e414729c4c876d07a151462
types.ts https://github.com/simstudioai/sim/pull/8005/files#diff-f2cc63aee0c2986b6b2d30205f9f261e33b282d0cd330baf9f8bb0a1cd307178
connectors.ts https://github.com/simstudioai/sim/pull/8005/files#diff-e93268a083eddbc5d4228aedad29b6f265c8b07354fe5bc04f514727b1308eb1
connector-save-concurrency.integration.ts https://github.com/simstudioai/sim/pull/8005/files#diff-7c74f177c47fb8818a779c1dcb32e9ada5aa859f9f1c55212978183a20755708
member-scope-renewal.integration.ts https://github.com/simstudioai/sim/pull/8005/files#diff-b568bc56f0a34199aa6d5d268920769e95afb70a21cab789f572cc94701351ef
listing-checkpoint.ts https://github.com/simstudioai/sim/pull/8005/files#diff-d842e11f3fab3e95fcf40d16013149d8f345dc4535ec309dd02b63f549b6e50f
member-observations.test.ts https://github.com/simstudioai/sim/pull/8005/files#diff-862878ee240c7c81a2b4c5fe75155383f946ddb11f9bf70aa8f5a689ef93c23d
member-observations.ts https://github.com/simstudioai/sim/pull/8005/files#diff-d38c4ec5ee0b5affe0223c865a8c4e1d1ee9673238bb0efc831542f2cd0388ea
member-sync-engine.integration.test.ts https://github.com/simstudioai/sim/pull/8005/files#diff-ddb82f905268992067819fcb9a6ee4f9beff4efcb53b039433a9375f7a388824
member-sync-engine.ts https://github.com/simstudioai/sim/pull/8005/files#diff-f5784431ef7cb3961aec5ea7513b6af82c03f47030b45533077f1be9233550d0
sync-content-pass.test.ts https://github.com/simstudioai/sim/pull/8005/files#diff-8d35d55800e2821b9e7cd19c76e2db80b43c20e2e53ab4485115f2abfd24d5d7
sync-content-pass.ts https://github.com/simstudioai/sim/pull/8005/files#diff-b6bd8cd1ab36d6b8e1b29f63847ffc4e4ee912f70e19de773896d753cc73d866
sync-deferral.ts https://github.com/simstudioai/sim/pull/8005/files#diff-b30aaa770b4312c39573617c486909944045e7a71808aa2a9d8de9426c18c181
sync-engine.test.ts https://github.com/simstudioai/sim/pull/8005/files#diff-021afebf7e100833ecdc940e307263436964ce85ef3dfd40fc90307a1d115534
sync-limits.ts https://github.com/simstudioai/sim/pull/8005/files#diff-e4bf8fcfa2c3e67b5a9397f0c335534269a6b2c57dcf85c5fa4191a1f414811e
sync-persistence.ts https://github.com/simstudioai/sim/pull/8005/files#diff-ebb4244cb03a8db47201961838942947833e406e54102d2519780d1043d531be
sync-primitives.test.ts https://github.com/simstudioai/sim/pull/8005/files#diff-9c60a2428a9a26fa9e9816035b3894ec00ac4fc62e593024ff716ea065271a58
sync-primitives.ts https://github.com/simstudioai/sim/pull/8005/files#diff-f03702ab1eda626483984539879fd0475efc6ee2b6bf9c1df86cca4ead80a1fb
0366_member_scope_renewed_at.sql https://github.com/simstudioai/sim/pull/8005/files#diff-30fbabd24e6f30afa40a5dbf661c6a3f35f9fa2fad63926b7726423f6b1b1bbb
0366_snapshot.json https://github.com/simstudioai/sim/pull/8005/files#diff-f8b3936d8ec52152b044a8f8165d328783c27e8415c64d8e9a1ef2873e2c9ef0
_journal.json https://github.com/simstudioai/sim/pull/8005/files#diff-37150cc65ad16ee6fbc5fa318fc096be7730e16d63eaf863e3df5521b7030649
schema.ts https://github.com/simstudioai/sim/pull/8005/files#diff-9a959e2ce3cb4c86957bbae021d06eae364f7b0cb18964f5873bab53220af928
.github/workflows/test-build.ymlhttps://github.com/simstudioai/sim/pull/8005/files#diff-a583f7935a5f3192471a2999cbf059eadc857228b5be2c7247f481b799949f8d
View file https://github.com/simstudioai/sim/blob/cc9abe0894c8060fb4117098d0021ae9ee9e0398/.github/workflows/test-build.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8005/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8005/files#diff-a583f7935a5f3192471a2999cbf059eadc857228b5be2c7247f481b799949f8d
https://github.com/simstudioai/sim/pull/8005/files#diff-a583f7935a5f3192471a2999cbf059eadc857228b5be2c7247f481b799949f8d
apps/sim/background/knowledge-connector-member-sync.tshttps://github.com/simstudioai/sim/pull/8005/files#diff-c9bc8eee5ab4b2c42b8e01859a4d628ce06b3566314cbffb7892b0b1b1cc3c7e
View file https://github.com/simstudioai/sim/blob/cc9abe0894c8060fb4117098d0021ae9ee9e0398/apps/sim/background/knowledge-connector-member-sync.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8005/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8005/files#diff-c9bc8eee5ab4b2c42b8e01859a4d628ce06b3566314cbffb7892b0b1b1cc3c7e
https://github.com/simstudioai/sim/pull/8005/files#diff-c9bc8eee5ab4b2c42b8e01859a4d628ce06b3566314cbffb7892b0b1b1cc3c7e
apps/sim/connectors/gmail/gmail.test.tshttps://github.com/simstudioai/sim/pull/8005/files#diff-2015d76c06ae8ede41ca47189bb078baa6a2cde7161ef444be5cad6ed76f02f0
View file https://github.com/simstudioai/sim/blob/cc9abe0894c8060fb4117098d0021ae9ee9e0398/apps/sim/connectors/gmail/gmail.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8005/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8005/files#diff-2015d76c06ae8ede41ca47189bb078baa6a2cde7161ef444be5cad6ed76f02f0
https://github.com/simstudioai/sim/pull/8005/files#diff-2015d76c06ae8ede41ca47189bb078baa6a2cde7161ef444be5cad6ed76f02f0
apps/sim/connectors/slack/slack.test.tshttps://github.com/simstudioai/sim/pull/8005/files#diff-e4691ffd81ad52bb42179f11f2fd0a4a2e3c4d753f21296d4ff41da24c7d503a
View file https://github.com/simstudioai/sim/blob/cc9abe0894c8060fb4117098d0021ae9ee9e0398/apps/sim/connectors/slack/slack.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8005/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8005/files#diff-e4691ffd81ad52bb42179f11f2fd0a4a2e3c4d753f21296d4ff41da24c7d503a
https://github.com/simstudioai/sim/pull/8005/files#diff-e4691ffd81ad52bb42179f11f2fd0a4a2e3c4d753f21296d4ff41da24c7d503a
https://github.com/simstudioai/sim/pull/8005/files#diff-e4691ffd81ad52bb42179f11f2fd0a4a2e3c4d753f21296d4ff41da24c7d503a
https://github.com/simstudioai/sim/pull/8005/files#diff-e4691ffd81ad52bb42179f11f2fd0a4a2e3c4d753f21296d4ff41da24c7d503a
https://github.com/simstudioai/sim/pull/8005/files#diff-e4691ffd81ad52bb42179f11f2fd0a4a2e3c4d753f21296d4ff41da24c7d503a
https://github.com/simstudioai/sim/pull/8005/files#diff-e4691ffd81ad52bb42179f11f2fd0a4a2e3c4d753f21296d4ff41da24c7d503a
https://github.com/simstudioai/sim/pull/8005/files#diff-e4691ffd81ad52bb42179f11f2fd0a4a2e3c4d753f21296d4ff41da24c7d503a
Please reload this pagehttps://github.com/simstudioai/sim/pull/8005/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/8005/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.