René's URL Explorer Experiment


Title: feat(table): live cell updates via SSE + per-table event buffer by TheodoreSpeaks · Pull Request #4508 · simstudioai/sim · GitHub

Open Graph Title: feat(table): live cell updates via SSE + per-table event buffer by TheodoreSpeaks · Pull Request #4508 · simstudioai/sim

X Title: feat(table): live cell updates via SSE + per-table event buffer by TheodoreSpeaks · Pull Request #4508 · simstudioai/sim

Description: Summary New per-table event buffer at `apps/sim/lib/table/events.ts` (Redis sorted-set, 1h TTL, 5000-event cap, in-memory fallback). Modeled after `apps/sim/lib/execution/event-buffer.ts` but stripped to ~150 lines — tables don't need lifecycle, id batching, or write-queue serialization. `writeWorkflowGroupState` appends a fat event on every successful write (status + executionId + jobId + outputs inline on terminal/partial). Fire-and-forget; never throws. New SSE route `GET /api/table/[tableId]/events/stream?from=` replays from buffer on connect, polls every 500ms, heartbeats every 15s, signals `pruned` if the buffer rolled past the caller's lastEventId. New client hook `useTableEventStream` subscribes via EventSource with reconnect-resume. On received events, walks every cached query under `tableKeys.rowsRoot(tableId)` and patches `executions[gid]` (+ `data[col]` when outputs present). On `pruned`, invalidates the rows query and resumes from the new earliest. Removes `refetchInterval` from `useTableRows` and the per-page polling effect from `useInfiniteTableRows`. React Query's `refetchOnWindowFocus` + `refetchOnReconnect` cover the durability gap. Out of scope: bulk-cancel events (cancellation path is being redesigned separately). Type of Change Feature Testing `bun run type-check` — clean `bunx vitest run lib/table app/api/table` — 151/151 pass `bun run check:api-validation:strict` — 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)

Open Graph Description: Summary New per-table event buffer at `apps/sim/lib/table/events.ts` (Redis sorted-set, 1h TTL, 5000-event cap, in-memory fallback). Modeled after `apps/sim/lib/execution/event-buffer.ts` but stri...

