Skip to content

Commit 4169d70

Browse files
t3dotggclaude
andcommitted
fix(usage): drop Muse cache migration main no longer needs
Main never stored Muse entries in the usage scan cache, so no Muse migration is needed after rebasing onto main's v9 cache. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 68da8ab commit 4169d70

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

‎apps/server/src/usage/usageScanCache.test.ts‎

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -246,25 +246,6 @@ describe("scan cache round trip", () => {
246246
},
247247
);
248248

249-
it("reparses Muse history from v8 caches without discarding unavailable history or invalidating other providers", () => {
250-
const original = cacheWith([["/claude.jsonl", 100, [record()]]]);
251-
const muse = {
252-
...original.get("/claude.jsonl")!,
253-
provider: "muse" as const,
254-
records: [record({ provider: "muse", model: "review-model" })],
255-
};
256-
original.set("/muse/session.jsonl", muse);
257-
const encoded = encodeScanCache(original);
258-
const restored = decodeScanCache({ ...encoded, version: 8 }, TEST_FORMAT_MAP);
259-
expect(restored.get("/muse/session.jsonl")).toEqual({
260-
...muse,
261-
size: -1,
262-
position: { resumeOffset: 0, guardLength: 0, guardHash: 0, state: null },
263-
});
264-
expect(restored.get("/claude.jsonl")).toEqual(original.get("/claude.jsonl"));
265-
expect(decodeScanCache(encoded, TEST_FORMAT_MAP)).toEqual(original);
266-
});
267-
268249
it("rewrites only changed entries and still restores the whole cache", () => {
269250
const write = makeScanCacheWriter();
270251
const cache = cacheWith([

0 commit comments

Comments
 (0)