Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): add missing v7 key to legacy localStorage cleanup list #594

Mergedbinbandit(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/594/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Summary

When the persisted state key was bumped from v7 to v8 in 689dda59, the outgoing v7 key was not added to LEGACY_PERSISTED_STATE_KEYS. Users who ran the app during the ~3-week window where v7 was the active key retain a stale t3code:renderer-state:v7 entry in localStorage that is never cleaned up.

Change

One-line addition: add "t3code:renderer-state:v7" to the legacy key cleanup array in apps/web/src/store.ts.

Verification

  • bun lint — passes (only pre-existing warnings)
  • bun typecheck — passes
  • bun run test — passes (2 pre-existing terminalStateStore.test.ts failures on main unrelated to this change)

Note

Add missing "t3code:renderer-state:v7" key to legacy localStorage cleanup list in LEGACY_PERSISTED_STATE_KEYS within store.ts

Add the string "t3code:renderer-state:v7" to LEGACY_PERSISTED_STATE_KEYS in store.ts.

📍Where to Start

Start with the LEGACY_PERSISTED_STATE_KEYS definition in store.ts.

Macroscope summarized 759f6e4.
    1. Important

      Review skipped

      Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

      ⚙️ Run configuration

      Configuration used: Repository UI

      Review profile: CHILL

      Plan: Pro

      Run ID: 5822f2a3-e420-45d8-a58a-77c89ab62ab4

      You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

      Use the checkbox below for a quick retry:

      • 🔍 Trigger review
      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create PR with unit tests
      • Post copyable unit tests in a comment

      Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

      ❤️ Share
      Comment `@coderabbitai help` to get the list of available commands and usage tips.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

Sign in to join this conversation.