From 2dcca4755d644b2ec66c7a284484101609db210b Mon Sep 17 00:00:00 2001 From: Aiden Cline Date: Sun, 18 Jan 2026 09:47:18 -0600 Subject: [PATCH] fix: import issue in patch module --- packages/opencode/src/patch/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/opencode/src/patch/index.ts b/packages/opencode/src/patch/index.ts index 888a4d94b..0efeff544 100644 --- a/packages/opencode/src/patch/index.ts +++ b/packages/opencode/src/patch/index.ts @@ -1,6 +1,7 @@ import z from "zod" import * as path from "path" import * as fs from "fs/promises" +import { readFileSync } from "fs" import { Log } from "../util/log" export namespace Patch { @@ -311,7 +312,7 @@ export namespace Patch { // Read original file content let originalContent: string try { - originalContent = require("fs").readFileSync(filePath, "utf-8") + originalContent = readFileSync(filePath, "utf-8") } catch (error) { throw new Error(`Failed to read file ${filePath}: ${error}`) }