From 4ac9d60c6ea58232eee55cf839f37749e06f4d9c Mon Sep 17 00:00:00 2001 From: Terada Kousuke Date: Fri, 10 Apr 2026 17:35:08 +0900 Subject: [PATCH] fix(guardrails): use project-scoped path for team worktree (Issue #155) The yard() function was creating directories in the parent directory (e.g. ~/Developer/.opencode-opencode-team) instead of within the project. Changed to use .opencode/team inside the project directory, matching the established project-scoped pattern. Co-Authored-By: Claude Opus 4.6 (1M context) --- packages/guardrails/profile/plugins/team.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/guardrails/profile/plugins/team.ts b/packages/guardrails/profile/plugins/team.ts index c47851f17aed..a10829bca40f 100644 --- a/packages/guardrails/profile/plugins/team.ts +++ b/packages/guardrails/profile/plugins/team.ts @@ -223,7 +223,7 @@ function patch(dir: string, run: string, id: string) { } function yard(dir: string) { - return path.join(path.dirname(dir), `.${path.basename(dir)}-opencode-team`) + return path.join(dir, ".opencode", "team") } function isRun(data: unknown): data is Run {