From 3c2b6e8121d85d7233ccfdf8ce1999e937c03411 Mon Sep 17 00:00:00 2001 From: mingmxren Date: Wed, 4 Mar 2026 01:58:58 +0800 Subject: [PATCH] fix(onboard): skip legacy AGENT.md when copying embedded workspace templates The workspace/ directory contains both AGENT.md (legacy) and AGENTS.md (current). copyEmbeddedToTarget was copying both, causing the test TestCopyEmbeddedToTargetUsesAgentsMarkdown to fail. Skip AGENT.md during the walk to match the expected behavior. Co-Authored-By: Claude Opus 4.6 --- cmd/picoclaw/internal/onboard/helpers.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/picoclaw/internal/onboard/helpers.go b/cmd/picoclaw/internal/onboard/helpers.go index 4db8bdc8b..6acc64eef 100644 --- a/cmd/picoclaw/internal/onboard/helpers.go +++ b/cmd/picoclaw/internal/onboard/helpers.go @@ -70,6 +70,11 @@ func copyEmbeddedToTarget(targetDir string) error { return nil } + // Skip legacy file superseded by AGENTS.md + if filepath.Base(path) == "AGENT.md" { + return nil + } + // Read embedded file data, err := embeddedFiles.ReadFile(path) if err != nil {