From 375ef252abad0ba56ddb2d350b02ab85d0590622 Mon Sep 17 00:00:00 2001 From: hkfires <10558748+hkfires@users.noreply.github.com> Date: Sat, 27 Dec 2025 19:30:21 +0800 Subject: [PATCH] docs(config): clarify merge mapping behavior --- internal/config/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/config/config.go b/internal/config/config.go index eca071f3..ee0cbd91 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -817,8 +817,8 @@ func getOrCreateMapValue(mapNode *yaml.Node, key string) *yaml.Node { } // mergeMappingPreserve merges keys from src into dst mapping node while preserving -// key order and comments of existing keys in dst. Unknown keys from src are appended -// to dst at the end, copying their node structure from src. +// key order and comments of existing keys in dst. Unknown keys from src are skipped +// so the original config structure is preserved without introducing defaults. func mergeMappingPreserve(dst, src *yaml.Node) { if dst == nil || src == nil { return