hermes - 💡(How to fix) Fix Feature request: support command description override via config.yaml

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Code Example

commands:
  descriptions:
    new: "开始新会话"
    help: "显示帮助信息"
    # ... other commands
RAW_BUFFERClick to expand / collapse

Feature Request: command description override via config.yaml

Problem

Currently, descriptions in COMMAND_REGISTRY are hardcoded in English. When platforms like Telegram or Discord register bot commands, all users see English descriptions regardless of locale.

Proposed Solution

Add support for overriding command descriptions via config.yaml, without modifying source code. This allows:

  • Users to customize command descriptions in their preferred language
  • Config survives upgrades (no source code changes needed)
  • Per-platform overrides possible (Telegram vs Discord descriptions could differ)

Suggested config structure

commands:
  descriptions:
    new: "开始新会话"
    help: "显示帮助信息"
    # ... other commands

Alternatives Considered

  • Hardcoded translations in source code (rejected — not scalable, pollutes codebase)
  • Full i18n with locale files (more complex, out of scope for this request)

This approach is minimal, non-invasive, and lets users opt-in to custom descriptions they want.

extent analysis

TL;DR

To support command description overrides, add a commands section to config.yaml with customizable descriptions for each command.

Guidance

  • Review the proposed config.yaml structure to ensure it aligns with your application's configuration parsing logic.
  • Implement logic to read and apply command descriptions from config.yaml when registering bot commands with platforms like Telegram or Discord.
  • Consider adding validation to ensure that the config.yaml file is properly formatted and contains the expected command descriptions.
  • Test the implementation with different locales and platforms to verify that the custom descriptions are correctly applied.

Example

commands:
  descriptions:
    new: "开始新会话"
    help: "显示帮助信息"

This example shows how the config.yaml file might be structured to support command description overrides.

Notes

This solution assumes that the application currently reads configuration from a config.yaml file and has a mechanism for registering bot commands with platforms like Telegram or Discord.

Recommendation

Apply workaround by implementing the proposed config.yaml structure and reading the custom command descriptions in your application code, as this approach is minimal and non-invasive.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

hermes - 💡(How to fix) Fix Feature request: support command description override via config.yaml