René's URL Explorer Experiment


Title: bug(undo-redo): QuotaExceededError when localStorage cap is exhausted by undo/redo snapshots · Issue #4737 · simstudioai/sim · GitHub

Open Graph Title: bug(undo-redo): QuotaExceededError when localStorage cap is exhausted by undo/redo snapshots · Issue #4737 · simstudioai/sim

X Title: bug(undo-redo): QuotaExceededError when localStorage cap is exhausted by undo/redo snapshots · Issue #4737 · simstudioai/sim

Description: Summary A QuotaExceededError: Failed to execute 'setItem' on 'Storage' can surface from various small Zustand-persisted stores (e.g., notification-storage, panel-editor-state) when a user has actively built workflows for some time. The s...

Open Graph Description: Summary A QuotaExceededError: Failed to execute 'setItem' on 'Storage' can surface from various small Zustand-persisted stores (e.g., notification-storage, panel-editor-state) when a user has activ...

X Description: Summary A QuotaExceededError: Failed to execute 'setItem' on 'Storage' can surface from various small Zustand-persisted stores (e.g., notification-storage, panel-editor-state) when ...

Opengraph URL: https://github.com/simstudioai/sim/issues/4737

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug(undo-redo): QuotaExceededError when localStorage cap is exhausted by undo/redo snapshots","articleBody":"## Summary\n\nA `QuotaExceededError: Failed to execute 'setItem' on 'Storage'` can surface from various small Zustand-persisted stores (e.g., `notification-storage`, `panel-editor-state`) when a user has actively built workflows for some time. The stack trace points to the persist middleware's `setItem` call on whichever store happened to write next after the origin's localStorage cap was reached.\n\nThe store whose throw lands in monitoring is not the actual culprit — it's just the first victim after another store filled the origin's quota.\n\n## Root cause\n\n`workflow-undo-redo` is persisted to localStorage and stores operation snapshots that include full block state. Capacity is `MAX_STACKS=5 × DEFAULT_CAPACITY=100 = 500 ops`. Active editing of multiple workflows quickly fills the per-stack capacity with snapshots that can be several KB each, occupying the bulk of the origin's ~5 MB localStorage budget.\n\nOnce the budget is exhausted, any other persisted Zustand store whose `setItem` is called next throws `QuotaExceededError`.\n\n## Reproduction (Chromium-based browser, ~5 MB origin cap)\n\n1. Open the workflow editor.\n2. Add an agent block and paste a large system prompt (e.g., 5 KB of text).\n3. Delete and re-add the block several times. Each cycle pushes `batch-add-blocks` and `batch-remove-blocks` operations whose snapshots include the full block state.\n4. Across a few workflows (up to 5 stacks as `MAX_STACKS` allows), the localStorage origin reaches the cap.\n5. Take any action that triggers another store's persist (e.g., select a block, dismiss a notification). The next `setItem` throws `QuotaExceededError`.\n\nMeasurement helper for the console:\n\n\\`\\`\\`js\nconst sizes = Object.keys(localStorage).map(k => [k, localStorage.getItem(k)?.length ?? 0])\nconsole.table(sizes.sort((a, b) => b[1] - a[1]))\n\\`\\`\\`\n\nshows `workflow-undo-redo` occupying the bulk of origin storage in the affected state.\n\n## Existing partial mitigations\n\n- **PR #2079** added an inline `safeStorageAdapter` to undo-redo's persist middleware, swallowing the quota throw silently for that store — but it does not free the origin budget that other small stores share, so those still throw uncaught.\n- **PR #2812** moved `terminal-console-store` from localStorage to IndexedDB for the same reason (large data).\n- **PR #497** explicitly stated the policy to \"remove use of local storage except for oauth and last active workspace id\". The later introduction of undo-redo's localStorage persistence diverged from that policy.\n\n## Proposed fix\n\nMigrate \\`workflow-undo-redo\\` to IndexedDB using the same \\`idb-keyval\\` pattern as \\`terminal-console-store\\` (PR #2812), including a one-time migration that copies any existing data and removes the legacy localStorage key on first module load. PR follows.","author":{"url":"https://github.com/Sprexatura","@type":"Person","name":"Sprexatura"},"datePublished":"2026-05-26T08:19:32Z","url":"https://github.com/simstudioai/sim/issues/4737"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:1c320ba5-5951-e337-c28a-af66833b2815
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBE38:F482B:3F8E0F:58D2D8:6AFB597C
html-safe-nonce321b4d081fa0f305497677814be3165b1d449d785fd5a2f7e40e25e0ac9fcfd2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTM4OkY0ODJCOjNGOEUwRjo1OEQyRDg6NkFGQjU5N0MiLCJ2aXNpdG9yX2lkIjoiNTkxMTU2ODg2NzQ3MjkyMzAwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac983ef225eb414b80594c7672f6a56b955e47358d843e7f9da1c4e7aca81354a5
hovercard-subject-tagissue:4522622349
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/simstudioai/sim/4737/issue_layout
twitter:imagehttps://opengraph.githubassets.com/04da45c0203a6257d27f200fc91fac1c5d79692caf69772cf2ee752e5f6a5820/simstudioai/sim/issues/4737
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/04da45c0203a6257d27f200fc91fac1c5d79692caf69772cf2ee752e5f6a5820/simstudioai/sim/issues/4737
og:image:altSummary A QuotaExceededError: Failed to execute 'setItem' on 'Storage' can surface from various small Zustand-persisted stores (e.g., notification-storage, panel-editor-state) when a user has activ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameSprexatura
hostnamegithub.com
expected-hostnamegithub.com
Noneea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94
turbo-cache-controlno-preview
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
disable-turbofalse
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
react-app-nameissues

