Skip to content

fix(gateway): fall back to self.config for home-channel prompt - #58

Merged
johnson7788 merged 1 commit into
johnson7788:mainfrom
Mason-zy:fix/muc-home-channel
Jul 6, 2026
Merged

fix(gateway): fall back to self.config for home-channel prompt#58
johnson7788 merged 1 commit into
johnson7788:mainfrom
Mason-zy:fix/muc-home-channel

Conversation

@Mason-zy

@Mason-zy Mason-zy commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Backport of upstream NousResearch/hermes-agent#59348 (issue #10581).

Problem

The "📬 No home channel is set..." prompt refires on every new session even after /sethome is run (until a gateway restart).

Root cause

The prompt check in hermes-agent/gateway/run.py only reads os.getenv(env_key), but /sethome writes to .env + self.configos.environ only picks up the .env value on restart, so the in-memory self.config (updated immediately by /sethome) is ignored.

Fix

Fall back to self.config.platforms[platform].home_channel before deciding to show the prompt. Stops the repeat prompt without requiring a restart.

Backport of NousResearch/hermes-agent#59348 (upstream issue #10581).

The 'No home channel is set' prompt only checked os.getenv(), but
/sethome persists to .env + self.config (os.environ only sees .env
after restart). Within a running process the prompt refired on every
new session. Add self.config fallback so it respects what /sethome
actually wrote.
@johnson7788
johnson7788 merged commit 30376ce into johnson7788:main Jul 6, 2026
@Mason-zy
Mason-zy deleted the fix/muc-home-channel branch July 14, 2026 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants