René's URL Explorer Experiment


Title: chore(stores): remove Zustand environment store and dead init scaffolding by waleedlatif1 · Pull Request #3929 · simstudioai/sim · GitHub

Open Graph Title: chore(stores): remove Zustand environment store and dead init scaffolding by waleedlatif1 · Pull Request #3929 · simstudioai/sim

X Title: chore(stores): remove Zustand environment store and dead init scaffolding by waleedlatif1 · Pull Request #3929 · simstudioai/sim

Description: Summary Removed useEnvironmentStore Zustand store — env vars now read exclusively from React Query cache Stripped stores/variables to UI-only (modal position/dimensions) — variable data already lives in stores/panel/variables Removed dead loadForWorkflow from panel variables store (hydrated by registry, never called externally) Cleaned up stores/index.ts: removed empty initializeApplication(), useAppInitialization, reinitializeAfterLogin, logAllStores, and all dead init flags/hooks Removed dead getStore test injection parameter from getClientEnvVars / createCustomToolRequestBody Type of Change Refactoring (internal cleanup, zero behavior change) Testing TypeScript compiles clean All 34 utils tests pass Lint passes Server-side execution loads env vars from DB directly (unchanged) Client-side env var resolution reads from same React Query cache that usePersonalEnvironment() populates Logout clears env vars from RQ cache via removeQueries 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 Removed useEnvironmentStore Zustand store — env vars now read exclusively from React Query cache Stripped stores/variables to UI-only (modal position/dimensions) — variable data already li...

X Description: Summary Removed useEnvironmentStore Zustand store — env vars now read exclusively from React Query cache Stripped stores/variables to UI-only (modal position/dimensions) — variable data already li...

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

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:6f6eadcd-f9a0-ca47-5a41-144db5373d8b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB1E4:1CB508:BE7725:10E437A:6AFB5DFF
html-safe-nonce864384f2e610b81d7521193fb5af0dfa5b1e6dd76d343c198251659d91b902e3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMUU0OjFDQjUwODpCRTc3MjU6MTBFNDM3QTo2QUZCNURGRiIsInZpc2l0b3JfaWQiOiIzNDgzODAwNTYyODgzNTgzNDg3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacabd098b707b04b90cb4c9a36e931877ace631d3ef9cf8da817f3dfa5314926c7
hovercard-subject-tagpull_request:3487950127
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/3929/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 Removed useEnvironmentStore Zustand store — env vars now read exclusively from React Query cache Stripped stores/variables to UI-only (modal position/dimensions) — variable data already li...
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/3929/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F3929%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%2F3929%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/3929/files
Reloadhttps://github.com/simstudioai/sim/pull/3929/files
Reloadhttps://github.com/simstudioai/sim/pull/3929/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
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
waleedlatif1/sync-env-vars-deletionhttps://github.com/simstudioai/sim/tree/waleedlatif1/sync-env-vars-deletion
Conversation 5 https://github.com/simstudioai/sim/pull/3929
Commits 1 https://github.com/simstudioai/sim/pull/3929/commits
Checks 11 https://github.com/simstudioai/sim/pull/3929/checks
Files changed https://github.com/simstudioai/sim/pull/3929/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/3929/files
chore(stores): remove Zustand environment store and dead init scaffolding https://github.com/simstudioai/sim/pull/3929/files#top
Show all changes 1 commit https://github.com/simstudioai/sim/pull/3929/files
b4bc112 chore(stores): remove Zustand environment store and dead init scaffol… waleedlatif1 Apr 4, 2026 https://github.com/simstudioai/sim/pull/3929/commits/b4bc11247bb5bba01fceda6b1a4489ba247e18f8
Clear filters https://github.com/simstudioai/sim/pull/3929/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/3929/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/3929/files
use-selector-setup.ts https://github.com/simstudioai/sim/pull/3929/files#diff-d48c79c6be7cfa9f47c2a13393653dfaba61a516ae9865ee4662bb928d4f2de3
variables.tsx https://github.com/simstudioai/sim/pull/3929/files#diff-0950d75298d5c8f7428e9506065a0a11b82117f6e117d811c601ff2e41add141
use-workflow-execution.ts https://github.com/simstudioai/sim/pull/3929/files#diff-26a2ffd51d627fc3dadc9abff80196d5f5f7421369413728dbcfe6f72c46e4e6
environment.ts https://github.com/simstudioai/sim/pull/3929/files#diff-7f8effdc926bed33693ad92b74dd83d3146caef0872f2edd426e81f1da0a2f09
use-selector-query.ts https://github.com/simstudioai/sim/pull/3929/files#diff-267abfcf64837e2e785ca8768ddfc8ab997418277841ff9b4250970754e10ee8
index.ts https://github.com/simstudioai/sim/pull/3929/files#diff-f7ee069d2a2be0c470f6c57c75dc8ea6e99880945ac0c11b9dd6b82eb8cf317a
store.ts https://github.com/simstudioai/sim/pull/3929/files#diff-7bc7930206542ce491303d05ea1260243b94c01b29bbc96b24ade53d753414f1
types.ts https://github.com/simstudioai/sim/pull/3929/files#diff-37e05431ce2babfec0b2179b12f91c0f4f7b7d0142f344ec71f01f0f75aa734a
index.ts https://github.com/simstudioai/sim/pull/3929/files#diff-a13567da6c909225801870555c4fda06a3df1a01d483d6faba6c6980c808da04
store.ts https://github.com/simstudioai/sim/pull/3929/files#diff-c203a69f601a95b97e89695028daca1c4bfa466ca652ef855c767f9460c5139e
types.ts https://github.com/simstudioai/sim/pull/3929/files#diff-192b3c3233210349e8edb746c80c2b41b9065fb08f9d399c7a986d1b32b35806
store.ts https://github.com/simstudioai/sim/pull/3929/files#diff-83d8b5359cf79c0d321eb44eb549a0e1a1c1bffe680269e5d6e7b9baa9838aaf
types.ts https://github.com/simstudioai/sim/pull/3929/files#diff-360b9c3d231cd64d24139ab2ea439a20bfb023708e69f13f14738589293d55ee
utils.test.ts https://github.com/simstudioai/sim/pull/3929/files#diff-416618316cbf81ff54c88ddd33c286322779a3731a965e61d815490a85bcacb5
utils.ts https://github.com/simstudioai/sim/pull/3929/files#diff-0b5ddcf5025da8972b5b3e2a3b0fd5959af3f22241e28b9ba8ad86dec7d8cfb2
...owId]/components/panel/components/editor/components/sub-block/hooks/use-selector-setup.tshttps://github.com/simstudioai/sim/pull/3929/files#diff-d48c79c6be7cfa9f47c2a13393653dfaba61a516ae9865ee4662bb928d4f2de3
View file https://github.com/simstudioai/sim/blob/b4bc11247bb5bba01fceda6b1a4489ba247e18f8/apps/sim/app/workspace/%5BworkspaceId%5D/w/%5BworkflowId%5D/components/panel/components/editor/components/sub-block/hooks/use-selector-setup.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/3929/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/3929/files#diff-d48c79c6be7cfa9f47c2a13393653dfaba61a516ae9865ee4662bb928d4f2de3
https://github.com/simstudioai/sim/pull/3929/files#diff-d48c79c6be7cfa9f47c2a13393653dfaba61a516ae9865ee4662bb928d4f2de3
https://github.com/simstudioai/sim/pull/3929/files#diff-d48c79c6be7cfa9f47c2a13393653dfaba61a516ae9865ee4662bb928d4f2de3
apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/variables/variables.tsxhttps://github.com/simstudioai/sim/pull/3929/files#diff-0950d75298d5c8f7428e9506065a0a11b82117f6e117d811c601ff2e41add141
View file https://github.com/simstudioai/sim/blob/b4bc11247bb5bba01fceda6b1a4489ba247e18f8/apps/sim/app/workspace/%5BworkspaceId%5D/w/%5BworkflowId%5D/components/variables/variables.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/3929/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/3929/files#diff-0950d75298d5c8f7428e9506065a0a11b82117f6e117d811c601ff2e41add141
https://github.com/simstudioai/sim/pull/3929/files#diff-0950d75298d5c8f7428e9506065a0a11b82117f6e117d811c601ff2e41add141
https://github.com/simstudioai/sim/pull/3929/files#diff-0950d75298d5c8f7428e9506065a0a11b82117f6e117d811c601ff2e41add141
apps/sim/app/workspace/[workspaceId]/w/[workflowId]/hooks/use-workflow-execution.tshttps://github.com/simstudioai/sim/pull/3929/files#diff-26a2ffd51d627fc3dadc9abff80196d5f5f7421369413728dbcfe6f72c46e4e6
View file https://github.com/simstudioai/sim/blob/b4bc11247bb5bba01fceda6b1a4489ba247e18f8/apps/sim/app/workspace/%5BworkspaceId%5D/w/%5BworkflowId%5D/hooks/use-workflow-execution.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/3929/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/3929/files#diff-26a2ffd51d627fc3dadc9abff80196d5f5f7421369413728dbcfe6f72c46e4e6
https://github.com/simstudioai/sim/pull/3929/files#diff-26a2ffd51d627fc3dadc9abff80196d5f5f7421369413728dbcfe6f72c46e4e6
https://github.com/simstudioai/sim/pull/3929/files#diff-26a2ffd51d627fc3dadc9abff80196d5f5f7421369413728dbcfe6f72c46e4e6
https://github.com/simstudioai/sim/pull/3929/files#diff-26a2ffd51d627fc3dadc9abff80196d5f5f7421369413728dbcfe6f72c46e4e6
https://github.com/simstudioai/sim/pull/3929/files#diff-26a2ffd51d627fc3dadc9abff80196d5f5f7421369413728dbcfe6f72c46e4e6
https://github.com/simstudioai/sim/pull/3929/files#diff-26a2ffd51d627fc3dadc9abff80196d5f5f7421369413728dbcfe6f72c46e4e6
apps/sim/hooks/queries/environment.tshttps://github.com/simstudioai/sim/pull/3929/files#diff-7f8effdc926bed33693ad92b74dd83d3146caef0872f2edd426e81f1da0a2f09
View file https://github.com/simstudioai/sim/blob/b4bc11247bb5bba01fceda6b1a4489ba247e18f8/apps/sim/hooks/queries/environment.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/3929/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/3929/files#diff-7f8effdc926bed33693ad92b74dd83d3146caef0872f2edd426e81f1da0a2f09
https://github.com/simstudioai/sim/pull/3929/files#diff-7f8effdc926bed33693ad92b74dd83d3146caef0872f2edd426e81f1da0a2f09
apps/sim/hooks/selectors/use-selector-query.tshttps://github.com/simstudioai/sim/pull/3929/files#diff-267abfcf64837e2e785ca8768ddfc8ab997418277841ff9b4250970754e10ee8
View file https://github.com/simstudioai/sim/blob/b4bc11247bb5bba01fceda6b1a4489ba247e18f8/apps/sim/hooks/selectors/use-selector-query.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/3929/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/3929/files#diff-267abfcf64837e2e785ca8768ddfc8ab997418277841ff9b4250970754e10ee8
https://github.com/simstudioai/sim/pull/3929/files#diff-267abfcf64837e2e785ca8768ddfc8ab997418277841ff9b4250970754e10ee8
https://github.com/simstudioai/sim/pull/3929/files#diff-267abfcf64837e2e785ca8768ddfc8ab997418277841ff9b4250970754e10ee8
apps/sim/stores/index.tshttps://github.com/simstudioai/sim/pull/3929/files#diff-f7ee069d2a2be0c470f6c57c75dc8ea6e99880945ac0c11b9dd6b82eb8cf317a
View file https://github.com/simstudioai/sim/blob/b4bc11247bb5bba01fceda6b1a4489ba247e18f8/apps/sim/stores/index.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/3929/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/3929/files#diff-f7ee069d2a2be0c470f6c57c75dc8ea6e99880945ac0c11b9dd6b82eb8cf317a
https://github.com/simstudioai/sim/pull/3929/files#diff-f7ee069d2a2be0c470f6c57c75dc8ea6e99880945ac0c11b9dd6b82eb8cf317a
Please reload this pagehttps://github.com/simstudioai/sim/pull/3929/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/3929/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.