Repository navigation
fix(cli): hold back minor releases and stop allowing every pre-release - #2177
Open
phernandez wants to merge 2 commits into
Open
phernandez wants to merge 2 commits into
phernandez wants to merge 2 commits into
Conversation
1.1 splits bm_project and bm_schema into new tools, so a background install from 1.0 would break client tool allowlists and hooks without warning. Background checks now treat a minor bump like a major one: report it with release notes and leave the install to `bm update`. Patch releases still install automatically. Refs #2164 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: phernandez <paul@basicmachines.co>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
No dependency needs pre-releases anymore (1.0 pinned a stable FastMCP), and allowing all of them pulls unrelated alphas and release candidates into the tool environment (protobuf, redis, sqlite-vec, wrapt). uv saves --prerelease=allow in the tool receipt and reuses it on a plain `uv tool upgrade`, so auto-update and its hints pass --prerelease=if-necessary-or-explicit, which replaces the saved setting. Fresh installs (docs, README, server.json, the Claude Code/Codex plugins, the Hermes and OpenClaw installers, the hook launcher) drop the flag. Fixes #2164 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: phernandez <paul@basicmachines.co>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2164.
1. Minor releases are announced, not auto-installed
Background auto-update only held back major releases. 1.1 renames tools (
bm_projectandbm_schemasplit intobm_project_list,bm_project_create,bm_recent,bm_schema_validate,bm_schema_infer,bm_schema_diff). A 1.0 user with an MCP client allowlist or hooks naming the old tools would get 1.1 installed silently and break on restart.is_major_upgradeis nowis_feature_upgrade: true when the latest version's (major, minor) is higher. Background checks report a minor or major release with release notes andbm updateinstructions. Patch releases still auto-install, andbm updateinstalls anything.Release note: this only protects users who already run a version with this check. Users on 1.0.0 will still auto-install 1.1, so the 1.1 release notes need to name the tool renames clearly.
2. No more
--prerelease=allow1.0 already pinned a stable FastMCP (4.1.3), so the flag from #1338 is no longer needed. It is also harmful. Resolving
pyproject.tomlwith--prerelease=allowpicks protobuf 7.37.0rc3, redis 8.2.1b1, sqlite-vec 0.1.10a4 and wrapt 2.6.0.dev1. uv's default mode resolves the same tree with stable releases and still accepts the OpenTelemetry betas that logfire requests.uv saves
prerelease = "allow"in the tool receipt and reuses it on a plainuv tool upgrade. I checked this with uv 0.13.5. So:--prerelease=if-necessary-or-explicit, which replaces the saved setting and moves old installs back to the default;llms-install.md,SECURITY.md,docs/litellm-provider.md,server.jsonruntime args, Claude Code and Codex plugin docs/skills and.mcp.json, the Hermes and OpenClaw installers,bm installnext steps, the hook launcher, and the release runbooks.--prerelease=allowremains only where it is correct: the beta-release runbook (upgrading to a basic-memory beta) and the beta guard injustfileandAGENTS.md.Verification
just fast-check: passestests/cli,test_optional_litellm.py,test_update_versions.py: 1,294 passed, 7 skippedjust package-check: passes (Claude Code plugin, skills, Hermes, OpenClaw)🤖 Generated with Claude Code