Skip to content

fix: preserve commands.list metadata#64147

Merged
frankekn merged 1 commit into
mainfrom
fix/commands-list-followup
Apr 10, 2026
Merged

fix: preserve commands.list metadata#64147
frankekn merged 1 commit into
mainfrom
fix/commands-list-followup

Conversation

@frankekn

Copy link
Copy Markdown
Contributor

Summary

  • keep dynamic skill commands categorized as tools in commands.list
  • include provider-aware plugin nativeName metadata even when scope=text
  • add regression coverage for both paths

Validation

  • pnpm exec vitest run src/auto-reply/commands-registry.test.ts src/gateway/server-methods/commands.test.ts
    • passed (2 files, 42 tests)
  • OPENCLAW_LOCAL_CHECK=0 pnpm tsgo
    • still fails on existing origin/main baseline issues in src/agents/provider-request-config.ts, src/media-understanding/runner.entries.ts, and unrelated pre-existing test typing lanes

Context

Follow-up to #62656 after post-merge review comments identified two missing metadata cases.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: S maintainer Maintainer-authored PR labels Apr 10, 2026
@greptile-apps

greptile-apps Bot commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR fixes two metadata gaps in the commands.list RPC introduced by #62656: skill commands now carry category: "tools" (via buildSkillCommandDefinitions) so clients can group them correctly, and nativeName is now preserved in mapCommand for non-text-scoped commands even when the request uses scope=text, letting clients map text-surface entries back to their native aliases. Regression tests for both paths are included.

Confidence Score: 5/5

Safe to merge; changes are narrow, well-tested, and correct.

Both fixes are targeted and clearly correct — category: tools on skill commands and the cmd.scope === text guard in mapCommand align exactly with the intent described in the PR. New regression tests cover both paths. The only finding is a P2 changelog placement style issue (entry inserted at the top of ### Fixes instead of appended to the end), which does not affect correctness or behavior.

No files require special attention.

Prompt To Fix All With AI
This is a comment left during a code review.
Path: CHANGELOG.md
Line: 20

Comment:
**Changelog entry inserted at top of section**

Per the repo guideline, new entries should be appended to the **end** of the target section, not inserted at the top. This entry currently sits as the first item under `### Fixes`; it should follow all existing entries in that block.

**Context Used:** CLAUDE.md ([source](https://app.greptile.com/review/custom-context?memory=fd949e91-5c3a-4ab5-90a1-cbe184fd6ce8))

How can I resolve this? If you propose a fix, please make it concise.

Reviews (1): Last reviewed commit: "fix: preserve commands list metadata" | Re-trigger Greptile

Comment thread CHANGELOG.md Outdated

### Fixes

- Gateway: keep `commands.list` skill entries categorized under tools and include provider-aware plugin `nativeName` metadata even when `scope=text`, so remote clients can group skills correctly and map text-surface plugin commands back to native aliases.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Changelog entry inserted at top of section

Per the repo guideline, new entries should be appended to the end of the target section, not inserted at the top. This entry currently sits as the first item under ### Fixes; it should follow all existing entries in that block.

Context Used: CLAUDE.md (source)

Prompt To Fix With AI
This is a comment left during a code review.
Path: CHANGELOG.md
Line: 20

Comment:
**Changelog entry inserted at top of section**

Per the repo guideline, new entries should be appended to the **end** of the target section, not inserted at the top. This entry currently sits as the first item under `### Fixes`; it should follow all existing entries in that block.

**Context Used:** CLAUDE.md ([source](https://app.greptile.com/review/custom-context?memory=fd949e91-5c3a-4ab5-90a1-cbe184fd6ce8))

How can I resolve this? If you propose a fix, please make it concise.

@frankekn

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Hooray!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@frankekn
frankekn force-pushed the fix/commands-list-followup branch from 24c4d70 to 46b6695 Compare April 10, 2026 07:34
@frankekn
frankekn merged commit 360955a into main Apr 10, 2026
10 checks passed
@frankekn
frankekn deleted the fix/commands-list-followup branch April 10, 2026 07:35
steipete pushed a commit that referenced this pull request Apr 10, 2026
lovewanwan pushed a commit to lovewanwan/openclaw that referenced this pull request Apr 28, 2026
ogt-redknie pushed a commit to ogt-redknie/OPENX that referenced this pull request May 2, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 9, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 24, 2026
jameslcowan pushed a commit to jameslcowan/openclaw that referenced this pull request Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant