René's URL Explorer Experiment


Title: fix(file-search): claim owners woken by a file write ahead of backfill reconciliation by waleedlatif1 · Pull Request #9655 · simstudioai/sim · GitHub

Open Graph Title: fix(file-search): claim owners woken by a file write ahead of backfill reconciliation by waleedlatif1 · Pull Request #9655 · simstudioai/sim

X Title: fix(file-search): claim owners woken by a file write ahead of backfill reconciliation by waleedlatif1 · Pull Request #9655 · simstudioai/sim

Description: Summary The backfill walk wakes every owner a page passes so the dispatcher reconciles its builds. Those wake-ups entered the owner queue never dispatched, exactly like an owner the file trigger wakes for a write, and each claim pass takes never-dispatched owners first in enqueue order. A page across many small owners put dozens of wake-ups with nothing to claim ahead of a fresh upload, which then waited several passes (minutes) to be indexed. Owners with pending work that had been dispatched before waited behind every one of them, so a busy workspace could go an hour between turns. Backfill wake-ups now enter the queue as if just dispatched. Write-woken owners are claimed first; the wake-ups still rotate in by dispatch age, so reconciliation and backfill-found work are delayed behind fresh writes but never starved. An owner already queued keeps its place (the upsert is unchanged). Only the backfill enqueue changes. The release, reaper, and trigger paths still enqueue never-dispatched, per-owner (2) and global (100) caps are unchanged, no migration. README notes the ordering. Type of Change Bug fix Testing dispatcher.integration.ts (real PostgreSQL, bun run test:integration dispatcher.integration), three new tests: a write-woken owner is claimed on the next pass behind a page of 250 reconciliation wake-ups — red on the old code (claimed nothing) with one free slot per pass, a fresh write is claimed before work the backfill found, then the backfill work on the next pass — red on the old code (backfill work won, the write was not claimed in two passes) an owner already queued by a write stays ahead of an owner served earlier when a backfill page passes it — red on a mutant whose upsert stamps existing rows writes go through the real workspace_file_search_mark_pending trigger, not hand-written queue rows Whole suite 37/37; also ran owners.integration 18/18, chunks.integration 49/49 (1 opt-in skip), index-plan.integration 9/9, content-rendered.integration 31/31, dispatcher.test.ts + enqueue-dispatch.test.ts 17/17 lint and type-check (pre-push hooks); remaining audits in CI 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)

Open Graph Description: Summary The backfill walk wakes every owner a page passes so the dispatcher reconciles its builds. Those wake-ups entered the owner queue never dispatched, exactly like an owner the file trigger w...

