Skip to content

Make Command Help data-driven from plugin commands and remove dashboard tip#676

Merged
multiplex55 merged 1 commit intomasterfrom
codex/refactor-help-window-and-command-examples
Jan 12, 2026
Merged

Make Command Help data-driven from plugin commands and remove dashboard tip#676
multiplex55 merged 1 commit intomasterfrom
codex/refactor-help-window-and-command-examples

Conversation

@multiplex55
Copy link
Copy Markdown
Owner

Motivation

  • Replace the hard-coded help example table with data-driven content so new plugin commands automatically appear in help.
  • Surface full plugin information in the Command Help dialog including description, capabilities, prefixes, usage and examples derived from plugin metadata.
  • Remove the unrelated Dashboard tip from the Command Help dialog so the window opens directly into command content.
  • Improve filtering so it matches plugin name, description, capabilities and command labels/actions.

Description

  • Stop using the static example_queries() table and instead derive help from each plugin's commands() returned Actions by collecting app.plugins.plugin_infos() and plugin.commands().
  • Render capabilities, computed prefixes (from command labels), usage (command labels), and examples (from Action.action prefixed with query: or fallback to Action.label) in the help UI.
  • Add helper functions matches_filter, command_prefixes, and example_line and import Action and HashSet in src/help_window.rs to implement filtering and presentation logic.
  • Remove the dashboard tip label from the Command Help window and adjust layout to show per-plugin sections sorted by name.

Testing

  • No automated tests were run for this change.
  • The change was compiled and committed as part of the rollout (no test suite executed).

Codex Task

@multiplex55 multiplex55 merged commit 435d102 into master Jan 12, 2026
1 check passed
@multiplex55 multiplex55 deleted the codex/refactor-help-window-and-command-examples branch January 14, 2026 01:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant