xonecas.io
64875
Mc

mini-coder / commit 886d8f2

fix: remove dead openai cache branch and spurious ts-expect-error in spinner test

xonecas2026-03-14 886d8f2303679a6acdb09e3867be35fc98b2e3ba parent fcb7284

2 files changed

src/cli/spinner.test.ts+0−2
@@ -25,7 +25,6 @@ describe("Spinner", () => {
2525 stderr += text;
2626 return true;
2727 }) as typeof process.stderr.write;
28- // @ts-expect-error override read-only for test
2928 process.stderr.isTTY = true;
3029
3130 try {
@@ -37,7 +36,6 @@ describe("Spinner", () => {
3736 expect(stderr).not.toContain("\n");
3837 } finally {
3938 process.stderr.write = originalWrite;
40- // @ts-expect-error override read-only for test
4139 process.stderr.isTTY = originalIsTTY;
4240 }
4341 });
src/llm-api/providers.ts+1−7
@@ -294,7 +294,7 @@ interface CachingOptions {
294294 googleExplicitCachingCompatible?: boolean;
295295 }
296296
297-type CacheFamily = "openai" | "google" | "anthropic" | "none";
297+type CacheFamily = "google" | "anthropic" | "none";
298298
299299 export function getCacheFamily(modelString: string): CacheFamily {
300300 const { provider, modelId } = parseModelString(modelString);
@@ -324,12 +324,6 @@ export function getCachingProviderOptions(
324324
325325 const family = getCacheFamily(modelString);
326326
327- if (family === "openai") {
328- return {
329- openai: { promptCacheRetention: opts.openaiRetention ?? "in_memory" },
330- };
331- }
332-
333327 if (
334328 family === "google" &&
335329 opts.googleCachedContent &&