X Description: Summary The backfill walk wakes every owner a page passes so the dispatcher reconciles its builds. Those wake-ups entered the owner queue never dispatched, exactly like an owner the file trigger w...

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

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:23ef4dc3-759f-70e3-3ba4-a679f82fb2af
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9ACC:442D2:15E10F:208B00:6AFB1D4F
html-safe-nonce60b29b4927169932f9d6e71dd479023b70ef618b6638ac60de96cfb767758ef0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QUNDOjQ0MkQyOjE1RTEwRjoyMDhCMDA6NkFGQjFENEYiLCJ2aXNpdG9yX2lkIjoiMjYxNDg3MTM5MjYyODk3Mjg3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac22ba746efbc6cff927110790423683395bf4e8e870215ab4690ce0ce1b453682
hovercard-subject-tagpull_request:5147724198
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/9655/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 The backfill walk wakes every owner a page passes so the dispatcher reconciles its builds. Those wake-ups entered the owner queue never dispatched, exactly like an owner the file trigger w...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None24933791aba0f10b2f189f8b953a1452dd79933933ac13a0a67b8ad3acee3d9f
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
release030711cc180b563614a434f4376acf7da5d445fa
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/9655/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F9655%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%2F9655%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/9655/files
Reloadhttps://github.com/simstudioai/sim/pull/9655/files
Reloadhttps://github.com/simstudioai/sim/pull/9655/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests198 (198)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/file-search-dispatch-priorityhttps://github.com/simstudioai/sim/tree/fix/file-search-dispatch-priority
Conversation 2 https://github.com/simstudioai/sim/pull/9655
Commits 1 https://github.com/simstudioai/sim/pull/9655/commits
Checks 80 https://github.com/simstudioai/sim/pull/9655/checks
Files changed https://github.com/simstudioai/sim/pull/9655/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9655/files
fix(file-search): claim owners woken by a file write ahead of backfill reconciliation https://github.com/simstudioai/sim/pull/9655/files#top
Show all changes 1 commit https://github.com/simstudioai/sim/pull/9655/files
b8f605c fix(file-search): claim owners woken by a file write ahead of backfil… waleedlatif1 Nov 4, 2026 https://github.com/simstudioai/sim/pull/9655/commits/b8f605cff8d57c1c9635cd3d8d0fd61368f84d4f
Clear filters https://github.com/simstudioai/sim/pull/9655/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9655/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9655/files
README.md https://github.com/simstudioai/sim/pull/9655/files#diff-625b017042a1d9a671673d8b7077f6f7e4513b30970b08b008bf9fb670f641c4
dispatcher.integration.ts https://github.com/simstudioai/sim/pull/9655/files#diff-5f580fffd39ddd529ae710b571e855f28636a56713b8d9f1889d03127d070e02
dispatcher.ts https://github.com/simstudioai/sim/pull/9655/files#diff-6683656d968a1a183bf327531c469e9b0b8eea626f303f8482a0504340be2d1d
apps/sim/lib/workspace-files/search/README.mdhttps://github.com/simstudioai/sim/pull/9655/files#diff-625b017042a1d9a671673d8b7077f6f7e4513b30970b08b008bf9fb670f641c4
View file https://github.com/simstudioai/sim/blob/b8f605cff8d57c1c9635cd3d8d0fd61368f84d4f/apps/sim/lib/workspace-files/search/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9655/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9655/files#diff-625b017042a1d9a671673d8b7077f6f7e4513b30970b08b008bf9fb670f641c4
apps/sim/lib/workspace-files/search/dispatcher.integration.tshttps://github.com/simstudioai/sim/pull/9655/files#diff-5f580fffd39ddd529ae710b571e855f28636a56713b8d9f1889d03127d070e02
View file https://github.com/simstudioai/sim/blob/b8f605cff8d57c1c9635cd3d8d0fd61368f84d4f/apps/sim/lib/workspace-files/search/dispatcher.integration.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9655/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9655/files#diff-5f580fffd39ddd529ae710b571e855f28636a56713b8d9f1889d03127d070e02
https://github.com/simstudioai/sim/pull/9655/files#diff-5f580fffd39ddd529ae710b571e855f28636a56713b8d9f1889d03127d070e02
https://github.com/simstudioai/sim/pull/9655/files#diff-5f580fffd39ddd529ae710b571e855f28636a56713b8d9f1889d03127d070e02
https://github.com/simstudioai/sim/pull/9655/files#diff-5f580fffd39ddd529ae710b571e855f28636a56713b8d9f1889d03127d070e02
apps/sim/lib/workspace-files/search/dispatcher.tshttps://github.com/simstudioai/sim/pull/9655/files#diff-6683656d968a1a183bf327531c469e9b0b8eea626f303f8482a0504340be2d1d
View file https://github.com/simstudioai/sim/blob/b8f605cff8d57c1c9635cd3d8d0fd61368f84d4f/apps/sim/lib/workspace-files/search/dispatcher.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9655/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9655/files#diff-6683656d968a1a183bf327531c469e9b0b8eea626f303f8482a0504340be2d1d
https://github.com/simstudioai/sim/pull/9655/files#diff-6683656d968a1a183bf327531c469e9b0b8eea626f303f8482a0504340be2d1d
https://github.com/simstudioai/sim/pull/9655/files#diff-6683656d968a1a183bf327531c469e9b0b8eea626f303f8482a0504340be2d1d
https://github.com/simstudioai/sim/pull/9655/files#diff-6683656d968a1a183bf327531c469e9b0b8eea626f303f8482a0504340be2d1d
Please reload this pagehttps://github.com/simstudioai/sim/pull/9655/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.