File tree Expand file tree Collapse file tree
packages/opencode/src/acp Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ import {
3030
3131import { Log } from "../util/log"
3232import { pathToFileURL } from "bun"
33+ import { Filesystem } from "../util/filesystem"
3334import { ACPSessionManager } from "./session"
3435import type { ACPConfig } from "./types"
3536import { Provider } from "../provider/provider"
@@ -228,8 +229,7 @@ export namespace ACP {
228229 const metadata = permission . metadata || { }
229230 const filepath = typeof metadata [ "filepath" ] === "string" ? metadata [ "filepath" ] : ""
230231 const diff = typeof metadata [ "diff" ] === "string" ? metadata [ "diff" ] : ""
231- const file = Bun . file ( filepath )
232- const content = ( await file . exists ( ) ) ? await file . text ( ) : ""
232+ const content = ( await Filesystem . exists ( filepath ) ) ? await Filesystem . readText ( filepath ) : ""
233233 const newContent = getNewContent ( content , diff )
234234
235235 if ( newContent ) {
You can’t perform that action at this time.
0 commit comments