Skip to content

Commit a72cb35

Browse files
committed
fix(config): warn for each unknown key stripped from config
1 parent b11570a commit a72cb35

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/opencode/src/config/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ function stripUnknownKeys(data: unknown): unknown {
8585
const result: Record<string, unknown> = {}
8686
for (const [key, value] of Object.entries(data)) {
8787
if (infoKeys.has(key)) result[key] = value
88+
else log.warn("config key is not recognized and will be ignored", { key })
8889
}
8990
return result
9091
}

0 commit comments

Comments
 (0)