Repository navigation
Conversation
Plugins register their toolsets during background discovery, but the CLI validates the configured toolset list while the instance is being constructed -- i.e. before that thread has landed. Judging by the live registry alone therefore reports every configured plugin toolset as a typo on every launch. The warning is not merely cosmetic: it is written to the console, so one-shot and quiet runs (-q / -Q, --format stream-json) hand it to whatever parses their output; an integration reading the response can receive the warning line instead of the answer. Skip names the plugin registry knows about, mirroring how MCP server names are already skipped here. Names persisted by the previous launch's discovery sweep are served by get_plugin_toolset_keys_nowait, so this stays non-blocking on startup. A genuinely unknown name still warns. Refs NousResearch#71650 (NousResearch#95529 is the duplicate report of the same bug) Co-authored-by: adamkrawczyk <adam-krawczyk@outlook.com>
byjaps
force-pushed
the
fix/plugin-toolset-startup-warning
branch
from
September 19, 2026 21:40
984ecf6 to
dd55800
Compare
13 of 19 tasks
This was referenced Sep 22, 2026
Collaborator
This was referenced Sep 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Every launch reports configured plugin toolsets as unknown, before plugin discovery has had a chance to register them:
HermesCLI._init_toolsets()validates the configured list while the instance is being constructed. Plugins register their toolsets later, during background discovery (discover_plugins()), so judging by the live registry alone (validate_toolset) flags every configured plugin toolset as a typo — even though the very same key set was just used to buildenabled_toolsets(viaget_plugin_toolset_keys_nowait) two lines earlier in the startup path.Why it matters beyond the noise
The warning is written to the console, so it lands on stdout for machine-parsed runs. Reproduced case: an integration drives
hermes chat -q -Qas a subprocess and reads stdout as the answer, so the warning line was consumed as the reply — in that deployment a TTS pipeline read it out loud instead of the user's answer.--format stream-jsonis affected the same way (its stdout is meant to be a single JSON object / JSONL stream).Fix
Skip names the plugin registry reports, mirroring the MCP-server-name exemption already in this block:
get_plugin_toolset_keys_nowait()serves the key set persisted by the previous launch's discovery sweep, so the check stays non-blocking on startup (no join on the discovery thread). A genuinely unknown name still warns.Tests
New
TestPluginToolsetStartupValidationintests/hermes_cli/test_cli_init.py:enabled_toolsetsis kept verbatim (the fix silences the warning, it does not drop names);Proven RED on base (same tree, only the
cli.pyhunk reverted):GREEN with the fix:
Relation to other work
main: itsagent/subagent_lifecycle.pyhunk conflicts (that validation was rewritten upstream), and its startup half is what this PR re-lands against currentmain.main, not addressed here:agent/subagent_lifecycle.pyrejects plugin toolsets inallowed_toolsetsthrough the same static-membership test (set(request.allowed_toolsets) - set(TOOLSETS)). Worth a follow-up on the same class of bug rather than widening this PR.-Q/--format stream-jsoncontract documented in_configure_quiet_agent()("stdout carries only the final response"). Separate follow-up.Refs #71650 · Refs #95529 (duplicate report — the one this was reproduced from)