Skip to content

fix(gateway): skip home-channel onboarding when configured in config.yaml - #24282

Open
arthurnunesc wants to merge 1 commit into
NousResearch:mainfrom
arthurnunesc:fix/home-channel-daily-check
Open

fix(gateway): skip home-channel onboarding when configured in config.yaml#24282
arthurnunesc wants to merge 1 commit into
NousResearch:mainfrom
arthurnunesc:fix/home-channel-daily-check

Conversation

@arthurnunesc

Copy link
Copy Markdown

The daily onboarding notice ('No home channel is set...') only checked `os.getenv()` for the home channel env var. This meant users who had the home channel set via `config.yaml` (`platforms.telegram.home_channel`) but lacked the env variable — e.g. after a gateway restart where dotenv wasn't reloaded — would get spuriously prompted every day.

Now the check also falls back to `self.config.get_home_channel()` so that a home channel configured in `config.yaml` is respected even when the env var is missing.

Changes:

  • `gateway/run.py`: add `self.config.get_home_channel()` fallback in the daily onboarding check
  • `tests/gateway/test_status_command.py`: regression test for the config fallback

Fixes daily 'No home channel is set' spam for users with static config.

…yaml

The daily onboarding notice ('No home channel is set...') only checked
os.getenv() for the home channel env var. This meant users who had the
home channel set via config.yaml (platforms.telegram.home_channel) but
lacked the env variable — e.g. after a gateway restart where dotenv
wasn't reloaded — would get spuriously prompted every day.

Now the check also falls back to self.config.get_home_channel() so that
a home channel configured in config.yaml is respected even when the env
var is missing.

Fixes daily 'No home channel is set' spam for users with static config.
@alt-glitch alt-glitch added type/bug Something isn't working comp/gateway Gateway runner, session dispatch, delivery P2 Medium — degraded but workaround exists labels May 12, 2026
@teknium1 teknium1 added sweeper:risk-message-delivery Sweeper risk: may drop, duplicate, misroute, or suppress messages sweeper:blast-moderate Sweeper blast radius: moderate — a subsystem or single platform labels Jul 13, 2026
@teknium1

Copy link
Copy Markdown
Contributor

Thanks for the focused regression fix. Current main still has the env-only condition at gateway/run.py:11402, while GatewayConfig.get_home_channel() returns the configured platform channel at gateway/config.py:768-773; /sethome also updates that in-memory configuration at gateway/slash_commands.py:2440-2452. The proposed fallback therefore addresses the current code path directly, and the added regression case covers the absent-env/configured-channel condition.

Automated hermes-sweeper review.

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

Labels

comp/gateway Gateway runner, session dispatch, delivery P2 Medium — degraded but workaround exists sweeper:blast-moderate Sweeper blast radius: moderate — a subsystem or single platform sweeper:risk-message-delivery Sweeper risk: may drop, duplicate, misroute, or suppress messages type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants