Skip to content

fix(gateway): add codex runtime telegram alias#25879

Closed
YanzhongSu wants to merge 1 commit into
NousResearch:mainfrom
YanzhongSu:codex/codex-runtime-telegram-alias
Closed

fix(gateway): add codex runtime telegram alias#25879
YanzhongSu wants to merge 1 commit into
NousResearch:mainfrom
YanzhongSu:codex/codex-runtime-telegram-alias

Conversation

@YanzhongSu

@YanzhongSu YanzhongSu commented May 14, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds codex_runtime as an explicit alias for the existing /codex-runtime slash command.

Telegram bot commands cannot contain hyphens, so Hermes exposes hyphenated commands in the Telegram menu with underscores. /codex-runtime already appears to Telegram users as /codex_runtime, but selecting that command could fail to dispatch correctly because codex_runtime was not registered as an alias. This follows the existing /reload-skills and /reload_skills convention instead of adding broader command normalization.

Related Issue

N/A

Type of Change

  • 🐛 Bug fix (non-breaking change that fixes an issue)
  • ✨ New feature (non-breaking change that adds functionality)
  • 🔒 Security fix
  • 📝 Documentation update
  • ✅ Tests (adding or improving test coverage)
  • ♻️ Refactor (no behavior change)
  • 🎯 New skill (bundled or hub)

Changes Made

  • hermes_cli/commands.py: registered codex_runtime as an alias for /codex-runtime.
  • tests/hermes_cli/test_commands.py: added coverage for resolving the alias and for Telegram exposing /codex_runtime rather than the hyphenated form.

How to Test

  1. Run scripts/run_tests.sh tests/hermes_cli/test_commands.py::TestResolveCommand tests/hermes_cli/test_commands.py::TestTelegramBotCommands.
  2. Start the Telegram gateway so Hermes refreshes the bot command menu via set_my_commands.
  3. In Telegram, type /codex and confirm /codex_runtime appears, then select it and confirm it dispatches to the /codex-runtime handler.

Checklist

Code

  • I've read the Contributing Guide
  • My commit messages follow Conventional Commits (fix(scope):, feat(scope):, etc.)
  • I searched for existing PRs to make sure this isn't a duplicate
  • My PR contains only changes related to this fix/feature (no unrelated commits)
  • I've run pytest tests/ -q and all tests pass
  • I've added tests for my changes (required for bug fixes, strongly encouraged for features)
  • I've tested on my platform: macOS 15.6

Documentation & Housekeeping

  • I've updated relevant documentation (README, docs/, docstrings) — or N/A
  • I've updated cli-config.yaml.example if I added/changed config keys — or N/A
  • I've updated CONTRIBUTING.md or AGENTS.md if I changed architecture or workflows — or N/A
  • I've considered cross-platform impact (Windows, macOS) per the compatibility guide — or N/A
  • I've updated tool descriptions/schemas if I changed tool behavior — or N/A

Screenshots / Logs

Focused tests passed:

scripts/run_tests.sh tests/hermes_cli/test_commands.py::TestResolveCommand tests/hermes_cli/test_commands.py::TestTelegramBotCommands
11 passed

@YanzhongSu YanzhongSu marked this pull request as ready for review May 14, 2026 18:33
@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have comp/gateway Gateway runner, session dispatch, delivery platform/telegram Telegram bot adapter labels May 14, 2026
@YanzhongSu

Copy link
Copy Markdown
Contributor Author

CI failure appears unrelated to this PR. This branch only changes the /codex-runtime command alias and command tests.

The same Tests / test job is currently failing on main with missing optional dependencies such as numpy, faster_whisper, botocore, and mautrix, so this PR is inheriting a red baseline.

teknium1 added a commit that referenced this pull request May 17, 2026
…tors

Adds release-note attribution mappings for the contributors from group 5:
- @haran2001 (PR #27070, #27068)
- @ms-alan (PR #26443)
- @godlin-gh (PR #26118)
- @wesleysimplicio (PR #25777, ext-email form)
- @Carry00 (PR #26851)
- @alaamohanad169-ship-it (PR #26036)
- @hawknewton (PR #26294)

(YanzhongSu PR #25879 and flamiinngo PR #27231 already mapped.)
@teknium1

Copy link
Copy Markdown
Contributor

Merged via PR #27382 — your commit was cherry-picked onto current main as part of a batch salvage of low-risk new-contributor PRs. Authorship preserved (fix(gateway): add codex runtime telegram alias). Thanks for the contribution.

@teknium1 teknium1 closed this May 17, 2026
@YanzhongSu YanzhongSu deleted the codex/codex-runtime-telegram-alias branch May 18, 2026 20:56
gweeteve pushed a commit to gweeteve/hermes-agent 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

comp/gateway Gateway runner, session dispatch, delivery P3 Low — cosmetic, nice to have platform/telegram Telegram bot adapter type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants