René's URL Explorer Experiment


Title: fix(duplicate): added isWide and advacnedMode to optimistic duplicate, persist collapsed subblock state by waleedlatif1 · Pull Request #847 · simstudioai/sim · GitHub

Open Graph Title: fix(duplicate): added isWide and advacnedMode to optimistic duplicate, persist collapsed subblock state by waleedlatif1 · Pull Request #847 · simstudioai/sim

X Title: fix(duplicate): added isWide and advacnedMode to optimistic duplicate, persist collapsed subblock state by waleedlatif1 · Pull Request #847 · simstudioai/sim

Description: Summary added isWide and advacnedMode to optimistic duplicate -> wasn't persisting additional block properties on optimistic client side update nor on the server persist collapsed subblock state -> was using local setSubblockValue instead of collaboartive, means that it doesn't get sent to the socket sever & doesn't persist Type of Change Bug fix Testing Tested manually many times 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) Screenshots/Videos Screen.Recording.2025-08-01.at.5.26.57.PM.mov

Open Graph Description: Summary added isWide and advacnedMode to optimistic duplicate -> wasn't persisting additional block properties on optimistic client side update nor on the server persist collapsed subblock s...

X Description: Summary added isWide and advacnedMode to optimistic duplicate -> wasn't persisting additional block properties on optimistic client side update nor on the server persist collapsed su...

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

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:a837eb15-601a-a542-e523-9c2402a4a67e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBF0A:3001AD:82BAB:BD9D7:6AFB2858
html-safe-nonce185fe833b2ada105e74c7eb7ea92ff1e3a5adefe74335fe45b03b203d661fb23
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjBBOjMwMDFBRDo4MkJBQjpCRDlENzo2QUZCMjg1OCIsInZpc2l0b3JfaWQiOiI4MjQ1NTM5Nzc5NjkwNTk5MjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac417c1caef0bbe385f7659c2da076ebe10ce8af95b62366ecdf37d0d0115112e5
hovercard-subject-tagpull_request:2714552659
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/847/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 added isWide and advacnedMode to optimistic duplicate -> wasn't persisting additional block properties on optimistic client side update nor on the server persist collapsed subblock s...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None40c7ffe00e8bbb3ca8403c83d7ef110379c9eba2cbc7a7c333b037ffd940d4e4
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
releasef494d77c37809e03e18d49c6e9945c57e0b64070
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/847/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F847%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%2F847%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/847/files
Reloadhttps://github.com/simstudioai/sim/pull/847/files
Reloadhttps://github.com/simstudioai/sim/pull/847/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
icecrasher321https://github.com/icecrasher321
staginghttps://github.com/simstudioai/sim/tree/staging
fix/duplicateshttps://github.com/simstudioai/sim/tree/fix/duplicates
Conversation 5 https://github.com/simstudioai/sim/pull/847
Commits 3 https://github.com/simstudioai/sim/pull/847/commits
Checks 0 https://github.com/simstudioai/sim/pull/847/checks
Files changed https://github.com/simstudioai/sim/pull/847/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/847/files
fix(duplicate): added isWide and advacnedMode to optimistic duplicate, persist collapsed subblock state https://github.com/simstudioai/sim/pull/847/files#top
Show all changes 3 commits https://github.com/simstudioai/sim/pull/847/files
4fb43e7 fix(duplicate): added isWide and advacnedMode to optimistic duplicate… waleedlatif1 Aug 2, 2025 https://github.com/simstudioai/sim/pull/847/commits/4fb43e7d11b07acaa0a3c2bf8fa0d1f90810e9d6
f0d7a12 use collaborative set subblock value instead of doing it locally for … waleedlatif1 Aug 2, 2025 https://github.com/simstudioai/sim/pull/847/commits/f0d7a12e2facc7fa40593ea550f1d52685adb138
e77fa4f cleamup waleedlatif1 Aug 2, 2025 https://github.com/simstudioai/sim/pull/847/commits/e77fa4f7573be50692513ab4ee4963fe873dd317
Clear filters https://github.com/simstudioai/sim/pull/847/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/847/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/847/files
utils.ts https://github.com/simstudioai/sim/pull/847/files#diff-fe01565ef9008a5224818db1165687903206211decb477851f107dfa40228cf7
route.ts https://github.com/simstudioai/sim/pull/847/files#diff-8b07c18e9cd41dec4f7ddaa64ec76b29af92356418d9f2624f1fb82b32999bca
route.ts https://github.com/simstudioai/sim/pull/847/files#diff-833cf56622033ccc496dae6aa07a3b1526899e6da87b077a9d72f66465e186cf
route.ts https://github.com/simstudioai/sim/pull/847/files#diff-e6fa7d7635057a638621bdeb2d988f090f50a577b8584281f592729ce91a95b7
route.ts https://github.com/simstudioai/sim/pull/847/files#diff-611fb86ace7a722063417bcdb7f16a396991e7d2fe1fdc5cb51c4bd8a674dc4a
code.tsx https://github.com/simstudioai/sim/pull/847/files#diff-a9786f29c6ead9c01a0c1031e6f89d20196f87a54971c660f8c069991c4f98e2
use-collaborative-workflow.ts https://github.com/simstudioai/sim/pull/847/files#diff-ccb80da85d47ecf517b42ec89718b19771184b32f2171a7705ddf236de89d46a
db-helpers.test.ts https://github.com/simstudioai/sim/pull/847/files#diff-d0db0aa8c4ea15e49a3d41b2cf730b3a306682814ea6bd75e6ce0ef373323365
db-helpers.ts https://github.com/simstudioai/sim/pull/847/files#diff-2218595c84ce3a159f74ffe881b701b69295ad7f5e48321b4690d45d28634e73
insert-test-workflow.ts https://github.com/simstudioai/sim/pull/847/files#diff-adbfeb6f23594da4272b220acdeb0532315c31d9520e7daf3a82e73c865a65c0
migrate-workflow-states.ts https://github.com/simstudioai/sim/pull/847/files#diff-7c1f8082ad83b65148e0ccec427d810d25008d5c980c64971ddd22c76a2f698c
operations.ts https://github.com/simstudioai/sim/pull/847/files#diff-dee1c2d85b8f2d86f446120187ff8d6b717493a3f3f5fc69681e5c0af879e695
store.ts https://github.com/simstudioai/sim/pull/847/files#diff-67b03315386e5c1ff1d14188d5f0a15f98ddf34212b828412e9b6c7545b24510
store.test.ts https://github.com/simstudioai/sim/pull/847/files#diff-449f624fee3cbfd5d9076e6a0e435715ed8bf6a9cf418d642b987df99e870476
store.ts https://github.com/simstudioai/sim/pull/847/files#diff-e77f6367a437f03a60f0109e5343df013b4bce81e7487e582377350b117ef813
types.ts https://github.com/simstudioai/sim/pull/847/files#diff-7577fd8d527d675e8826d05e462a8695929ab5f6bbf1a2839db2ea2df56d330b
apps/sim/app/api/__test-utils__/utils.tshttps://github.com/simstudioai/sim/pull/847/files#diff-fe01565ef9008a5224818db1165687903206211decb477851f107dfa40228cf7
View file https://github.com/simstudioai/sim/blob/e77fa4f7573be50692513ab4ee4963fe873dd317/apps/sim/app/api/__test-utils__/utils.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/847/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/847/files#diff-fe01565ef9008a5224818db1165687903206211decb477851f107dfa40228cf7
https://github.com/simstudioai/sim/pull/847/files#diff-fe01565ef9008a5224818db1165687903206211decb477851f107dfa40228cf7
https://github.com/simstudioai/sim/pull/847/files#diff-fe01565ef9008a5224818db1165687903206211decb477851f107dfa40228cf7
https://github.com/simstudioai/sim/pull/847/files#diff-fe01565ef9008a5224818db1165687903206211decb477851f107dfa40228cf7
apps/sim/app/api/tools/edit-workflow/route.tshttps://github.com/simstudioai/sim/pull/847/files#diff-8b07c18e9cd41dec4f7ddaa64ec76b29af92356418d9f2624f1fb82b32999bca
View file https://github.com/simstudioai/sim/blob/e77fa4f7573be50692513ab4ee4963fe873dd317/apps/sim/app/api/tools/edit-workflow/route.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/847/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/847/files#diff-8b07c18e9cd41dec4f7ddaa64ec76b29af92356418d9f2624f1fb82b32999bca
https://github.com/simstudioai/sim/pull/847/files#diff-8b07c18e9cd41dec4f7ddaa64ec76b29af92356418d9f2624f1fb82b32999bca
apps/sim/app/api/workflows/[id]/yaml/route.tshttps://github.com/simstudioai/sim/pull/847/files#diff-833cf56622033ccc496dae6aa07a3b1526899e6da87b077a9d72f66465e186cf
View file https://github.com/simstudioai/sim/blob/e77fa4f7573be50692513ab4ee4963fe873dd317/apps/sim/app/api/workflows/%5Bid%5D/yaml/route.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/847/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/847/files#diff-833cf56622033ccc496dae6aa07a3b1526899e6da87b077a9d72f66465e186cf
https://github.com/simstudioai/sim/pull/847/files#diff-833cf56622033ccc496dae6aa07a3b1526899e6da87b077a9d72f66465e186cf
https://github.com/simstudioai/sim/pull/847/files#diff-833cf56622033ccc496dae6aa07a3b1526899e6da87b077a9d72f66465e186cf
https://github.com/simstudioai/sim/pull/847/files#diff-833cf56622033ccc496dae6aa07a3b1526899e6da87b077a9d72f66465e186cf
apps/sim/app/api/workflows/route.tshttps://github.com/simstudioai/sim/pull/847/files#diff-e6fa7d7635057a638621bdeb2d988f090f50a577b8584281f592729ce91a95b7
View file https://github.com/simstudioai/sim/blob/e77fa4f7573be50692513ab4ee4963fe873dd317/apps/sim/app/api/workflows/route.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/847/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/847/files#diff-e6fa7d7635057a638621bdeb2d988f090f50a577b8584281f592729ce91a95b7
https://github.com/simstudioai/sim/pull/847/files#diff-e6fa7d7635057a638621bdeb2d988f090f50a577b8584281f592729ce91a95b7
https://github.com/simstudioai/sim/pull/847/files#diff-e6fa7d7635057a638621bdeb2d988f090f50a577b8584281f592729ce91a95b7
https://github.com/simstudioai/sim/pull/847/files#diff-e6fa7d7635057a638621bdeb2d988f090f50a577b8584281f592729ce91a95b7
apps/sim/app/api/workspaces/route.tshttps://github.com/simstudioai/sim/pull/847/files#diff-611fb86ace7a722063417bcdb7f16a396991e7d2fe1fdc5cb51c4bd8a674dc4a
View file https://github.com/simstudioai/sim/blob/e77fa4f7573be50692513ab4ee4963fe873dd317/apps/sim/app/api/workspaces/route.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/847/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/847/files#diff-611fb86ace7a722063417bcdb7f16a396991e7d2fe1fdc5cb51c4bd8a674dc4a
https://github.com/simstudioai/sim/pull/847/files#diff-611fb86ace7a722063417bcdb7f16a396991e7d2fe1fdc5cb51c4bd8a674dc4a
https://github.com/simstudioai/sim/pull/847/files#diff-611fb86ace7a722063417bcdb7f16a396991e7d2fe1fdc5cb51c4bd8a674dc4a
https://github.com/simstudioai/sim/pull/847/files#diff-611fb86ace7a722063417bcdb7f16a396991e7d2fe1fdc5cb51c4bd8a674dc4a
...paceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/code.tsxhttps://github.com/simstudioai/sim/pull/847/files#diff-a9786f29c6ead9c01a0c1031e6f89d20196f87a54971c660f8c069991c4f98e2
View file https://github.com/simstudioai/sim/blob/e77fa4f7573be50692513ab4ee4963fe873dd317/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/847/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/847/files#diff-a9786f29c6ead9c01a0c1031e6f89d20196f87a54971c660f8c069991c4f98e2
https://github.com/simstudioai/sim/pull/847/files#diff-a9786f29c6ead9c01a0c1031e6f89d20196f87a54971c660f8c069991c4f98e2
https://github.com/simstudioai/sim/pull/847/files#diff-a9786f29c6ead9c01a0c1031e6f89d20196f87a54971c660f8c069991c4f98e2
icecrasher321https://github.com/icecrasher321
Aug 2, 2025https://github.com/simstudioai/sim/pull/847/files#r2249038156
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/simstudioai/sim/pull/847/files
https://github.com/simstudioai/sim/pull/847/files#diff-a9786f29c6ead9c01a0c1031e6f89d20196f87a54971c660f8c069991c4f98e2
apps/sim/hooks/use-collaborative-workflow.tshttps://github.com/simstudioai/sim/pull/847/files#diff-ccb80da85d47ecf517b42ec89718b19771184b32f2171a7705ddf236de89d46a
View file https://github.com/simstudioai/sim/blob/e77fa4f7573be50692513ab4ee4963fe873dd317/apps/sim/hooks/use-collaborative-workflow.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/847/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/847/files#diff-ccb80da85d47ecf517b42ec89718b19771184b32f2171a7705ddf236de89d46a
icecrasher321https://github.com/icecrasher321
Aug 2, 2025https://github.com/simstudioai/sim/pull/847/files#r2249038951
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/simstudioai/sim/pull/847/files
waleedlatif1https://github.com/waleedlatif1
Aug 2, 2025https://github.com/simstudioai/sim/pull/847/files#r2249041157
Please reload this pagehttps://github.com/simstudioai/sim/pull/847/files
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@icecrasher321https://github.com/icecrasher321
Please reload this pagehttps://github.com/simstudioai/sim/pull/847/files
https://github.com/simstudioai/sim/pull/847/files#diff-ccb80da85d47ecf517b42ec89718b19771184b32f2171a7705ddf236de89d46a
https://github.com/simstudioai/sim/pull/847/files#diff-ccb80da85d47ecf517b42ec89718b19771184b32f2171a7705ddf236de89d46a
https://github.com/simstudioai/sim/pull/847/files#diff-ccb80da85d47ecf517b42ec89718b19771184b32f2171a7705ddf236de89d46a
https://github.com/simstudioai/sim/pull/847/files#diff-ccb80da85d47ecf517b42ec89718b19771184b32f2171a7705ddf236de89d46a
https://github.com/simstudioai/sim/pull/847/files#diff-ccb80da85d47ecf517b42ec89718b19771184b32f2171a7705ddf236de89d46a
https://github.com/simstudioai/sim/pull/847/files#diff-ccb80da85d47ecf517b42ec89718b19771184b32f2171a7705ddf236de89d46a
https://github.com/simstudioai/sim/pull/847/files#diff-ccb80da85d47ecf517b42ec89718b19771184b32f2171a7705ddf236de89d46a
https://github.com/simstudioai/sim/pull/847/files#diff-ccb80da85d47ecf517b42ec89718b19771184b32f2171a7705ddf236de89d46a
https://github.com/simstudioai/sim/pull/847/files#diff-ccb80da85d47ecf517b42ec89718b19771184b32f2171a7705ddf236de89d46a
Please reload this pagehttps://github.com/simstudioai/sim/pull/847/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.