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
+2
View File
@@ -1,6 +1,7 @@
# Changelog
## [Unreleased]
### Added
- Exported `ModeChangeEntry` type for tracking agent mode transitions
@@ -64,6 +65,7 @@
### Fixed
- Fixed config file parsing to properly handle missing files instead of treating them as errors
- Fixed truncation indicator in truncate tool to use ellipsis character (…) instead of verbose '[truncated]' suffix
- Fixed concurrent shell command execution by de-duplicating in-flight requests for the same command
- Fixed git URL parsing to properly handle URL-encoded characters in hash fragments and reject invalid encodings
+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 });