René's URL Explorer Experiment


Title: fix(webapp): Evict legacy resizable-panel localStorage on client boot by samejr · Pull Request #3564 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: fix(webapp): Evict legacy resizable-panel localStorage on client boot by samejr · Pull Request #3564 · triggerdotdev/trigger.dev

X Title: fix(webapp): Evict legacy resizable-panel localStorage on client boot by samejr · Pull Request #3564 · triggerdotdev/trigger.dev

Description: Summary Users on production are hitting QuotaExceededError: Failed to execute 'setItem' on 'Storage' when navigating runs, because their localStorage is full of orphaned panel-group-react-aria-:: entries. Each entry is a session-unique key written by the resizable panel library; they accumulated to thousands per user over the last two months and now block legitimate setItem calls (the run-view inspector can no longer persist its layout, and the page crashes mid-render). This PR evicts the legacy entries once on client boot. The leak itself is already plugged by the v1.1.3 upgrade in #XXXX — this is the cleanup that recovers the wasted quota on existing users' machines. Root cause (already fixed, for context) In v0.4.1 of the underlying library, PanelGroupImpl defaulted autosaveStrategy to "localStorage" unconditionally — so every PanelGroup wrote to localStorage on every autosave trigger, including the four in QueryEditor, the one in ReplayRunDialog, the storybook routes, etc. Without an autosaveId, the key fell back to panel-group-${useId()}, and React Aria's useId() produces a new session-unique prefix each visit. Result: entries accumulated without bound across sessions. The condition was introduced when #3282 removed the wrapper's explicit autosaveStrategy="cookie" override (to fix HTTP 431 cookie-size errors). That worked, but the library default that took over silently caused this leak. The v1.1.3 upgrade in the resizable-panel PR changed the default to autosaveStrategy = autosaveId ? "localStorage" : undefined, so no new entries are being written. Existing residue still needs to be removed from users' browsers. Changes New file apps/webapp/app/clientBeforeFirstRender.ts — exports a clientBeforeFirstRender() function that runs synchronously, before React hydrates. Encapsulates a small cleanup helper that scans localStorage and removes: Every key starting with panel-group-react-aria (the legacy auto-generated keys). The orphan panel-run-parent-v2 key from before the autosaveId v2→v3 bump. apps/webapp/app/entry.client.tsx — imports and invokes clientBeforeFirstRender() once, before hydrateRoot(). This guarantees the cleanup completes before any ResizablePanelGroup mounts and tries to write. The cleanup is wrapped in try/catch so private-browsing / disabled-storage scenarios fail silently. Idempotent: subsequent loads find no matching keys and exit immediately. Test plan Locally seed ~50 fake panel-group-react-aria… entries plus a panel-run-parent-v2 entry via DevTools console, hard reload → legacy entries gone, real entries (panel-run-parent-v3, panel-run-tree) preserved. Idempotency: reload a second time, no errors, no state changes. Add a control entry (panel-run-parent-v3-but-different-suffix) — confirmed not over-matched. Simulate broken Storage.setItem throwing — page still renders, cleanup swallows the error. Typecheck clean. Notes Customer report: QuotaExceededError: Failed to execute 'setItem' on 'Storage': Setting the value of 'panel-run-parent-v3' exceeded the quota. The cleanup runs once per page load. Once a user has loaded the app after this deploys, their localStorage is clean and the function becomes a no-op forever.

Open Graph Description: Summary Users on production are hitting QuotaExceededError: Failed to execute 'setItem' on 'Storage' when navigating runs, because their localStorage is full of orphaned panel-grou...

X Description: Summary Users on production are hitting QuotaExceededError: Failed to execute 'setItem' on 'Storage' when navigating runs, because their localStorage is full of orp...

