René's URL Explorer Experiment


Title: fix(tables): server-authoritative run badge, tail SSE from latest, harden Stop-all by TheodoreSpeaks · Pull Request #5492 · simstudioai/sim · GitHub

Open Graph Title: fix(tables): server-authoritative run badge, tail SSE from latest, harden Stop-all by TheodoreSpeaks · Pull Request #5492 · simstudioai/sim

X Title: fix(tables): server-authoritative run badge, tail SSE from latest, harden Stop-all by TheodoreSpeaks · Pull Request #5492 · simstudioai/sim

Description: Summary Make the "X running" badge server-authoritative: drop the fragile per-event ±1 client deltas and the dead dispatch-scope runningCellCount; refetch the run-state snapshot on a leading+trailing 1s throttle as cell SSE events arrive (cancelRefetch: false + dirty-flag follow-up so slow fetches can't livelock or strand a stale final count) Tail the table SSE stream from the latest event on fresh mount instead of replaying buffered history over freshly-fetched state (fixes the reload animation storm: backwards badge cross-fades + typewriter re-reveals); sessionStorage cursor removed, in-session reconnects still replay-resume; warm-cache in-SPA remounts reconcile with one invalidate Harden Stop-all: insert the dispatch row before the prep work (an early Stop-all had nothing to cancel and silently no-oped), cancel in-flight run-state fetches before optimistic bumps/clears, zero the badge optimistically on Stop, toast on cancel failure, "Stopping…" while pending Header control shows "Queueing" until a cell is actually claimed (was labeling a full table of queued stamps as "N running") Tooltips on all cell status badges (Queued/Cancelled/Pending/Running/Not found/No output); error handled on staging Net server win: dispatches route now does one indexed count; countActiveRunCells' per-refetch rows-ahead COUNT deleted Type of Change Bug fix Testing Tested manually (run-all/stop-all cycles, reload mid-run, batch transitions). Added tests for the events buffer memory path, dispatches route shape, and the stream from param. Full lint, type-check, check:api-validation:strict, check:react-query pass. 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) 🤖 Generated with Claude Code https://claude.ai/code/session_013d4zXsMMwVBmXk33JBok7d

Open Graph Description: Summary Make the "X running" badge server-authoritative: drop the fragile per-event ±1 client deltas and the dead dispatch-scope runningCellCount; refetch the run-state snapshot on a lea...

