diff --git a/packages/ai/test/xai-oauth-bundle.test.ts b/packages/ai/test/xai-oauth-bundle.test.ts index dfe1656b0..824b2babe 100644 --- a/packages/ai/test/xai-oauth-bundle.test.ts +++ b/packages/ai/test/xai-oauth-bundle.test.ts @@ -13,7 +13,7 @@ import type { Model } from "../src/types"; // // Failure here means: run `bun run generate-models` and commit the diff. describe("xai-oauth bundled catalog (regression)", () => { - const bundled = (MODELS_JSON as Record>)["xai-oauth"] ?? {}; + const bundled = (MODELS_JSON as Record>>)["xai-oauth"] ?? {}; const seed = buildXaiOAuthStaticSeed(); it("bundles every curated id", () => { diff --git a/packages/coding-agent/test/core/hashline.test.ts b/packages/coding-agent/test/core/hashline.test.ts index 3af6c7bbf..8e05d9890 100644 --- a/packages/coding-agent/test/core/hashline.test.ts +++ b/packages/coding-agent/test/core/hashline.test.ts @@ -1107,7 +1107,7 @@ describe("hashline — anchor-stale recovery via read snapshot cache", () => { }); // First edit lands cleanly against v0: line 5 becomes L5-FIRST. - const firstInput = `${header("a.ts", v0Text)}\n${sameLineRange(tag(5, "L5"))}:\n${extra(pl("L5-FIRST"))}\n`; + const firstInput = `${header("a.ts", v0Text)}\n${sameLineRange(tag(5, "L5"))}:\n${repl("L5-FIRST")}\n`; await executeHashlineSingle(hashlineExecuteOptions(tempDir, firstInput, undefined, session)); const v1Lines = [...v0Lines]; @@ -1118,7 +1118,7 @@ describe("hashline — anchor-stale recovery via read snapshot cache", () => { // again targets line 5 — the very line the first edit rewrote. // Recovery must refuse so the model re-reads instead of silently // overwriting L5-FIRST with payload authored against L5. - const secondInput = `${header("a.ts", v0Text)}\n${sameLineRange(tag(5, "L5"))}:\n${extra(pl("L5-SECOND"))}\n`; + const secondInput = `${header("a.ts", v0Text)}\n${sameLineRange(tag(5, "L5"))}:\n${repl("L5-SECOND")}\n`; await expect( executeHashlineSingle(hashlineExecuteOptions(tempDir, secondInput, undefined, session)), ).rejects.toThrow(HashlineMismatchError);