mirror of
https://github.com/qwibitai/nanoclaw.git
synced 2026-06-12 18:11:51 +08:00
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:
@@ -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 } : {}),
|
||||
|
||||
Reference in New Issue
Block a user