X Description: Summary New per-table event buffer at `apps/sim/lib/table/events.ts` (Redis sorted-set, 1h TTL, 5000-event cap, in-memory fallback). Modeled after `apps/sim/lib/execution/event-buffer.ts` but stri...

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

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:1431e5f9-a2f6-776d-8380-47c091d0d1f2
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC868:FB9FD:E1F996:136EAFD:6AFB5FA1
html-safe-nonce1baf98f0a87820e8d88b4ad4d55fed0ec33b32826c43cd82051196ee117dc6fe
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODY4OkZCOUZEOkUxRjk5NjoxMzZFQUZEOjZBRkI1RkExIiwidmlzaXRvcl9pZCI6IjM0MzQyMjYzOTQwOTMxNDkwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacffda966dd3d157aecc6baeebaab8499a6f548ef4658b1209bc78ba5408889b16
hovercard-subject-tagpull_request:3646933238
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/4508/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 New per-table event buffer at `apps/sim/lib/table/events.ts` (Redis sorted-set, 1h TTL, 5000-event cap, in-memory fallback). Modeled after `apps/sim/lib/execution/event-buffer.ts` but stri...
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/4508/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F4508%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%2F4508%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/4508/files
Reloadhttps://github.com/simstudioai/sim/pull/4508/files
Reloadhttps://github.com/simstudioai/sim/pull/4508/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
feat/table-cell-event-streamhttps://github.com/simstudioai/sim/tree/feat/table-cell-event-stream
Conversation 14 https://github.com/simstudioai/sim/pull/4508
Commits 9 https://github.com/simstudioai/sim/pull/4508/commits
Checks 13 https://github.com/simstudioai/sim/pull/4508/checks
Files changed https://github.com/simstudioai/sim/pull/4508/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4508/files
feat(table): live cell updates via SSE + per-table event buffer https://github.com/simstudioai/sim/pull/4508/files#top
Show all changes 9 commits https://github.com/simstudioai/sim/pull/4508/files
df00f07 feat(table): live cell updates via SSE + per-table event buffer TheodoreSpeaks May 8, 2026 https://github.com/simstudioai/sim/pull/4508/commits/df00f07fb782374247282b767f9da28aaf9178b7
56ac40c fix(table): drop run-mutation refetch so SSE patches aren't overwritten TheodoreSpeaks May 8, 2026 https://github.com/simstudioai/sim/pull/4508/commits/56ac40cc154cf7c449b65c9487d11769becf1649
64197b5 chore(table): simplify SSE plumbing — reuse helpers, drop dead pollin… TheodoreSpeaks May 8, 2026 https://github.com/simstudioai/sim/pull/4508/commits/64197b57ffd23d956e351716a45ac42a8d7012fa
af84a8a fix(table): address PR review on SSE buffer TheodoreSpeaks May 8, 2026 https://github.com/simstudioai/sim/pull/4508/commits/af84a8abbd812ac23a3aa243da57cc1c1e59aa05
52834e9 improvement(table): persist SSE lastEventId in sessionStorage TheodoreSpeaks May 8, 2026 https://github.com/simstudioai/sim/pull/4508/commits/52834e914011ad6c20d86db8625a29392f2b212e
9398a2b fix(table): include runningBlockIds + blockErrors in SSE event payload TheodoreSpeaks May 8, 2026 https://github.com/simstudioai/sim/pull/4508/commits/9398a2be104eae48ac0dfdb8b38deab2b8b786e1
d3428ff fix(table): show value once column output has landed mid-run TheodoreSpeaks May 8, 2026 https://github.com/simstudioai/sim/pull/4508/commits/d3428ffe395d1c30257cc3c0ddd3484adfdda889
039bef2 chore(table): address PR review nits on tables.ts TheodoreSpeaks May 8, 2026 https://github.com/simstudioai/sim/pull/4508/commits/039bef20afdb911fe783f4e1f645ea122063a09c
9f565dc chore(table): apply biome formatting fixes TheodoreSpeaks May 8, 2026 https://github.com/simstudioai/sim/pull/4508/commits/9f565dc0ae9282963809bf33ef82c5b894520135
Clear filters https://github.com/simstudioai/sim/pull/4508/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4508/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4508/files
route.ts https://github.com/simstudioai/sim/pull/4508/files#diff-5ba6eb8f1aeb3ff155c4dc49896932a28480e428d17f6419f85eaf683947bc1a
cell-render.tsx https://github.com/simstudioai/sim/pull/4508/files#diff-026682f26b04415f8af685f296bb82130eb0969fb6b8d21842bb37086a8d5bfa
index.ts https://github.com/simstudioai/sim/pull/4508/files#diff-c3745820ea293c17482404a5d09f4fb44e383c34fa150ea932b3c385d16e3e18
use-table-event-stream.ts https://github.com/simstudioai/sim/pull/4508/files#diff-c60c72baa945552c031a0f8e07bd9ed12985b66f2c59e482419816966baee8e6
table.tsx https://github.com/simstudioai/sim/pull/4508/files#diff-5a65d49f1fb75a42db9178db41caa5cb9bf776a547ab82822e99a13bd51a1669
tables.ts https://github.com/simstudioai/sim/pull/4508/files#diff-1d761ed5a7a2ed9ba4435d0f39c5f1f7ac13c177b301c401b38f5a6d731ac8cb
tables.ts https://github.com/simstudioai/sim/pull/4508/files#diff-927ba827479bb6f5c0c9cee9dfe1067112e939610060f6a1e939f232b976257d
cell-write.ts https://github.com/simstudioai/sim/pull/4508/files#diff-8befc7502ca731cc5485a71bc410494ef85b85d4ef3449e1b9a579ce8badad52
events.ts https://github.com/simstudioai/sim/pull/4508/files#diff-f4db8c424928e747aaffb7c0352fdb9690e85dd886cf357a8deca0cdaf29e6e3
check-api-validation-contracts.ts https://github.com/simstudioai/sim/pull/4508/files#diff-48ae6a4d0c1f820d5b644522d25742bb29af758bc8350f1a3cf3f8afa0bd00b0
apps/sim/app/api/table/[tableId]/events/stream/route.tshttps://github.com/simstudioai/sim/pull/4508/files#diff-5ba6eb8f1aeb3ff155c4dc49896932a28480e428d17f6419f85eaf683947bc1a
View file https://github.com/simstudioai/sim/blob/9f565dc0ae9282963809bf33ef82c5b894520135/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/4508/{{ revealButtonHref }}
.../app/workspace/[workspaceId]/tables/[tableId]/components/table-grid/cells/cell-render.tsxhttps://github.com/simstudioai/sim/pull/4508/files#diff-026682f26b04415f8af685f296bb82130eb0969fb6b8d21842bb37086a8d5bfa
View file https://github.com/simstudioai/sim/blob/9f565dc0ae9282963809bf33ef82c5b894520135/apps/sim/app/workspace/%5BworkspaceId%5D/tables/%5BtableId%5D/components/table-grid/cells/cell-render.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4508/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/4508/files#diff-026682f26b04415f8af685f296bb82130eb0969fb6b8d21842bb37086a8d5bfa
https://github.com/simstudioai/sim/pull/4508/files#diff-026682f26b04415f8af685f296bb82130eb0969fb6b8d21842bb37086a8d5bfa
apps/sim/app/workspace/[workspaceId]/tables/[tableId]/hooks/index.tshttps://github.com/simstudioai/sim/pull/4508/files#diff-c3745820ea293c17482404a5d09f4fb44e383c34fa150ea932b3c385d16e3e18
View file https://github.com/simstudioai/sim/blob/9f565dc0ae9282963809bf33ef82c5b894520135/apps/sim/app/workspace/%5BworkspaceId%5D/tables/%5BtableId%5D/hooks/index.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4508/{{ revealButtonHref }}
Please reload this pagehttps://github.com/simstudioai/sim/pull/4508/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4508/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.