X Description: Summary Make the "X running" badge server-authoritative: drop the fragile per-event ±1 client deltas and the dead dispatch-scope runningCellCount; refetch the run-state snapshot ...

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

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:80f25306-8019-011c-0da0-09d34c423fc0
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBC28:1CB508:966889:D5C0DE:6AFB5351
html-safe-nonce40fe0351f2f3846503bfed065823a423d51e0cc9a6043fc5de2e8de3dad775ab
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzI4OjFDQjUwODo5NjY4ODk6RDVDMERFOjZBRkI1MzUxIiwidmlzaXRvcl9pZCI6IjY5NTQ5NjU2MDA3NzA0MTMzOTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace77078cb3db4df0f4c36dd6223f216d94be5ef285d90eced940b9326184ac0b5
hovercard-subject-tagpull_request:4010234404
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/5492/files
twitter:imagehttps://avatars.githubusercontent.com/u/19564703?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/19564703?s=400&v=4
og:image:altSummary Make the "X running" badge server-authoritative: drop the fragile per-event ±1 client deltas and the dead dispatch-scope runningCellCount; refetch the run-state snapshot on a lea...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7122bb414b542dba14d71a3f0b9f6fd2abce715b9f5912d082800563e6c806d1
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
releasecbf66c024bb6d10e6955baa7413c54cf13a201bb
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/5492/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5492%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%2F5492%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/5492/files
Reloadhttps://github.com/simstudioai/sim/pull/5492/files
Reloadhttps://github.com/simstudioai/sim/pull/5492/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
TheodoreSpeakshttps://github.com/TheodoreSpeaks
staginghttps://github.com/simstudioai/sim/tree/staging
fix/table-running-numberhttps://github.com/simstudioai/sim/tree/fix/table-running-number
Conversation 26 https://github.com/simstudioai/sim/pull/5492
Commits 8 https://github.com/simstudioai/sim/pull/5492/commits
Checks 17 https://github.com/simstudioai/sim/pull/5492/checks
Files changed https://github.com/simstudioai/sim/pull/5492/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5492/files
fix(tables): server-authoritative run badge, tail SSE from latest, harden Stop-all https://github.com/simstudioai/sim/pull/5492/files#top
Show all changes 8 commits https://github.com/simstudioai/sim/pull/5492/files
e8b705b fix(tables): server-authoritative run badge, tail SSE from latest, ha… TheodoreSpeaks Jul 7, 2026 https://github.com/simstudioai/sim/pull/5492/commits/e8b705b63f93dc348e0d8a3e425b817deca338c0
ed3b78a fix(tables): return null dispatchId when Stop-all cancels a run durin… TheodoreSpeaks Jul 7, 2026 https://github.com/simstudioai/sim/pull/5492/commits/ed3b78a74998db1bb9c521fd60aa0518548127b3
ab40f49 improvement(tables): co-locate dispatcher imports, stamp throttle clo… TheodoreSpeaks Jul 7, 2026 https://github.com/simstudioai/sim/pull/5492/commits/ab40f49075d347b90f60b001dd7891c2af73d730
f4a4bd3 fix(tables): table-wide hasRunning signal for Queueing label, fail fa… TheodoreSpeaks Jul 7, 2026 https://github.com/simstudioai/sim/pull/5492/commits/f4a4bd315f4b1ab4090c13d4878e49e06c2a2616
64c85d1 fix(tables): clear hasRunning on table-wide stop, refetch rows when a… TheodoreSpeaks Jul 7, 2026 https://github.com/simstudioai/sim/pull/5492/commits/64c85d1bdb498b59b4a9a3599036ea23efb0799b
188967c fix(tables): don't let dispatch-cancel cleanup mask the original prep… TheodoreSpeaks Jul 7, 2026 https://github.com/simstudioai/sim/pull/5492/commits/188967c86c668999ce4d72fa22914eb9c38020a4
0c7e829 fix(tables): reconcile null-dispatch runs via invalidation, not stale… TheodoreSpeaks Jul 7, 2026 https://github.com/simstudioai/sim/pull/5492/commits/0c7e829d938adecaec6eba98a38732cf7ff393b6
a5a39a8 fix(tables): widen warm-cache remount check to either query cache TheodoreSpeaks Jul 7, 2026 https://github.com/simstudioai/sim/pull/5492/commits/a5a39a86831628773d0923a0cc4223c66680df5e
Clear filters https://github.com/simstudioai/sim/pull/5492/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5492/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5492/files
route.test.ts https://github.com/simstudioai/sim/pull/5492/files#diff-a514a6bfac4d8a821770fda87aa4d6319402b03de16fc7fdd1cc8a81c5098add
route.ts https://github.com/simstudioai/sim/pull/5492/files#diff-b35a828acd8306f997f37f17acd5cdaa675d7f11b16044c6c26634fd79c68aa6
route.ts https://github.com/simstudioai/sim/pull/5492/files#diff-5ba6eb8f1aeb3ff155c4dc49896932a28480e428d17f6419f85eaf683947bc1a
run-status-control.tsx https://github.com/simstudioai/sim/pull/5492/files#diff-03e08ee472707351a45450a0a25369a96493c2b5e0851712f90c9296fadcd7ca
cell-render.tsx https://github.com/simstudioai/sim/pull/5492/files#diff-026682f26b04415f8af685f296bb82130eb0969fb6b8d21842bb37086a8d5bfa
table-grid.tsx https://github.com/simstudioai/sim/pull/5492/files#diff-264141b75a0ee2c4464df4bb6f5722cd982587470cf162e5aae9de04c84fbc0e
use-table-event-stream.ts https://github.com/simstudioai/sim/pull/5492/files#diff-c60c72baa945552c031a0f8e07bd9ed12985b66f2c59e482419816966baee8e6
table.tsx https://github.com/simstudioai/sim/pull/5492/files#diff-5a65d49f1fb75a42db9178db41caa5cb9bf776a547ab82822e99a13bd51a1669
tables.ts https://github.com/simstudioai/sim/pull/5492/files#diff-1d761ed5a7a2ed9ba4435d0f39c5f1f7ac13c177b301c401b38f5a6d731ac8cb
tables.test.ts https://github.com/simstudioai/sim/pull/5492/files#diff-24d45f6eb6564b0391178c803c00abfa47118e04b74d04a5f11625f3c637e256
tables.ts https://github.com/simstudioai/sim/pull/5492/files#diff-927ba827479bb6f5c0c9cee9dfe1067112e939610060f6a1e939f232b976257d
dispatcher.ts https://github.com/simstudioai/sim/pull/5492/files#diff-f8c89504ec9f5dd51c53a54ead52a73b9fe7c64bc6d6a19d01d07cd72e2435a6
events.test.ts https://github.com/simstudioai/sim/pull/5492/files#diff-1fdd6339e72a432ec91ef9fc94a5566b45f9aaf75c7fc2e6e47f3015ee54701f
events.ts https://github.com/simstudioai/sim/pull/5492/files#diff-f4db8c424928e747aaffb7c0352fdb9690e85dd886cf357a8deca0cdaf29e6e3
workflow-columns.ts https://github.com/simstudioai/sim/pull/5492/files#diff-2d2727f03b87c89b81e1bc74ad4faea8bf94a1d679ddf9b1ec098a8b22c83019
apps/sim/app/api/table/[tableId]/dispatches/route.test.tshttps://github.com/simstudioai/sim/pull/5492/files#diff-a514a6bfac4d8a821770fda87aa4d6319402b03de16fc7fdd1cc8a81c5098add
View file https://github.com/simstudioai/sim/blob/a5a39a86831628773d0923a0cc4223c66680df5e/apps/sim/app/api/table/%5BtableId%5D/dispatches/route.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5492/{{ revealButtonHref }}
apps/sim/app/api/table/[tableId]/dispatches/route.tshttps://github.com/simstudioai/sim/pull/5492/files#diff-b35a828acd8306f997f37f17acd5cdaa675d7f11b16044c6c26634fd79c68aa6
View file https://github.com/simstudioai/sim/blob/a5a39a86831628773d0923a0cc4223c66680df5e/apps/sim/app/api/table/%5BtableId%5D/dispatches/route.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5492/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5492/files#diff-b35a828acd8306f997f37f17acd5cdaa675d7f11b16044c6c26634fd79c68aa6
https://github.com/simstudioai/sim/pull/5492/files#diff-b35a828acd8306f997f37f17acd5cdaa675d7f11b16044c6c26634fd79c68aa6
https://github.com/simstudioai/sim/pull/5492/files#diff-b35a828acd8306f997f37f17acd5cdaa675d7f11b16044c6c26634fd79c68aa6
https://github.com/simstudioai/sim/pull/5492/files#diff-b35a828acd8306f997f37f17acd5cdaa675d7f11b16044c6c26634fd79c68aa6
https://github.com/simstudioai/sim/pull/5492/files#diff-b35a828acd8306f997f37f17acd5cdaa675d7f11b16044c6c26634fd79c68aa6
apps/sim/app/api/table/[tableId]/events/stream/route.tshttps://github.com/simstudioai/sim/pull/5492/files#diff-5ba6eb8f1aeb3ff155c4dc49896932a28480e428d17f6419f85eaf683947bc1a
View file https://github.com/simstudioai/sim/blob/a5a39a86831628773d0923a0cc4223c66680df5e/apps/sim/app/api/table/%5BtableId%5D/events/stream/route.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5492/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5492/files#diff-5ba6eb8f1aeb3ff155c4dc49896932a28480e428d17f6419f85eaf683947bc1a
https://github.com/simstudioai/sim/pull/5492/files#diff-5ba6eb8f1aeb3ff155c4dc49896932a28480e428d17f6419f85eaf683947bc1a
https://github.com/simstudioai/sim/pull/5492/files#diff-5ba6eb8f1aeb3ff155c4dc49896932a28480e428d17f6419f85eaf683947bc1a
https://github.com/simstudioai/sim/pull/5492/files#diff-5ba6eb8f1aeb3ff155c4dc49896932a28480e428d17f6419f85eaf683947bc1a
https://github.com/simstudioai/sim/pull/5492/files#diff-5ba6eb8f1aeb3ff155c4dc49896932a28480e428d17f6419f85eaf683947bc1a
Please reload this pagehttps://github.com/simstudioai/sim/pull/5492/files
https://github.com/simstudioai/sim/pull/5492/files#diff-5ba6eb8f1aeb3ff155c4dc49896932a28480e428d17f6419f85eaf683947bc1a
...space/[workspaceId]/tables/[tableId]/components/run-status-control/run-status-control.tsxhttps://github.com/simstudioai/sim/pull/5492/files#diff-03e08ee472707351a45450a0a25369a96493c2b5e0851712f90c9296fadcd7ca
View file https://github.com/simstudioai/sim/blob/a5a39a86831628773d0923a0cc4223c66680df5e/apps/sim/app/workspace/%5BworkspaceId%5D/tables/%5BtableId%5D/components/run-status-control/run-status-control.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5492/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5492/files#diff-03e08ee472707351a45450a0a25369a96493c2b5e0851712f90c9296fadcd7ca
https://github.com/simstudioai/sim/pull/5492/files#diff-03e08ee472707351a45450a0a25369a96493c2b5e0851712f90c9296fadcd7ca
https://github.com/simstudioai/sim/pull/5492/files#diff-03e08ee472707351a45450a0a25369a96493c2b5e0851712f90c9296fadcd7ca
https://github.com/simstudioai/sim/pull/5492/files#diff-03e08ee472707351a45450a0a25369a96493c2b5e0851712f90c9296fadcd7ca
Please reload this pagehttps://github.com/simstudioai/sim/pull/5492/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5492/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.