From c0c46c14d66e3e82101e2e92b7dc8bef63b2d250 Mon Sep 17 00:00:00 2001 From: gavrielc Date: Fri, 1 May 2026 17:44:01 +0300 Subject: [PATCH] fix(opencode): drop obsolete NANOCLAW_IS_MAIN / global CLAUDE.md branch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit NANOCLAW_IS_MAIN no longer exists in the v2 codebase, and groups/global/ is explicitly migrated away by composeGroupClaudeMd (shared base now lives in container/CLAUDE.md → /app/CLAUDE.md, which the instructions array already includes). Carrying /workspace/global would give OpenCode more context than the Claude provider sees. Co-Authored-By: Claude Opus 4.7 (1M context) --- container/agent-runner/src/providers/opencode.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/container/agent-runner/src/providers/opencode.ts b/container/agent-runner/src/providers/opencode.ts index 2628eb8e3..d1ae0786c 100644 --- a/container/agent-runner/src/providers/opencode.ts +++ b/container/agent-runner/src/providers/opencode.ts @@ -108,9 +108,6 @@ function buildOpenCodeConfig(options: ProviderOptions): Record '/workspace/agent/.claude-fragments/*.md', '/workspace/agent/CLAUDE.local.md', ]; - if (process.env.NANOCLAW_IS_MAIN !== '1') { - instructions.push('/workspace/global/CLAUDE.md'); - } return { ...(model ? { model } : {}),