Skip to content

fix(platform): migrate the legacy Windows HOME plugin store after the LOCALAPPDATA precedence change #3236

Closed

Description

@Xuepoo

Priority: P1 | Area: platform | Labels: fix,P1,area:platform | Milestone: v0.1.0 | RFC: none | Task: CTX-1876

Problem

bitty#3226 (PR #3230) changed Windows path precedence so the data root prefers %LOCALAPPDATA% before $HOME. A Windows install with HOME set that stored plugins under $HOME/.local/share/bitty/plugins (and its plugins-state sibling) is no longer discovered after upgrade.

Scope

  • Decide and record the policy: one-time migration, bounded read-only legacy fallback, or an explicit documented manual move.
  • If a fallback or migration is chosen, apply it consistently to store_root, data_home, plugins-state, and the bitty plugin CLI, behind one resolver rather than per-call-site branches.
  • Keep plugin discovery single-authority: no second untrusted source path (R-006/R-015/R-017 unchanged).
  • Document the Windows path precedence in the release notes and the platform configuration reference.

Acceptance

  • A Windows fixture proves the chosen behavior for the legacy store present/absent and for plugins-state.
  • No change to the deny-by-default plugin authority story; security review records the disposition.
  • Docs updated (bitty-terminal-docs configuration/platform reference + release notes).

Activity

  1. added this to the v0.1.0 milestone on Nov 18, 2026
  2. added
    fix
    P1
    area:platform
    on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1area:platformfix

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions