fix(setup): auto-detect nightly channel from .dev install version#381
Merged
Merged
Conversation
A user who runs `pipx install --pip-args=--pre bicameral-mcp` (or the uv prerelease equivalent) lands on a CalVer .devN build, but the wizard hardcoded `channel: stable` into `.bicameral/config.yaml`. `bicameral.update` then queried PyPI's `info.version` — which hides .devN by design — and silently never offered an upgrade, stranding nightly users on whatever build they happened to --pre install. Wizard now reads the running package version (importlib.metadata, with a pyproject.toml fallback for source checkouts) and writes `channel: nightly` when a `.dev` segment is present, `channel: stable` otherwise. `run_config_wizard` preserves the existing channel on rewrite so re-running `bicameral-mcp config` no longer drops the field. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
This was referenced May 16, 2026
Knapp-Kevin
pushed a commit
to Knapp-Kevin/bicameral-mcp
that referenced
this pull request
May 21, 2026
Surfaces the setup-wizard nightly-channel auto-detect fix (PR BicameralAI#381) to design partners. Without it, anyone who installed via `pipx install --pip-args=--pre bicameral-mcp` ran `bicameral-mcp setup` into a config hardcoded to `channel: stable`, so `bicameral.update` silently never offered the nightly upgrade path. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
channel: nightlywhen the running build carries a PEP 440.devNsegment (pipx install --pip-args=--pre bicameral-mcp/uv tool install --prerelease=allow),channel: stableotherwise.run_config_wizardpreserves the existingchannelfield on rewrite so re-runningbicameral-mcp configno longer drops it.bicameral.updatecompared their CalVer install against PyPI'sinfo.version(which hides.devN), saw them as already-ahead, and silently never offered an upgrade.Linked issues
None — direct fix surfaced in a pilot conversation.
Plan / Audit / Seal
Plan: trivial; risk:L1. Single-function behavior change + new tests, no API surface change (new param is keyword-only with a default that preserves prior callers).
Test plan
pytest tests/test_setup_wizard_channel_autodetect.py tests/test_preflight_attribution_redaction.py -q(14/14)pytest tests/test_setup_wizard*.py -q(51/51)ruff check setup_wizard.py tests/test_setup_wizard_channel_autodetect.py(clean)🤖 Generated with Claude Code