fix(coding-agent): fixed config file parsing to handle missing files gracefully

- Fixed config file parsing to properly handle missing files instead of treating them as errors.
This commit is contained in:
can1357
2026-02-06 03:02:54 +01:00
parent de397b3b04
commit 2a76b6de59
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -226,7 +226,7 @@ export class ConfigFile<T> implements IConfigFile<T> {
}
return this.#storeCache({ value: parsed, status: "ok" });
} catch (error) {
if (!isEnoent(error)) {
if (isEnoent(error)) {
return this.#storeCache({ status: "not-found" });
}
logger.warn("Failed to parse config file", { path: this.path(), error });