Drop Config Info Zod static (#26933)

This commit is contained in:
Kit Langton
2026-05-11 16:49:22 -04:00
committed by GitHub
parent cc95197d72
commit fe7ca3421e
4 changed files with 7 additions and 25 deletions

View File

@@ -251,7 +251,7 @@ test("updates global config and omits empty shell key in jsonc", async () => {
const file = path.join(tmp.path, "opencode.jsonc")
const writtenConfig = await Filesystem.readText(file)
const parsed = ConfigParse.schema(Config.Info.zod, ConfigParse.jsonc(writtenConfig, file), file)
const parsed = ConfigParse.effectSchema(Config.Info, ConfigParse.jsonc(writtenConfig, file), file)
expect(writtenConfig).not.toContain('"shell"')
expect(parsed.shell).toBeUndefined()
expect(parsed.model).toBe("test/model")