From 0a5062166444ae1643d4958a89db5fcfe42c59f8 Mon Sep 17 00:00:00 2001 From: Haitao Pan Date: Sat, 27 Jun 2026 06:44:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(acp):=20remove=20orphaned=20S1=20test=20(he?= =?UTF-8?q?lper=20reverted)=20=E2=80=94=20keep=20main=20compiling?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 --- .../acp/orchestrator_s1_artifact_dirs_test.go | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 internal/acp/orchestrator_s1_artifact_dirs_test.go diff --git a/internal/acp/orchestrator_s1_artifact_dirs_test.go b/internal/acp/orchestrator_s1_artifact_dirs_test.go deleted file mode 100644 index 29e98b3..0000000 --- a/internal/acp/orchestrator_s1_artifact_dirs_test.go +++ /dev/null @@ -1,19 +0,0 @@ -package acp -import "testing" -func TestS1DefaultExpectedArtifactDirs(t *testing.T) { - // 任务消息要求产出 md → 推断 requiredExts,但未声明 expectedArtifactDirs → 应补缺省目录 - c := openClawArtifactContractForParams( - map[string]any{}, map[string]any{"message": "采集最新AI资讯,保存在md文件"}) - if len(c.ExpectedArtifactDirs) == 0 { - t.Fatalf("expected default artifact dirs for an md-producing task, got none") - } - if !c.RequiresArtifactExport { - t.Fatalf("expected RequiresArtifactExport=true when default dirs applied") - } - // 纯聊天(无产物意图)→ 不应补目录、不应强制导出 - c2 := openClawArtifactContractForParams( - map[string]any{}, map[string]any{"message": "你好,介绍一下你自己"}) - if len(c2.ExpectedArtifactDirs) != 0 || c2.RequiresArtifactExport { - t.Fatalf("pure chat should not get default dirs / forced export, got dirs=%v export=%v", c2.ExpectedArtifactDirs, c2.RequiresArtifactExport) - } -}