fix(opencode): drop obsolete NANOCLAW_IS_MAIN / global CLAUDE.md branch

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) <noreply@anthropic.com>
This commit is contained in:
gavrielc
2026-05-01 17:44:01 +03:00
parent c993527e25
commit c0c46c14d6
@@ -108,9 +108,6 @@ function buildOpenCodeConfig(options: ProviderOptions): Record<string, unknown>
'/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 } : {}),