Skip to content

[Bug]: Discord gateway adapter not registered/discovered for non-default profile #36108

Closed

Description

@matchy233

Bug Description

After updating to the newest commit via hermes update, the default profile is accessible from discord, but a non-default profile's discord gateway does not work.

I've seen #34511 and the behavior is similar:

  • discord bot appears online, but does not reply to messages
  • does not reply in channels and threads
  • hermes -p newprofile setup gateway does not list Discord as an available platform
  • log shows No adapter available for discord

Steps to Reproduce

Might need to have a different profile created before updated to 0.15.1

  1. Update Hermes from PyPI using pipx.
  2. Confirm version is hermes-agent 0.15.1.
  3. Have an existing Discord gateway configuration with DISCORD_BOT_TOKEN configured in a profile other than default: ~/.hermes/profiles/newprofile/.env.
  4. Stop the gateway service
  5. Load the Hermes environment manually:
set -a
source ~/.hermes/profiles/newprofile/.env
set +a
  1. Confirm the Discord token exists in the shell.
  2. Run the gateway manually: hermes gateway run
  3. Observe:
WARNING gateway.run: No adapter available for discord
  1. Also run the below and see that Discord is not listed as an available messaging platform:
    hermes setup gateway

Expected Behavior

Since:

  • DISCORD_BOT_TOKEN is configured
  • Discord dependencies are installed
  • plugins.platforms.discord.adapter imports successfully
  • DISCORD_AVAILABLE=True

Hermes should discover/register the Discord adapter and connect the Discord gateway.

hermes setup gateway should list Discord as an available platform.

hermes gateway run should create the Discord adapter and bring the bot online.

Actual Behavior

Running the gateway manually with the environment loaded.

Output:

┌─────────────────────────────────────────────────────────┐
│           ⚕ Hermes Gateway Starting...                 │
├─────────────────────────────────────────────────────────┤
│  Messaging platforms + cron scheduler                    │
│  Press Ctrl+C to stop                                   │
└─────────────────────────────────────────────────────────┘

WARNING gateway.run: No adapter available for discord
WARNING gateway.run: No adapter could be created for any of the 1 configured platform(s). 
Check that required dependencies are installed and credentials are set. Gateway will continue for cron job execution.

The same warning appears in the systemd user service logs.

hermes setup gateway also does not list Discord as an available platform.

Affected Component

Gateway (Telegram/Discord/Slack/WhatsApp)

Messaging Platform (if gateway-related)

Discord

Debug Report

Report       https://paste.rs/PHZk9
  agent.log    https://paste.rs/qLAwJ
  gateway.log  https://paste.rs/XNQpB

Operating System

Ubuntu 26.04

Python Version

3.11.15

Hermes Version

0.15.1

Additional Logs / Traceback (optional)

Root Cause Analysis (optional)

No response

Proposed Fix (optional)

No response

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

Activity

  1. added
    type/bugSomething isn't working
    P2Medium — degraded but workaround exists
    comp/gatewayGateway runner, session dispatch, delivery
    comp/pluginsPlugin system and bundled plugins
    on May 31, 2026
  2. alt-glitch commented on May 31, 2026

    @alt-glitch

    Related to #34511 (Discord adapter not discovered on PyPI v0.15.1 — fix merged in #34484) and #32430 (force plugin discovery before adapter creation). If you installed via pip, the plugin.yaml fix in #34484 should resolve this — verify you're on a version that includes it. If the issue persists post-fix, the non-default profile aspect may be a separate discovery bug in profile-scoped plugin loading.

  3. matchy233 commented on May 31, 2026

    @matchy233
    Author

    @alt-glitch Thanks for the prompt reply. I've updated hermes via hermes update again and git log in ~/.hermes/hermes-agent/ showed me I'm on 77bb64813 which is the latest commit (also checked with git merge-base --is-ancestor 2765b02 HEAD && echo "YES" || echo "NO" and the output was "YES"). The non-default profile is still not accessible from discord on the newest version. The default profile works just fine.

  4. matchy233 commented on Jun 27, 2026

    @matchy233
    Author

    Seems to be fixed in 0.17.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium — degraded but workaround existscomp/gatewayGateway runner, session dispatch, deliverycomp/pluginsPlugin system and bundled pluginsplatform/discordDiscord bot adaptertype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions