René's URL Explorer Experiment


Title: fix(sockets): added debouncing for sub-block values to prevent overloading socket server, fixed persistence issue during streaming back from LLM response format, removed unused events by waleedlatif1 · Pull Request #642 · simstudioai/sim · GitHub

Open Graph Title: fix(sockets): added debouncing for sub-block values to prevent overloading socket server, fixed persistence issue during streaming back from LLM response format, removed unused events by waleedlatif1 · Pull Request #642 · simstudioai/sim

X Title: fix(sockets): added debouncing for sub-block values to prevent overloading socket server, fixed persistence issue during streaming back from LLM response format, removed unused events by waleedlatif1 · Pull Request #642 · simstudioai/sim

Description: Description Added debouncing for sub-block values to prevent overloading socket server, fixed persistence issue during streaming back from LLM response format, removed unused events Type of change Bug fix (non-breaking change which fixes an issue) Performance improvement How Has This Been Tested? Tested manually to ensure response format streaming was a single event once the LLM was done streaming, large pastes and large deletes are also single events, and that this doesn't disrupt the user experience. Checklist: My code follows the style guidelines of this project I have performed a self-review of my own code I have commented my code, particularly in hard-to-understand areas I have added tests that prove my fix is effective or that my feature works All tests pass locally and in CI (bun run test) My changes generate no new warnings Any dependent changes have been merged and published in downstream modules I have updated version numbers as needed (if needed) I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA) Security Considerations: My changes do not introduce any new security vulnerabilities I have considered the security implications of my changes

Open Graph Description: Description Added debouncing for sub-block values to prevent overloading socket server, fixed persistence issue during streaming back from LLM response format, removed unused events Type of change ...

X Description: Description Added debouncing for sub-block values to prevent overloading socket server, fixed persistence issue during streaming back from LLM response format, removed unused events Type of change ...

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

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:c5504b81-4f03-2c1f-500b-28b9aa864e2d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE338:3B0890:402D77:5B81F9:6AFB3706
html-safe-nonceadb4322e7c30c5fb572a5cbe99b1b132fe21e89fff3e6f18a94b944de2fbd5b8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzM4OjNCMDg5MDo0MDJENzc6NUI4MUY5OjZBRkIzNzA2IiwidmlzaXRvcl9pZCI6IjQ1NTEzODMwNzczNjM1OTUwMTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac8f5246061469b8b789b569275126f1499868b79f80afe7498893457946d1af99
hovercard-subject-tagpull_request:2651559308
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/642/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:altDescription Added debouncing for sub-block values to prevent overloading socket server, fixed persistence issue during streaming back from LLM response format, removed unused events Type of change ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None2169b0dfbef67ed6b128074a5ed45bb7d5d1859783b10178b09a7765ad5f3693
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
release3b4fc8df5ef1c6757e733a23e6b81b6725021823
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/642/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F642%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%2F642%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/642/files
Reloadhttps://github.com/simstudioai/sim/pull/642/files
Reloadhttps://github.com/simstudioai/sim/pull/642/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/code-gen-persistencehttps://github.com/simstudioai/sim/tree/fix/code-gen-persistence
Conversation 6 https://github.com/simstudioai/sim/pull/642
Commits 2 https://github.com/simstudioai/sim/pull/642/commits
Checks 0 https://github.com/simstudioai/sim/pull/642/checks
Files changed https://github.com/simstudioai/sim/pull/642/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/642/files
fix(sockets): added debouncing for sub-block values to prevent overloading socket server, fixed persistence issue during streaming back from LLM response format, removed unused events https://github.com/simstudioai/sim/pull/642/files#top
Show all changes 2 commits https://github.com/simstudioai/sim/pull/642/files
d3c1fb4 fix(sockets): added debouncing for sub-block values to prevent overlo… waleedlatif1 Jul 9, 2025 https://github.com/simstudioai/sim/pull/642/commits/d3c1fb4a0fe18da619014d5b615a656d771225a8
9857f78 reuse existing isStreaming state for code block llm-generated respons… waleedlatif1 Jul 9, 2025 https://github.com/simstudioai/sim/pull/642/commits/9857f7801aac258b4167962ca738138433101905
Clear filters https://github.com/simstudioai/sim/pull/642/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/642/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/642/files
code.tsx https://github.com/simstudioai/sim/pull/642/files#diff-a9786f29c6ead9c01a0c1031e6f89d20196f87a54971c660f8c069991c4f98e2
response-format.tsx https://github.com/simstudioai/sim/pull/642/files#diff-ba8f67c347abfb0254301fa2a1877dc0bd0ee21dd8e0a720022338428cf9f1eb
use-sub-block-value.ts https://github.com/simstudioai/sim/pull/642/files#diff-fc7f94d826f68878c8ad410167f5f2e11952b7c2da74682c2055402901b37465
connection.ts https://github.com/simstudioai/sim/pull/642/files#diff-85eb8e923ac6d823bf1af808e4558b116d7f7cadc7fe974379318787efbfc22b
manager.ts https://github.com/simstudioai/sim/pull/642/files#diff-93901bae680b6fd1c5e7a36e82a2f86506f7fd173076dade97b9699f0cd04e3b
...paceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/code.tsxhttps://github.com/simstudioai/sim/pull/642/files#diff-a9786f29c6ead9c01a0c1031e6f89d20196f87a54971c660f8c069991c4f98e2
View file https://github.com/simstudioai/sim/blob/9857f7801aac258b4167962ca738138433101905/apps/sim/app/workspace/%5BworkspaceId%5D/w/%5BworkflowId%5D/components/workflow-block/components/sub-block/components/code.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/642/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/642/files#diff-a9786f29c6ead9c01a0c1031e6f89d20196f87a54971c660f8c069991c4f98e2
https://github.com/simstudioai/sim/pull/642/files#diff-a9786f29c6ead9c01a0c1031e6f89d20196f87a54971c660f8c069991c4f98e2
https://github.com/simstudioai/sim/pull/642/files#diff-a9786f29c6ead9c01a0c1031e6f89d20196f87a54971c660f8c069991c4f98e2
...d]/components/workflow-block/components/sub-block/components/response/response-format.tsxhttps://github.com/simstudioai/sim/pull/642/files#diff-ba8f67c347abfb0254301fa2a1877dc0bd0ee21dd8e0a720022338428cf9f1eb
View file https://github.com/simstudioai/sim/blob/9857f7801aac258b4167962ca738138433101905/apps/sim/app/workspace/%5BworkspaceId%5D/w/%5BworkflowId%5D/components/workflow-block/components/sub-block/components/response/response-format.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/642/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/642/files#diff-ba8f67c347abfb0254301fa2a1877dc0bd0ee21dd8e0a720022338428cf9f1eb
https://github.com/simstudioai/sim/pull/642/files#diff-ba8f67c347abfb0254301fa2a1877dc0bd0ee21dd8e0a720022338428cf9f1eb
.../[workflowId]/components/workflow-block/components/sub-block/hooks/use-sub-block-value.tshttps://github.com/simstudioai/sim/pull/642/files#diff-fc7f94d826f68878c8ad410167f5f2e11952b7c2da74682c2055402901b37465
View file https://github.com/simstudioai/sim/blob/9857f7801aac258b4167962ca738138433101905/apps/sim/app/workspace/%5BworkspaceId%5D/w/%5BworkflowId%5D/components/workflow-block/components/sub-block/hooks/use-sub-block-value.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/642/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/642/files#diff-fc7f94d826f68878c8ad410167f5f2e11952b7c2da74682c2055402901b37465
https://github.com/simstudioai/sim/pull/642/files#diff-fc7f94d826f68878c8ad410167f5f2e11952b7c2da74682c2055402901b37465
https://github.com/simstudioai/sim/pull/642/files#diff-fc7f94d826f68878c8ad410167f5f2e11952b7c2da74682c2055402901b37465
https://github.com/simstudioai/sim/pull/642/files#diff-fc7f94d826f68878c8ad410167f5f2e11952b7c2da74682c2055402901b37465
Please reload this pagehttps://github.com/simstudioai/sim/pull/642/files
https://github.com/simstudioai/sim/pull/642/files#diff-fc7f94d826f68878c8ad410167f5f2e11952b7c2da74682c2055402901b37465
https://github.com/simstudioai/sim/pull/642/files#diff-fc7f94d826f68878c8ad410167f5f2e11952b7c2da74682c2055402901b37465
https://github.com/simstudioai/sim/pull/642/files#diff-fc7f94d826f68878c8ad410167f5f2e11952b7c2da74682c2055402901b37465
https://github.com/simstudioai/sim/pull/642/files#diff-fc7f94d826f68878c8ad410167f5f2e11952b7c2da74682c2055402901b37465
apps/sim/socket-server/handlers/connection.tshttps://github.com/simstudioai/sim/pull/642/files#diff-85eb8e923ac6d823bf1af808e4558b116d7f7cadc7fe974379318787efbfc22b
View file https://github.com/simstudioai/sim/blob/9857f7801aac258b4167962ca738138433101905/apps/sim/socket-server/handlers/connection.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/642/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/642/files#diff-85eb8e923ac6d823bf1af808e4558b116d7f7cadc7fe974379318787efbfc22b
apps/sim/socket-server/rooms/manager.tshttps://github.com/simstudioai/sim/pull/642/files#diff-93901bae680b6fd1c5e7a36e82a2f86506f7fd173076dade97b9699f0cd04e3b
View file https://github.com/simstudioai/sim/blob/9857f7801aac258b4167962ca738138433101905/apps/sim/socket-server/rooms/manager.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/642/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/642/files#diff-93901bae680b6fd1c5e7a36e82a2f86506f7fd173076dade97b9699f0cd04e3b
https://github.com/simstudioai/sim/pull/642/files#diff-93901bae680b6fd1c5e7a36e82a2f86506f7fd173076dade97b9699f0cd04e3b
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.