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:
@@ -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
|
||||
|
||||
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user