Skip to content

fix(capabilities): read openclaw host-compat from package.json#404

Open
claytonlin1110 wants to merge 1 commit into
vouchdev:testfrom
claytonlin1110:fix/host-compat-manifest-path
Open

fix(capabilities): read openclaw host-compat from package.json#404
claytonlin1110 wants to merge 1 commit into
vouchdev:testfrom
claytonlin1110:fix/host-compat-manifest-path

Conversation

@claytonlin1110

Copy link
Copy Markdown
Contributor

summary

test plan

  • tests/test_capabilities.py — all pass, including the two previously-failing drift-detection tests
  • tests/test_openclaw_plugin_manifest.py — still green (confirms the manifest's dead-dialect-fields invariant is untouched)
  • ruff check clean
  • mypy src clean (no new errors)

🤖 Generated with Claude Code

kb.capabilities' host_compat block read openclaw.compat.pluginApi from
openclaw.plugin.json, but the manifest deliberately excludes a
top-level "openclaw" key (test_openclaw_plugin_manifest.py's
dead-dialect-fields check) -- so _load_host_compat() always returned
{}, failing the vouchdev#237 drift tests unconditionally. package.json is the
one place openclaw.compat.pluginApi actually lives; point the reader
(and the mirroring test fixture) there instead.
@coderabbitai

coderabbitai Bot commented Jul 6, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: bbb672d0-edb0-43d8-b841-c132b1276e76

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added mcp mcp, jsonl, and http surfaces tests tests and fixtures size: S 50-199 changed non-doc lines labels Jul 6, 2026
@claytonlin1110

Copy link
Copy Markdown
Contributor Author

@plind-junior Hi, would you review plz?

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

Labels

mcp mcp, jsonl, and http surfaces size: S 50-199 changed non-doc lines tests tests and fixtures

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant