Merge pull request #2184 from mertyldrm/fix/config-context-warning-leak

fix: remove config-context console.warn that leaks into TUI textbox
This commit is contained in:
YeonGyu-Kim
2026-03-02 23:27:43 +09:00
committed by GitHub

View File

@@ -19,9 +19,6 @@ export function initConfigContext(binary: OpenCodeBinaryType, version: string |
export function getConfigContext(): ConfigContext {
if (!configContext) {
if (process.env.NODE_ENV !== "production") {
console.warn("[config-context] getConfigContext() called before initConfigContext(); defaulting to CLI paths.")
}
const paths = getOpenCodeConfigPaths({ binary: "opencode", version: null })
configContext = { binary: "opencode", version: null, paths }
}