Skip to content

Comments

fix: resolve workspace templates when installed as openclaw-aimlapi#1

Open
uniuuu wants to merge 1 commit intoaimlapi:feature/add-aimlapi-models-providerfrom
uniuuu:feature/add-aimlapi-models-provider
Open

fix: resolve workspace templates when installed as openclaw-aimlapi#1
uniuuu wants to merge 1 commit intoaimlapi:feature/add-aimlapi-models-providerfrom
uniuuu:feature/add-aimlapi-models-provider

Conversation

@uniuuu
Copy link

@uniuuu uniuuu commented Feb 21, 2026

Problem:
When installed via npm install -g openclaw-aimlapi, the gateway fails on every agent run with:

run error: Error: Missing workspace template: AGENTS.md (/home/ubuntu/docs/reference/templates/AGENTS.md). Ensure docs/reference/templates are packaged.

Root cause:
resolveOpenClawPackageRoot() in src/infra/openclaw-root.ts walks ancestor directories looking for a package.json whose name is in CORE_PACKAGE_NAMES. That set only contained openclaw, so when installed as openclaw-aimlapi the root was never found, the template directory resolved to cwd instead of the package root, and the lookup failed.

Fix:
Add openclaw-aimlapi to CORE_PACKAGE_NAMES.

| Ubuntu 24.04 |
| Node.js | v25.6.1 |
| npm | 11.9.0 |
| openclaw-aimlapi | 2026.2.20 |

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant