From 17013f459f7b57d70793c269793de7d61a782090 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 25 Dec 2025 12:13:04 +0800 Subject: [PATCH] Update .gitignore and Refactor Path Resolution in Config - Added MULTI_TURN_DESIGN.md to .gitignore to prevent tracking of design documents in the test directory. - Refactored the LoadWithRoot function in config.go for improved readability by adjusting indentation for the absolute path resolution logic. --- .gitignore | 1 + config/config.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index b07839c0..d11f893d 100644 --- a/.gitignore +++ b/.gitignore @@ -52,3 +52,4 @@ coverage.html agent/assistant/hook/*.test.md agent/search/TODO.md agent/search/job-logs.txt +agent/test/MULTI_TURN_DESIGN.md diff --git a/config/config.go b/config/config.go index 945b48f9..1d932fbf 100644 --- a/config/config.go +++ b/config/config.go @@ -130,7 +130,7 @@ func LoadWithRoot(root string) Config { if root != "" { cfg.Root, _ = filepath.Abs(root) } else { - cfg.Root, _ = filepath.Abs(cfg.Root) + cfg.Root, _ = filepath.Abs(cfg.Root) } // App Root