Skip to content

Commit b8eedcf

Browse files
committed
fix(config): add infoKeys sync comment, drop unused cause param
1 parent a72cb35 commit b8eedcf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/opencode/src/config/config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ function normalizeLoadedConfig(data: unknown, source: string) {
7272
return copy
7373
}
7474

75+
// Must stay in sync with Info schema keys below
7576
const infoKeys = new Set([
7677
"$schema", "shell", "logLevel", "server", "command", "skills",
7778
"reference", "watcher", "snapshot", "plugin", "share", "autoshare",
@@ -448,7 +449,7 @@ export const layer = Layer.effect(
448449
parsedOk = true
449450
return result
450451
}).pipe(
451-
Effect.catchCause((cause) =>
452+
Effect.catchCause(() =>
452453
Effect.sync(() => {
453454
log.error("invalid config: config file could not be parsed", { path: source })
454455
return {} as Info

0 commit comments

Comments
 (0)