diff --git a/packages/coding-agent/CHANGELOG.md b/packages/coding-agent/CHANGELOG.md index 9a0d1274d..7b20003a1 100644 --- a/packages/coding-agent/CHANGELOG.md +++ b/packages/coding-agent/CHANGELOG.md @@ -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 diff --git a/packages/coding-agent/src/config.ts b/packages/coding-agent/src/config.ts index b8cd32213..706969c5b 100644 --- a/packages/coding-agent/src/config.ts +++ b/packages/coding-agent/src/config.ts @@ -226,7 +226,7 @@ export class ConfigFile implements IConfigFile { } 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 });