diff options
| author | ShoeBoom <[email protected]> | 2026-01-13 00:11:26 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-12 23:11:26 -0600 |
| commit | c0b214232d8820f53c6a9f7fc1d38334012417db (patch) | |
| tree | d7ebe9ccb16999bc99f9e392f12c9c975f290f0e /packages | |
| parent | f4f8f2d15134ccd7b5538687cc1e50f6dc652989 (diff) | |
| download | opencode-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.ts | 2 |
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) { |
