Skip to content

fix(vcs): migrate legacy prompt items after package upgrades - #128

Draft
plttn wants to merge 3 commits into
mainfrom
fix/vcs-package-upgrade-migration
Draft

plttn wants to merge 3 commits into
mainfrom
fix/vcs-package-upgrade-migration

Conversation

@plttn

@plttn plttn commented Nov 21, 2026

Copy link
Copy Markdown
Owner

Summary

Refs #127.

  • The Arch AUR fish-tide 7.2.1-1 recipe installs Tide’s functions and startup script under /etc/fish. Its package hooks print install and removal guidance and define no upgrade hook. Fisher emits _tide_init_update when it updates the plugin, so the AUR upgrade leaves existing git and jj prompt items in place.
  • Reuse _tide_migrate_vcs_prompt_items during interactive prompt initialization, before item filtering and cache setup. On each side, the migration skips the universal-variable assignment if there are no legacy items.
  • The regression simulates startup without the Fisher update event and checks both configured lists and the first prompt’s cached lists. It also checks the migrated lists in a second shell.

Packaging sources: PKGBUILD and fish-tide.install.

Verification

  • Fish 4.9.3 on Linux — isolated migration regression, mise run lint, and full mise run test passed.
  • Fish 4.8.0 on Linux — isolated migration regression and mise run lint passed.
  • Package behavior was verified from the AUR recipe and hooks. The regression exercises the equivalent startup path in an isolated Fish config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant