Skip to content

fix(gateway): map telegram reply_to_mode from config.yaml to PlatformConfig - #17176

Closed
hash7in wants to merge 1 commit into
NousResearch:mainfrom
hash7in:fix/reply-to-mode-config-mapping
Closed

fix(gateway): map telegram reply_to_mode from config.yaml to PlatformConfig#17176
hash7in wants to merge 1 commit into
NousResearch:mainfrom
hash7in:fix/reply-to-mode-config-mapping

Conversation

@hash7in

@hash7in hash7in commented Apr 28, 2026

Copy link
Copy Markdown

Problem

The reply_to_mode setting under telegram: in config.yaml was never mapped to PlatformConfig.reply_to_mode in _build_gateway_config(). This means the value was always the default "first" regardless of what users configured.

Setting reply_to_mode: "off" in config.yaml had no effect — the gateway still threaded replies to the user's message.

Fix

Adds the missing mapping in load_gateway_config(), consistent with how other telegram-specific settings (disable_link_previews, etc.) are handled.

Respects the existing env var override: if TELEGRAM_REPLY_TO_MODE is set, the env var takes precedence (no change to existing behavior).

Changes

  • gateway/config.py: 6 lines — map telegram_cfg["reply_to_mode"] to plat_data["reply_to_mode"]

…Config

The reply_to_mode setting under telegram: in config.yaml was never
mapped to PlatformConfig.reply_to_mode in _build_gateway_config(),
so the value was always the default 'first' regardless of user config.

This adds the missing mapping, consistent with how other telegram-
specific settings (disable_link_previews, etc.) are handled.
@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/gateway Gateway runner, session dispatch, delivery platform/telegram Telegram bot adapter area/config Config system, migrations, profiles labels Apr 28, 2026
@hash7in hash7in closed this Apr 28, 2026
@hash7in
hash7in deleted the fix/reply-to-mode-config-mapping branch April 28, 2026 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/config Config system, migrations, profiles comp/gateway Gateway runner, session dispatch, delivery P2 Medium — degraded but workaround exists platform/telegram Telegram bot adapter type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants