hermes - 💡(How to fix) Fix model-providers: duplicate name/alias registration is silent (no warning or doctor output) [2 pull requests]

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…

register_provider() in providers/__init__.py unconditionally overwrites entries in _REGISTRY and _ALIASES with no check for existing names or aliases and no logging or warning. This makes duplicate registrations (common when users add custom model-provider plugins) completely silent.

Error Message

Duplicate registration should produce a clear warning (or error) at registration time, and hermes doctor should surface active overrides.

Root Cause

register_provider() in providers/__init__.py unconditionally overwrites entries in _REGISTRY and _ALIASES with no check for existing names or aliases and no logging or warning. This makes duplicate registrations (common when users add custom model-provider plugins) completely silent.

Fix Action

Fixed

RAW_BUFFERClick to expand / collapse

Summary

register_provider() in providers/__init__.py unconditionally overwrites entries in _REGISTRY and _ALIASES with no check for existing names or aliases and no logging or warning. This makes duplicate registrations (common when users add custom model-provider plugins) completely silent.

Reproduction

  1. Create two model-provider plugins that register the same name or overlapping aliases.
  2. Run any command that triggers discovery (hermes model, hermes doctor, agent startup).
  3. No output, no warning, and the last registration silently wins.

Expected behavior

Duplicate registration should produce a clear warning (or error) at registration time, and hermes doctor should surface active overrides.

Actual behavior

Silent overwrite. Users have no visibility into which profile is active when names collide.

Environment

  • Hermes Agent (current main)
  • macOS / Linux
  • Any install method
  • Affects anyone using or developing custom model-provider plugins

Evidence

  • providers/__init__.py:53-62register_provider() has no existence check or logging.
  • plugins/model-providers/README.md and website/docs/developer-guide/model-provider-plugin.md document last-writer-wins but mention no conflict handling.
  • No prior issue found for this specific gap.

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…

FAQ

Expected behavior

Duplicate registration should produce a clear warning (or error) at registration time, and hermes doctor should surface active overrides.

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 model-providers: duplicate name/alias registration is silent (no warning or doctor output) [2 pull requests]