hermes - 💡(How to fix) Fix QQ send path can fail during unrelated platform imports when running outside Hermes venv

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…

Root Cause

Hermes supports many optional platforms. A single missing optional dependency should not make an unrelated delivery target unusable.

RAW_BUFFERClick to expand / collapse

Bug Description

Sending a QQBot message can fail before reaching the QQ send logic because the shared send path imports unrelated platform code eagerly.

In practice, if Hermes is invoked outside the main Hermes venv (or otherwise without all optional platform dependencies installed), a missing dependency from some other platform can abort the send path even when the requested delivery target is QQ/QQBot.

This makes QQ sending fragile and couples it to optional dependencies for unrelated platforms.

Steps to Reproduce

  1. Have Hermes installed with QQBot configured and working in the normal environment.
  2. Run Hermes or a Hermes-driven script from an environment outside the main Hermes venv, so one or more optional dependencies for unrelated platforms are unavailable.
  3. Attempt to send a message to QQ / QQBot.
  4. Observe that the send path fails during import / setup of another platform before the QQ send logic is reached.

Expected Behavior

  • Sending to QQ / QQBot should only require the dependencies needed for the QQ path.
  • Unrelated platform adapters should be imported lazily (or failures should be isolated) so that missing optional deps for another platform do not break QQ delivery.

Actual Behavior

  • The shared send path can fail early because unrelated platform code is imported eagerly.
  • QQ sending never gets a chance to execute.

Why this matters

Hermes supports many optional platforms. A single missing optional dependency should not make an unrelated delivery target unusable.

Possible Fix

  • Lazily import platform adapters only when that platform is actually selected, or
  • catch and isolate optional platform import failures so they do not poison unrelated send paths.

Environment

  • Repo: NousResearch/hermes-agent
  • Platform involved: qqbot
  • Scenario: running outside the main Hermes venv / missing optional dependencies for unrelated platforms

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 QQ send path can fail during unrelated platform imports when running outside Hermes venv