From c0b214232d8820f53c6a9f7fc1d38334012417db Mon Sep 17 00:00:00 2001 From: ShoeBoom <15147944+ShoeBoom@users.noreply.github.com> Date: Tue, 13 Jan 2026 00:11:26 -0500 Subject: [PATCH] fix(config): handle write errors when updating schema in opencode config (#8125) --- packages/opencode/src/config/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/opencode/src/config/config.ts b/packages/opencode/src/config/config.ts index 127406d1d..bf4a6035b 100644 --- a/packages/opencode/src/config/config.ts +++ b/packages/opencode/src/config/config.ts @@ -1159,7 +1159,7 @@ export namespace Config { if (parsed.success) { if (!parsed.data.$schema) { parsed.data.$schema = "https://opencode.ai/config.json" - await Bun.write(configFilepath, JSON.stringify(parsed.data, null, 2)) + await Bun.write(configFilepath, JSON.stringify(parsed.data, null, 2)).catch(() => {}) } const data = parsed.data if (data.plugin) {