Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: add config migration for [stats] section and bump to 0.2.1 - #116

Merged
ADD-SP merged 1 commit into
mainfrom
add_sp/fix-migration
Apr 12, 2026
Merged

fix: add config migration for [stats] section and bump to 0.2.1#116
ADD-SP merged 1 commit into
mainfrom
add_sp/fix-migration

Conversation

@ADD-SP

@ADD-SP ADD-SP commented Apr 12, 2026

Copy link
Copy Markdown
Collaborator

v0.2.0 shipped the required [stats] config field without migration logic, so any pre-existing clawshell.toml fails to parse on upgrade.

  • New to_v0_2_1 migration step injects [stats] with persist_path = "/etc/clawshell/stats.json" when the section is absent.
  • Version gate (from < 0.2.1) catches both 0.1.x and 0.2.0 configs.
  • Bump version to 0.2.1 across Cargo.toml, example config, README, and all npm packages.

v0.2.0 shipped the required [stats] config field without migration
logic, so any pre-existing clawshell.toml fails to parse on upgrade.

- New to_v0_2_1 migration step injects [stats] with persist_path =
  "/etc/clawshell/stats.json" when the section is absent.
- Version gate (from < 0.2.1) catches both 0.1.x and 0.2.0 configs.
- Bump version to 0.2.1 across Cargo.toml, example config, README,
  and all npm packages.
@ADD-SP
ADD-SP merged commit d782028 into main Apr 12, 2026
4 checks passed
@ADD-SP
ADD-SP deleted the add_sp/fix-migration branch April 12, 2026 17:08
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