Links:

Skip to contenthttps://github.com/simstudioai/sim/issues/4737#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fissues%2F4737
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%2Fissues%2F4737
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/issues/4737
Reloadhttps://github.com/simstudioai/sim/issues/4737
Reloadhttps://github.com/simstudioai/sim/issues/4737
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
https://github.com/simstudioai/sim
New issuehttps://github.com/login?return_to=https://github.com/simstudioai/sim/issues/4737
New issuehttps://github.com/login?return_to=https://github.com/simstudioai/sim/issues/4737
#6313https://github.com/simstudioai/sim/pull/6313
#4738https://github.com/simstudioai/sim/pull/4738
bug(undo-redo): QuotaExceededError when localStorage cap is exhausted by undo/redo snapshotshttps://github.com/simstudioai/sim/issues/4737#top
#6313https://github.com/simstudioai/sim/pull/6313
#4738https://github.com/simstudioai/sim/pull/4738
https://github.com/Sprexatura
Sprexaturahttps://github.com/Sprexatura
on May 26, 2026https://github.com/simstudioai/sim/issues/4737#issue-4522622349
fix(undo-redo): eviction policy to not have unbounded undo-redo stacks #2079https://github.com/simstudioai/sim/pull/2079
feat(terminal): migrate from zustand for console terminal logs to indexedDb, incr limit from 5mb to ~GBs #2812https://github.com/simstudioai/sim/pull/2812
improvement(localStorage): remove use of local storage except for oauth and last active workspace id #497https://github.com/simstudioai/sim/pull/497
#2812https://github.com/simstudioai/sim/pull/2812
rohitsudhakar1https://github.com/rohitsudhakar1
on Aug 6, 2026https://github.com/simstudioai/sim/issues/4737#event-29084252562
fix(undo-redo): bound persisted history by size, not just operation c…https://github.com/rohitsudhakar1/sim/commit/1f4cb5b823b9bab3c8473ac821cb9d1eb41eba0e
https://docs.github.com/articles/closing-issues-via-commit-messages
1f4cb5bhttps://github.com/rohitsudhakar1/sim/commit/1f4cb5b823b9bab3c8473ac821cb9d1eb41eba0e
Sign up for freehttps://github.com/signup?return_to=https://github.com/simstudioai/sim/issues/4737
Sign in to commenthttps://github.com/login?return_to=https://github.com/simstudioai/sim/issues/4737
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.