Opengraph URL: https://github.com/triggerdotdev/trigger.dev/pull/3564

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:05e2c011-24e6-2d3e-ebeb-bc535f65c581
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id993C:3491F9:4A6A3:6856F:6AFB2A0F
html-safe-noncec005f18ce6f15c0c96f8c5d0b93ffc1340761f812c734400440dd92cdea2a0fa
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTNDOjM0OTFGOTo0QTZBMzo2ODU2Rjo2QUZCMkEwRiIsInZpc2l0b3JfaWQiOiI3NDE2MTUzMTMzMTEwOTk1NDcxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac580c55bee4b09c26d4b2da127edb57e19cc0f1f73692f7504e9147d1cb4dd671
hovercard-subject-tagpull_request:3669646512
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/triggerdotdev/trigger.dev/pull/3564/files
twitter:imagehttps://avatars.githubusercontent.com/u/7555566?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/7555566?s=400&v=4
og:image:altSummary Users on production are hitting QuotaExceededError: Failed to execute 'setItem' on 'Storage' when navigating runs, because their localStorage is full of orphaned panel-grou...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None40c7ffe00e8bbb3ca8403c83d7ef110379c9eba2cbc7a7c333b037ffd940d4e4
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git
octolytics-dimension-user_id95297378
octolytics-dimension-user_logintriggerdotdev
octolytics-dimension-repository_id572570113
octolytics-dimension-repository_nwotriggerdotdev/trigger.dev
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id572570113
octolytics-dimension-repository_network_root_nwotriggerdotdev/trigger.dev
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/triggerdotdev/trigger.dev/pull/3564/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F3564%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%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F3564%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=triggerdotdev%2Ftrigger.dev
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/3564/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/3564/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/3564/files
triggerdotdevhttps://github.com/triggerdotdev
trigger.devhttps://github.com/triggerdotdev/trigger.dev
Codehttps://github.com/triggerdotdev/trigger.dev
Issues203 (203)https://github.com/triggerdotdev/trigger.dev/issues
Pull requests67 (67)https://github.com/triggerdotdev/trigger.dev/pulls
Discussionshttps://github.com/triggerdotdev/trigger.dev/discussions
Actionshttps://github.com/triggerdotdev/trigger.dev/actions
Projectshttps://github.com/triggerdotdev/trigger.dev/projects
Security and quality39 (39)https://github.com/triggerdotdev/trigger.dev/security
Insightshttps://github.com/triggerdotdev/trigger.dev/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2Fnew%2Fchoose
samejrhttps://github.com/samejr
mainhttps://github.com/triggerdotdev/trigger.dev/tree/main
fix(webapp)-evict-legacy-resizable-panel-localstoragehttps://github.com/triggerdotdev/trigger.dev/tree/fix(webapp)-evict-legacy-resizable-panel-localstorage
Conversation 4 https://github.com/triggerdotdev/trigger.dev/pull/3564
Commits 2 https://github.com/triggerdotdev/trigger.dev/pull/3564/commits
Checks 48 https://github.com/triggerdotdev/trigger.dev/pull/3564/checks
Files changed https://github.com/triggerdotdev/trigger.dev/pull/3564/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/3564/files
fix(webapp): Evict legacy resizable-panel localStorage on client boot https://github.com/triggerdotdev/trigger.dev/pull/3564/files#top
Show all changes 2 commits https://github.com/triggerdotdev/trigger.dev/pull/3564/files
39ae9e2 Evict legacy resizable-panel localStorage on client boot samejr May 12, 2026 https://github.com/triggerdotdev/trigger.dev/pull/3564/commits/39ae9e2146beff178fefbca6ddd6f23e510d2c86
8d98c48 Merge branch 'main' into fix(webapp)-evict-legacy-resizable-panel-loc… samejr May 12, 2026 https://github.com/triggerdotdev/trigger.dev/pull/3564/commits/8d98c4826993358ad1e1f1a663e961c1dcee7d64
Clear filters https://github.com/triggerdotdev/trigger.dev/pull/3564/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/3564/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/3564/files
clientBeforeFirstRender.ts https://github.com/triggerdotdev/trigger.dev/pull/3564/files#diff-25088a083e9564d3fdd4c98d0fae82d638703d9f5b66ba10ca3cef1bb94d4f3d
entry.client.tsx https://github.com/triggerdotdev/trigger.dev/pull/3564/files#diff-86a9e42a3a4880222d1f992768dc5e4b8981e91d39c40cf83bed0706350934c9
apps/webapp/app/clientBeforeFirstRender.tshttps://github.com/triggerdotdev/trigger.dev/pull/3564/files#diff-25088a083e9564d3fdd4c98d0fae82d638703d9f5b66ba10ca3cef1bb94d4f3d
View file https://github.com/triggerdotdev/trigger.dev/blob/8d98c4826993358ad1e1f1a663e961c1dcee7d64/apps/webapp/app/clientBeforeFirstRender.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/3564/{{ revealButtonHref }}
apps/webapp/app/entry.client.tsxhttps://github.com/triggerdotdev/trigger.dev/pull/3564/files#diff-86a9e42a3a4880222d1f992768dc5e4b8981e91d39c40cf83bed0706350934c9
View file https://github.com/triggerdotdev/trigger.dev/blob/8d98c4826993358ad1e1f1a663e961c1dcee7d64/apps/webapp/app/entry.client.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/3564/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/3564/files#diff-86a9e42a3a4880222d1f992768dc5e4b8981e91d39c40cf83bed0706350934c9
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/3564/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.