Bake in thread directives

This commit is contained in:
Codex
2026-05-21 13:05:53 +00:00
parent 1a74c02173
commit d00cdd8e9f
17 changed files with 518 additions and 61 deletions

View File

@@ -199,11 +199,12 @@ func TestValidateWorkspacePath(t *testing.T) {
if _, err := ValidateWorkspacePath("/"); err == nil {
t.Fatal("filesystem root should be rejected")
}
clean, err := ValidateWorkspacePath("/tmp/../tmp/project")
input := string(filepath.Separator) + filepath.Join("tmp", "..", "tmp", "project")
clean, err := ValidateWorkspacePath(input)
if err != nil {
t.Fatal(err)
}
if clean != "/tmp/project" {
if clean != filepath.Join(string(filepath.Separator), "tmp", "project") {
t.Fatalf("unexpected clean path: %s", clean)
}
}