fix(config): preserve template path on set
Merged
AY
3mo ago+163+163+012345678901234567890123456789-1-1-0123456789
Summary
- preserve
templatePathwhencommit-echo config setupdates unrelated keys - add
templatePathto the supportedconfig setkeys - validate that a configured template path exists before saving it
- add regression coverage for preserving, updating, and rejecting missing template paths
Closes #283
Test Plan
npm run buildnode --test tests/config-command.test.mjsnpm run format:checkgit diff --check
Also ran npm test; the full suite had two existing environment/interactive E2E failures around unstaged-change prompts/show-diff output, while the config-focused regression suite passed.
Summary by CodeRabbit
-
New Features
- Added support for configuring a template file path.
- Template paths are stored as absolute paths and can be cleared with an empty value.
- Invalid paths, missing files, and directories are rejected.
-
Bug Fixes
- Template path settings are preserved when updating other configuration values.