refactor: stabilize runtime and unify config

This commit is contained in:
lpf
2026-03-14 21:40:12 +08:00
parent 60eee65fec
commit 341e578c9f
75 changed files with 3081 additions and 1627 deletions

View File

@@ -101,3 +101,14 @@ func TestMemorySearchToolNamespaceIsolation(t *testing.T) {
t.Fatalf("namespace isolation violated, coder search leaked main data: %s", coderRes)
}
}
func TestParseMemoryNamespaceArgUsesHelper(t *testing.T) {
t.Parallel()
if got := parseMemoryNamespaceArg(map[string]interface{}{"namespace": "Coder Agent"}); got != "coder-agent" {
t.Fatalf("unexpected namespace parse result: %q", got)
}
if got := parseMemoryNamespaceArg(nil); got != "main" {
t.Fatalf("expected main namespace for nil args, got %q", got)
}
}