From 819d09e64e1ef7c49f33ee5f668f37f50e6d61fb Mon Sep 17 00:00:00 2001 From: Dax Date: Wed, 18 Feb 2026 19:20:40 -0500 Subject: [PATCH] refactor: migrate src/storage/json-migration.ts from Bun.file() to Filesystem module (#14123) --- packages/opencode/src/storage/json-migration.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/opencode/src/storage/json-migration.ts b/packages/opencode/src/storage/json-migration.ts index e0684ce3c..268442dcf 100644 --- a/packages/opencode/src/storage/json-migration.ts +++ b/packages/opencode/src/storage/json-migration.ts @@ -7,6 +7,7 @@ import { SessionTable, MessageTable, PartTable, TodoTable, PermissionTable } fro import { SessionShareTable } from "../share/share.sql" import path from "path" import { existsSync } from "fs" +import { Filesystem } from "../util/filesystem" export namespace JsonMigration { const log = Log.create({ service: "json-migration" }) @@ -82,7 +83,7 @@ export namespace JsonMigration { const count = end - start const tasks = new Array(count) for (let i = 0; i < count; i++) { - tasks[i] = Bun.file(files[start + i]).json() + tasks[i] = Filesystem.readJson(files[start + i]) } const results = await Promise.allSettled(tasks) const items = new Array(count)