René's URL Explorer Experiment


Title: fix(workspace-forking): stop a remapped custom block losing every input, and let its target inputs be configured at sync time by icecrasher321 · Pull Request #6871 · simstudioai/sim · GitHub

Open Graph Title: fix(workspace-forking): stop a remapped custom block losing every input, and let its target inputs be configured at sync time by icecrasher321 · Pull Request #6871 · simstudioai/sim

X Title: fix(workspace-forking): stop a remapped custom block losing every input, and let its target inputs be configured at sync time by icecrasher321 · Pull Request #6871 · simstudioai/sim

Description: Summary Follow-up to #6857. Mapping a custom block across environments and syncing produced a block that looked corrupted — its name intact, every field blank — and appeared not to have been remapped at all. The type rewrite was landing. Both environments' blocks share a name, so a successful rewrite is visually identical to nothing happening; a test now pins the type itself rather than leaving it to the eye. The real damage was the inputs: a custom block's sub-blocks are keyed by the source block's Start field ids, and serializer/index.ts:547-561 drops a stored value with no matching config as a deleted input. Repointing the type invalidated every id at once, so every value silently evaporated. (There was already a passing test for that rule — written for a deleted field.) Two commits: 1. Stop the silent loss. On a type change the inputs are replaced outright with the ones configured for the target; reserved wiring is preserved. There is deliberately no value migration across the swap — two custom blocks are independent workflows, so a field id that happened to collide would carry a value meaning something else. When the type does not change (no mapping, or an explicit identity mapping) nothing is touched and values carry as they always did. 2. Let the target's inputs be configured at sync time. A credential or table swap already makes its dependsOn fields reconfigurable in the sync modal. Repointing a custom block is the same idea at its limit: not a subset of fields is invalidated but all of them, so all of them are offered. They travel the existing dependent-value channel end to end — collected into the diff, stored per (target workflow, block, sub-block), pre-filled from the store, gating Sync when required-and-empty, and applied to the written state — so nothing about storage, pre-fill, or the Sync gate is new. parentKind/parentSourceId are the block itself, which is already the key a reconfig is joined to its mapping row on, so the fields render under their own row with no extra wiring. selectorKey/parentContextKey become optional — a custom block's inputs are typed values, not selectors — and the modal renders a plain field (a textarea for the JSON-valued types) instead of an option list. Type of Change Bug fix New feature Testing turbo run type-check (24/24), check:api-validation, biome — clean on this branch rebased onto latest staging. 3563 tests across the affected surfaces; 12 new. Full suite: the only two failures are the same pre-existing ones established in #6857 — unreadable-document.test.ts (fails against staging's own lib/knowledge/documents/) and sso-trust.test.ts (a 10s-timeout test that fails on a cold transform cache regardless of branch). Reviewers should focus on: replaceCustomBlockInputs (the drop-and-replace decision — no migration is deliberate) and collectForkCustomBlockReconfigs, particularly that it skips blocks whose type does not change and that an unresolvable target degrades to offering no fields rather than failing the whole diff. One thing worth knowing: routing these through applyDependentOverrides does not work — it allowlists on dependsOn && selectorKey, which no custom-block input has, and calls getBlock, which doesn't resolve a custom block server-side outside the overlay. Every override would be silently skipped. The planner allowlists instead (it can resolve the target config via resolveCustomBlockToolBinding) and the copy writes what it is handed. 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

Open Graph Description: Summary Follow-up to #6857. Mapping a custom block across environments and syncing produced a block that looked corrupted — its name intact, every field blank — and appeared not to have been remapp...

X Description: Summary Follow-up to #6857. Mapping a custom block across environments and syncing produced a block that looked corrupted — its name intact, every field blank — and appeared not to have been remapp...

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

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:d4a85935-79b0-d537-0ccc-e4b441a6d5a6
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id93EA:29F51C:1232CCB:18F1389:6AFB6F2E
html-safe-noncefeddc5f11c87589eb97c30bc59cf6166c4056e3eee95fdf7277f397f51ddd7ef
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5M0VBOjI5RjUxQzoxMjMyQ0NCOjE4RjEzODk6NkFGQjZGMkUiLCJ2aXNpdG9yX2lkIjoiODA4OTg1NDUwOTA5MTM1MjM2NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac2e12b917c8cd054d6bf6799498002fc928f2a750fbde705628a6a26e31777e76
hovercard-subject-tagpull_request:4318347837
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/6871/files
twitter:imagehttps://avatars.githubusercontent.com/u/17950982?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/17950982?s=400&v=4
og:image:altSummary Follow-up to #6857. Mapping a custom block across environments and syncing produced a block that looked corrupted — its name intact, every field blank — and appeared not to have been remapp...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecca289ecd54650fcf3c0b037a58b97186dee2cc4406819d87fab93728fd83700
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
release88808b1fae5ab8a526a73e7ce5542a10eb9d6971
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/6871/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6871%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%2F6871%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/6871/files
Reloadhttps://github.com/simstudioai/sim/pull/6871/files
Reloadhttps://github.com/simstudioai/sim/pull/6871/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
feat/custom-block-mapping-synchttps://github.com/simstudioai/sim/tree/feat/custom-block-mapping-sync
Conversation 26 https://github.com/simstudioai/sim/pull/6871
Commits 5 https://github.com/simstudioai/sim/pull/6871/commits
Checks 30 https://github.com/simstudioai/sim/pull/6871/checks
Files changed https://github.com/simstudioai/sim/pull/6871/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6871/files
fix(workspace-forking): stop a remapped custom block losing every input, and let its target inputs be configured at sync time https://github.com/simstudioai/sim/pull/6871/files#top
Show all changes 5 commits https://github.com/simstudioai/sim/pull/6871/files
6822967 fix(workspace-forking): stop a remapped custom block losing every input Aug 19, 2026 https://github.com/simstudioai/sim/pull/6871/commits/68229674a0491693423fce345f520ebeb8979b3b
5a92fcd feat(workspace-forking): configure a repointed custom block's inputs … Aug 19, 2026 https://github.com/simstudioai/sim/pull/6871/commits/5a92fcd6151050da9092a7f5314bbc65be05de7b
7b2fa42 fix(workspace-forking): namespace, type, and single-source a custom b… Aug 19, 2026 https://github.com/simstudioai/sim/pull/6871/commits/7b2fa42bba058251503cc1483172536102b32685
8973f61 fix(workspace-forking): keep an unset custom-block boolean unset Aug 19, 2026 https://github.com/simstudioai/sim/pull/6871/commits/8973f611b28573442fc7333a13f7e6a193dd7969
ac84737 fix(workspace-forking): let an optional custom-block boolean return t… Aug 19, 2026 https://github.com/simstudioai/sim/pull/6871/commits/ac8473767282718b2ab3ff6f9106698f7a5b6fc5
Clear filters https://github.com/simstudioai/sim/pull/6871/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6871/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6871/files
route.ts https://github.com/simstudioai/sim/pull/6871/files#diff-3dee1703549010f59eccac56a140152564e3382f0539e7f3e73a756c3f2fd516
custom-block-input-control.test.ts https://github.com/simstudioai/sim/pull/6871/files#diff-e4ea01eb45f6b203e11647d6e38f3d6f9c602f769459b62392f1c6cb9f8eb20b
custom-block-input-control.ts https://github.com/simstudioai/sim/pull/6871/files#diff-a16cca93cc81c09ba428167240bfde6f17fa870063a673fd58ac937757b7a3d6
dependent-value.test.ts https://github.com/simstudioai/sim/pull/6871/files#diff-23c74f0683d31f6cf35a935dfca53ca9f1dbccc027ac04c5cc05e2bf91ed841a
dependent-value.ts https://github.com/simstudioai/sim/pull/6871/files#diff-635591cfbcfd2f8f6057304752e263f5ec99886c0db2d9fafb072af7824c2727
fork-sync-view.tsx https://github.com/simstudioai/sim/pull/6871/files#diff-87fea320951a50114dbccd28dd4aa248a71b43d4159384b1fc15bf3bbec63c5a
copy-workflows.test.ts https://github.com/simstudioai/sim/pull/6871/files#diff-d0adaf08fd29c4b7fa35f7e7f8ba18b03cdda32dc756fe579ec8b523f20da664
copy-workflows.ts https://github.com/simstudioai/sim/pull/6871/files#diff-cf848b79f30956f4fcfd02bf3cc4542a1c4786526d4c22368946d1a9badcc1b8
custom-block-reconfigs.test.ts https://github.com/simstudioai/sim/pull/6871/files#diff-b06d43c03cae8d45d0d0a44ab0953d0c41ab7e7667ab6649820b8eb978859a63
custom-block-reconfigs.ts https://github.com/simstudioai/sim/pull/6871/files#diff-d5ba7477d18fd46fbe752091759a1b1af856e5fdddb6b59fa753835275a5aa1b
remap-references.ts https://github.com/simstudioai/sim/pull/6871/files#diff-9069cb4b6ae70f51608f138f41c58fba13f17769a78770981df7f76da5dd26f8
workspace-fork.ts https://github.com/simstudioai/sim/pull/6871/files#diff-7f7c97340771d184d34a12cd7e350b02a3b4c612e4f0ef8728c63da661bf0863
apps/sim/app/api/workspaces/[id]/fork/diff/route.tshttps://github.com/simstudioai/sim/pull/6871/files#diff-3dee1703549010f59eccac56a140152564e3382f0539e7f3e73a756c3f2fd516
View file https://github.com/simstudioai/sim/blob/ac8473767282718b2ab3ff6f9106698f7a5b6fc5/apps/sim/app/api/workspaces/%5Bid%5D/fork/diff/route.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6871/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6871/files#diff-3dee1703549010f59eccac56a140152564e3382f0539e7f3e73a756c3f2fd516
https://github.com/simstudioai/sim/pull/6871/files#diff-3dee1703549010f59eccac56a140152564e3382f0539e7f3e73a756c3f2fd516
https://github.com/simstudioai/sim/pull/6871/files#diff-3dee1703549010f59eccac56a140152564e3382f0539e7f3e73a756c3f2fd516
Please reload this pagehttps://github.com/simstudioai/sim/pull/6871/files
https://github.com/simstudioai/sim/pull/6871/files#diff-3dee1703549010f59eccac56a140152564e3382f0539e7f3e73a756c3f2fd516
apps/sim/ee/workspace-forking/components/fork-sync/custom-block-input-control.test.tshttps://github.com/simstudioai/sim/pull/6871/files#diff-e4ea01eb45f6b203e11647d6e38f3d6f9c602f769459b62392f1c6cb9f8eb20b
View file https://github.com/simstudioai/sim/blob/ac8473767282718b2ab3ff6f9106698f7a5b6fc5/apps/sim/ee/workspace-forking/components/fork-sync/custom-block-input-control.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6871/{{ revealButtonHref }}
apps/sim/ee/workspace-forking/components/fork-sync/custom-block-input-control.tshttps://github.com/simstudioai/sim/pull/6871/files#diff-a16cca93cc81c09ba428167240bfde6f17fa870063a673fd58ac937757b7a3d6
View file https://github.com/simstudioai/sim/blob/ac8473767282718b2ab3ff6f9106698f7a5b6fc5/apps/sim/ee/workspace-forking/components/fork-sync/custom-block-input-control.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6871/{{ revealButtonHref }}
apps/sim/ee/workspace-forking/components/fork-sync/dependent-value.test.tshttps://github.com/simstudioai/sim/pull/6871/files#diff-23c74f0683d31f6cf35a935dfca53ca9f1dbccc027ac04c5cc05e2bf91ed841a
View file https://github.com/simstudioai/sim/blob/ac8473767282718b2ab3ff6f9106698f7a5b6fc5/apps/sim/ee/workspace-forking/components/fork-sync/dependent-value.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6871/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6871/files#diff-23c74f0683d31f6cf35a935dfca53ca9f1dbccc027ac04c5cc05e2bf91ed841a
https://github.com/simstudioai/sim/pull/6871/files#diff-23c74f0683d31f6cf35a935dfca53ca9f1dbccc027ac04c5cc05e2bf91ed841a
apps/sim/ee/workspace-forking/components/fork-sync/dependent-value.tshttps://github.com/simstudioai/sim/pull/6871/files#diff-635591cfbcfd2f8f6057304752e263f5ec99886c0db2d9fafb072af7824c2727
View file https://github.com/simstudioai/sim/blob/ac8473767282718b2ab3ff6f9106698f7a5b6fc5/apps/sim/ee/workspace-forking/components/fork-sync/dependent-value.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6871/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6871/files#diff-635591cfbcfd2f8f6057304752e263f5ec99886c0db2d9fafb072af7824c2727
https://github.com/simstudioai/sim/pull/6871/files#diff-635591cfbcfd2f8f6057304752e263f5ec99886c0db2d9fafb072af7824c2727
apps/sim/ee/workspace-forking/components/fork-sync/fork-sync-view.tsxhttps://github.com/simstudioai/sim/pull/6871/files#diff-87fea320951a50114dbccd28dd4aa248a71b43d4159384b1fc15bf3bbec63c5a
View file https://github.com/simstudioai/sim/blob/ac8473767282718b2ab3ff6f9106698f7a5b6fc5/apps/sim/ee/workspace-forking/components/fork-sync/fork-sync-view.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6871/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6871/files#diff-87fea320951a50114dbccd28dd4aa248a71b43d4159384b1fc15bf3bbec63c5a
https://github.com/simstudioai/sim/pull/6871/files#diff-87fea320951a50114dbccd28dd4aa248a71b43d4159384b1fc15bf3bbec63c5a
https://github.com/simstudioai/sim/pull/6871/files#diff-87fea320951a50114dbccd28dd4aa248a71b43d4159384b1fc15bf3bbec63c5a
https://github.com/simstudioai/sim/pull/6871/files#diff-87fea320951a50114dbccd28dd4aa248a71b43d4159384b1fc15bf3bbec63c5a
Please reload this pagehttps://github.com/simstudioai/sim/pull/6871/files
https://github.com/simstudioai/sim/pull/6871/files#diff-87fea320951a50114dbccd28dd4aa248a71b43d4159384b1fc15bf3bbec63c5a
https://github.com/simstudioai/sim/pull/6871/files#diff-87fea320951a50114dbccd28dd4aa248a71b43d4159384b1fc15bf3bbec63c5a
Please reload this pagehttps://github.com/simstudioai/sim/pull/6871/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6871/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.