Skip to content

Resource-level search shorthand fails after adding search web alias #136

@NianJiuZst

Description

@NianJiuZst

Summary

Running the documented shorthand command mmx search "MiniMax AI latest news" now fails with an unknown command error.

Reproduction

mmx --version
# mmx 1.0.13

mmx search "MiniMax AI latest news" --output json

Actual behavior

Unknown command: mmx search MiniMax AI latest news

Available commands:
  search query    Search the web via MiniMax
  search web      Search the web via MiniMax

Expected behavior

The command should resolve to the web search command, equivalent to:

mmx search query "MiniMax AI latest news" --output json

Notes

This appears to be caused by the command registry auto-forwarding only when a resource group has exactly one child command. The search web alias points to the same implementation as search query, but it makes the search group have two children, so the shorthand no longer forwards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions