summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
authorShoeBoom <[email protected]>2026-01-13 00:11:26 -0500
committerGitHub <[email protected]>2026-01-12 23:11:26 -0600
commitc0b214232d8820f53c6a9f7fc1d38334012417db (patch)
treed7ebe9ccb16999bc99f9e392f12c9c975f290f0e /packages
parentf4f8f2d15134ccd7b5538687cc1e50f6dc652989 (diff)
downloadopencode-c0b214232d8820f53c6a9f7fc1d38334012417db.tar.gz
opencode-c0b214232d8820f53c6a9f7fc1d38334012417db.zip
fix(config): handle write errors when updating schema in opencode config (#8125)
Diffstat (limited to 'packages')
-rw-r--r--packages/opencode/src/config/config.ts2
1 files changed, 1 insertions, 1 deletions
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) {