fix: address PR review comments for OpenClaw adapter

- Remove legacy clawdbot path checks from OpenClawAdapter.isDetected()
  so pure clawdbot workspaces are not hijacked by OpenClaw detection
- Add '.openclaw/agents' to ALL_AGENT_DISCOVERY_PATHS so agent
  discovery works for OpenClaw agent directories
This commit is contained in:
Lumina Mao
2026-04-07 10:56:56 +01:00
committed by Rohit Ghumare
parent 8d79bb6101
commit 3c82cc5950
2 changed files with 2 additions and 6 deletions
+1 -6
View File
@@ -90,15 +90,10 @@ ${skillsXml}
const globalOpenClaw = join(homedir(), '.openclaw');
// OpenClaw config file
const openclawConfig = join(process.cwd(), 'openclaw.json');
// Legacy clawdbot paths
const globalClawdbot = join(homedir(), '.clawdbot');
const clawdbotConfig = join(process.cwd(), 'clawdbot.json');
return (
(existsSync(projectSkills) && existsSync(globalOpenClaw)) ||
existsSync(openclawConfig) ||
existsSync(globalClawdbot) ||
existsSync(clawdbotConfig)
existsSync(openclawConfig)
);
}
}
+1
View File
@@ -278,6 +278,7 @@ export const ALL_AGENT_DISCOVERY_PATHS = [
'.cline/agents',
'.clawdbot/agents',
'.codebuddy/agents',
'.openclaw/agents',
'.codex/agents',
'.commandcode/agents',
'.continue/agents',