From bff4d0684b6963a5f37062460efca918d4c16d01 Mon Sep 17 00:00:00 2001 From: Cristhofer Pincetti Date: Sat, 29 Aug 2026 13:06:16 -0400 Subject: [PATCH] test: read bundled command-code version from the manifest Catalog sync PRs fail when a test pins an old CLI version. Assert startup.json matches manifest.json instead. Co-authored-by: Cursor --- CHANGELOG.md | 4 ++++ tests/unit/plugin.test.ts | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cc3adb5..30682c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Catalog refresh and post-release manifest PRs auto-merge when required CI is green. +### Fixed + +- Startup summary test reads the bundled command-code version from the manifest instead of pinning one release. + ## [0.7.0] - 2026-08-28 ### Changed diff --git a/tests/unit/plugin.test.ts b/tests/unit/plugin.test.ts index 76dea1c..e98490c 100644 --- a/tests/unit/plugin.test.ts +++ b/tests/unit/plugin.test.ts @@ -195,9 +195,11 @@ test("startup summary uses bundled manifest version and status", async () => { const summary = JSON.parse(readFileSync(join(testStateDir, "startup.json"), "utf-8")); const manifest = JSON.parse(readFileSync(join(repoRoot, "manifest.json"), "utf-8")) as { status: string; + commandCodeVersion: string; }; expect(summary.catalogSource).toBe("bundled"); - expect(summary.commandCodeVersion).toBe("1.38.1"); + expect(summary.commandCodeVersion).toBe(manifest.commandCodeVersion); + expect(summary.commandCodeVersion).toMatch(/^\d+\.\d+\.\d+/); expect(summary.degraded).toBe(manifest.status === "degraded" || manifest.status === "broken"); expect(summary.modelCount).toBeGreaterThan(20); });