Skip to content

[CTX-1923] chore(release): pin the Bar lone-workspace default in the embedded catalog - #3289

Merged
Xuepoo merged 1 commit into
mainfrom
ctx-1923/chore-bar-catalog-pin
Nov 21, 2026
Merged

Xuepoo merged 1 commit into
mainfrom
ctx-1923/chore-bar-catalog-pin

Conversation

@Xuepoo

@Xuepoo Xuepoo commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Priority: P1 | Area: release | Labels: chore,P1,area:release | Milestone: v0.1.0 | RFC: none | Task: CTX-1923

Makes an installed Bar visible on a lone workspace in shipped builds. The plugin default already changed on bitty-terminal/bar (d26e65c8, show_single = true); the official registry now pins it (bitty-plugins#150, merge 8b608db4). This change points Core at that registry commit and regenerates the embedded catalog, so bitty plugin install bitty-terminal.bar ships the new default.

Changes

  • validation-pins.env: BITTY_PLUGINS_REV 78a95def… → 8b608db41dba524a0c30afb771d18c698ad3b1a8.
  • crates/bitty-plugin-host/src/official_catalog.rs: regenerated (13 entries, SOURCE_REVISION updated).

Note on the catalog diff

Three entries move, because the registry advanced after the previous pin:

plugin old pin new pin
bitty-terminal.bar a00f269 d26e65c8 (this change's purpose)
bitty-featured.devtools badde42a 88acd1d6
bitty-terminal.file-manager 558bf5a2 38ee03b0

The catalog is derived from the registry commit, so the pin cannot carry only the Bar update: those two entries were already merged into registry main before 8b608db4. Both pins and manifest hashes are registry-validated (13 reachability, 13 manifest hash bindings, 0 errors).

Verification

  • generate-official-catalog.py --check --revision 8b608db4… → official catalog: OK (13 entries).
  • --check-pins → official catalog pins: OK.
  • just catalog-test → 5 tests OK.
  • cargo check -p bitty-plugin-host --offline → clean.
  • just ci-local not run for this data-only diff; remote CI covers the same gates.

Effect on existing installs

The embedded catalog only affects new installs. A machine already running Bar 0.0.1 keeps the old default until bitty plugin install bitty-terminal.bar --yes is run, or until the user sets show_single = true in plugins/bitty-terminal.bar.lua.

Summary by CodeRabbit

  • Updates
    • Refreshed the official catalog entries for Bitty DevTools, Unified Bar, and File Manager to newer revisions.

@Xuepoo Xuepoo added this to the v0.1.0 milestone Nov 21, 2026
@Xuepoo Xuepoo added chore Chore / maintenance P1 Priority: high area:release Area: release preparation labels Nov 21, 2026
@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Explain Change →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 45 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI (base), Organization UI (inherited)
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: cf0681d9-6d42-4863-bd4c-f3ed724a4214
Commits

Reviewing files that changed from the base of the PR and between beca8af and 6a9b103.

Files selected for processing: 3

  • crates/bitty-plugin-host/src/official_catalog.rs
  • crates/bitty-terminal/tests/fixtures/official/bar/bitty-plugin.toml
  • validation-pins.env

No actionable comments were generated in the recent review.

Walkthrough

The official catalog source revision and the pinned commits and manifest hashes for Bitty DevTools, Unified Bar, and File Manager are updated. The validation pin is updated to the same revision.

Changes: Plugin catalog pin refresh

Layer / File(s) Summary
Update catalog and validation pins
crates/bitty-plugin-host/src/official_catalog.rs, validation-pins.env
The catalog’s source revision and the pinned commits and manifest hashes for three plugins are updated. The validation pin now matches the catalog revision.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Other

Possibly related PRs

  • bitty-terminal/bitty#2778: This PR updates validation-pins.env, which was introduced by #2778, and uses its pin-validation contract.

Suggested labels: chore, area:release, P1

Merge Risk: Minimal · previous review beca8

This updates the pinned plugin revisions in the embedded catalog so new installs of Bar show it on a lone workspace. Existing Bar installs need a reinstall or a config change to pick up the new default. No concrete merge risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the core change: pinning the Bar lone-workspace default in the embedded official catalog. The raw summary shows the catalog's SOURCE_REVISION and validation-pins.env moving from 78a95d…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the core change: pinning the Bar lone-workspace default in the embedded official catalog. The raw summary shows the catalog's SOURCE_REVISION and validation-pins.env moving from 78a95de to 8b608db, and the objectives say this revision carries the show_single = true default for bitty-terminal/bar. The title is a bit technical and includes a conventional-commit prefix and ticket ID, but it matches the main change and does not describe anything absent from the changeset.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Fix failing CI checks

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI (base), Organization UI (inherited)
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ab56e502-db21-4f7d-bae2-cf55b4270460
Commits

Reviewing files that changed from the base of the PR and between 16be2ee and beca8af.

Files selected for processing: 2

  • crates/bitty-plugin-host/src/official_catalog.rs
  • validation-pins.env

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@Xuepoo
Xuepoo force-pushed the ctx-1923/chore-bar-catalog-pin branch from beca8af to 6a9b103 Compare November 21, 2026 04:32
@Xuepoo

Xuepoo commented Nov 21, 2026

Copy link
Copy Markdown
Contributor Author

Re-pushed as 6a9b103e: the failing tests were correct. crates/bitty-terminal/tests/fixtures/official/bar/bitty-plugin.toml still served the old manifest bytes (sha256 327837b4…), so the official-install path compared them against the new catalog hash (bb851e7a…) and failed closed. The fixture now carries the manifest from the pinned Bar revision; cargo nextest run -p bitty-terminal --test cli_plugin is 54/54.

@Xuepoo Xuepoo left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guard review of PR #3289 @ 6a9b103: fixture bytes now match the pinned Bar revision exactly; diff is data-only, target-dir test run 54/54, all CI buckets pass or skipping.

  1. PASS — Diff scope: git diff 16be2eef..6a9b103e --stat = 3 files, 13 insertions / 9 deletions: crates/bitty-plugin-host/src/official_catalog.rs (SOURCE_REVISION + 3 pin/manifest_hash pairs only), crates/bitty-terminal/tests/fixtures/official/bar/bitty-plugin.toml, validation-pins.env. All hunks are catalog data, fixture manifest bytes, or a pin bump; no production logic changed anywhere in the diff.
  2. PASS — Fixture consistency: sha256sum crates/bitty-terminal/tests/fixtures/official/bar/bitty-plugin.toml = bb851e7aa9e5762ab114533a48d0a15d44b2c2acf8fd26613d30e1669cbad512, equal to the catalog manifest_hash for bitty-terminal.bar (crates/bitty-plugin-host/src/official_catalog.rs:48). Independently cross-checked: the manifest fetched from bitty-terminal/bar @ d26e65c8be6eea5db02a8d2d723a826b48816fac (GitHub contents API) is byte-identical to the fixture with the same sha256 — genuine pinned-revision bytes, not a hand-edited lookalike. The comparing path is real: crates/bitty-terminal/tests/cli_plugin.rs:2590 rejects a tampered manifest (exit 4, "manifest hash mismatch") and :2518 installs the official Bar from this fixture.
  3. PASS — Catalog pin: crates/bitty-plugin-host/src/official_catalog.rs:17 SOURCE_REVISION = 8b608db41dba524a0c30afb771d18c698ad3b1a8, matching validation-pins.env:31 BITTY_PLUGINS_REV; Bar entry official_catalog.rs:44-48 records id bitty-terminal.bar, pin d26e65c8be6eea5db02a8d2d723a826b48816fac, manifest_hash sha256:bb851e7a…; the lone-workspace default ships in the pinned manifest itself (fixture :147 show_single = { type = "bool", default = true }, English comment :118-121). All comments in the touched files are English; no hardcoded host, path, or environment values in any hunk.
  4. PASS — Test evidence: with CARGO_TARGET_DIR=/mnt/data/Workspace/Projects/bitty-terminal/.targets/ctx-1923 (warm, 1.1G), ran cargo nextest run -p bitty-terminal --test cli_plugin (the filter the re-push note names) → Summary: 54 tests run: 54 passed, 0 skipped. Includes plugin_install_by_official_id_fetches_pin_and_records_registry_source, the official-install Bar test that failed on the prior push. Full test run; no cargo-check fallback needed.
  5. PASS — Commit hygiene: HEAD 6a9b103 subject = "[CTX-1923] chore(release): pin the Bar lone-workspace default in the embedded catalog" — [CTX-1923] prefix present.
  6. PASS — CI buckets: gh pr checks 3289 shows 18 pass, 3 skipping (CodeRabbit, VM tier (main), VM tier (nightly ARM64)); zero failing or pending buckets (Windows check and test, Quality gates 1/2, MSRV, Linux X11 + Wayland, macOS ARM64, AUR, Supply chain, CodeQL, Analyze, compat matrices, VM tier PR all pass).

Independent review by guard subagent, tick 2026-11-21 13:20 CST, reviewed sha 6a9b103
VERDICT: APPROVE

@Xuepoo
Xuepoo merged commit c76d981 into main Nov 21, 2026
21 checks passed
@Xuepoo
Xuepoo deleted the ctx-1923/chore-bar-catalog-pin branch November 21, 2026 05:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:release Area: release preparation chore Chore / maintenance P1 Priority: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant