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.
This commit is contained in:
Max 2025-12-25 12:13:04 +08:00
parent 8223a44885
commit 17013f459f
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View file

@ -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

View file

@ -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