Skip to content

fix(cli): /reload-skills Tab completion update + _skill_commands sync#26443

Closed
ms-alan wants to merge 1 commit into
NousResearch:mainfrom
ms-alan:fix/ISSUE-26441-reload-skills-tab-completion
Closed

fix(cli): /reload-skills Tab completion update + _skill_commands sync#26443
ms-alan wants to merge 1 commit into
NousResearch:mainfrom
ms-alan:fix/ISSUE-26441-reload-skills-tab-completion

Conversation

@ms-alan

@ms-alan ms-alan commented May 15, 2026

Copy link
Copy Markdown
Contributor

Closes #26441

Bug

After running /reload-skills, the Tab-completion menu for slash commands still showed the old list of skills. The lambda lambda: _skill_commands captured the module-level _skill_commands snapshot at startup, so newly installed skills were never visible in Tab completion.

Changes

  1. Tab-completion lambda (cli.py:12609): Changed from lambda: _skill_commands to lambda: get_skill_commands(). The latter calls the getter which returns the freshly-updated _skill_commands from agent.skill_commands (updated by reload_skills()), without needing any restart.

  2. reload_skills sync (cli.py:9601-9613): After calling reload_skills(), now also syncs cli.py's module-level _skill_commands via get_skill_commands(). This ensures help display, command dispatch, and any other direct _skill_commands readers also reflect the updated skills after a reload.

… picks up new skills

The Tab-completion lambda captured _skill_commands at startup, so newly
installed skills were missing from Tab completion even after /reload-skills
reported them as added.

Two changes:
1. Tab-completion lambda now calls get_skill_commands() instead of reading
   the module-level _skill_commands snapshot — ensures the lambda always
   gets fresh data without needing to touch global state.
2. _reload_skills() now syncs cli.py's module-level _skill_commands via
   get_skill_commands() after reload, so help display, command dispatch,
   and any other direct _skill_commands readers also see the updated map.

Closes NousResearch#26441
@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/cli CLI entry point, hermes_cli/, setup wizard tool/skills Skills system (list, view, manage) labels May 15, 2026
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(cli): sync _skill_commands after /reload-skills so Tab completion picks up new skills). Thanks for the contribution.

@teknium1 teknium1 closed this May 17, 2026
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/cli CLI entry point, hermes_cli/, setup wizard P2 Medium — degraded but workaround exists tool/skills Skills system (list, view, manage) type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

/reload-skills does not update Tab completion for newly installed skills

3 participants