From 8f4bcf19128fb9eca6dde7d22276a582e8084d7d Mon Sep 17 00:00:00 2001 From: Bin Date: Wed, 1 Jul 2026 17:19:44 +0800 Subject: [PATCH] fix: correct \ URL to mimo.xiaomi.com in config The \ field was pointing to opencode.ai/config.json which is incorrect for MiMo Code. Update all occurrences to use the correct URL: https://mimo.xiaomi.com/mimocode/config.json Fixes #1369 --- packages/opencode/src/config/config.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/opencode/src/config/config.ts b/packages/opencode/src/config/config.ts index de7a9b9f3..7cd7ecbc6 100644 --- a/packages/opencode/src/config/config.ts +++ b/packages/opencode/src/config/config.ts @@ -557,8 +557,8 @@ export const layer = Layer.effect( yield* Effect.promise(() => resolveLoadedPlugins(data, options.path)) if (!data.$schema) { - data.$schema = "https://opencode.ai/config.json" - const updated = text.replace(/^\s*\{/, '{\n "$schema": "https://opencode.ai/config.json",') + data.$schema = "https://mimo.xiaomi.com/mimocode/config.json" + const updated = text.replace(/^\s*\{/, '{\n "$schema": "https://mimo.xiaomi.com/mimocode/config.json",') yield* fs.writeFileString(options.path, updated).pipe(Effect.catch(() => Effect.void)) } return data @@ -586,7 +586,7 @@ export const layer = Layer.effect( .then(async (mod) => { const { provider, model, ...rest } = mod.default if (provider && model) result.model = `${provider}/${model}` - result["$schema"] = "https://opencode.ai/config.json" + result["$schema"] = "https://mimo.xiaomi.com/mimocode/config.json" result = mergeDeep(result, rest) await fsNode.writeFile(path.join(Global.Path.config, "config.json"), JSON.stringify(result, null, 2)) await fsNode.unlink(legacy) @@ -736,7 +736,7 @@ export const layer = Layer.effect( } const wellknown = (yield* Effect.promise(() => response.json())) as { config?: Record } const remoteConfig = wellknown.config ?? {} - if (!remoteConfig.$schema) remoteConfig.$schema = "https://opencode.ai/config.json" + if (!remoteConfig.$schema) remoteConfig.$schema = "https://mimo.xiaomi.com/mimocode/config.json" const source = `${url}/.well-known/opencode` const next = yield* loadConfig(JSON.stringify(remoteConfig), { dir: path.dirname(source),