Skip to content

fix(gateway): load streaming config from nested gateway.streaming key#25694

Closed
luyao618 wants to merge 1 commit into
NousResearch:mainfrom
luyao618:fix/gateway-streaming-config-nested-key
Closed

fix(gateway): load streaming config from nested gateway.streaming key#25694
luyao618 wants to merge 1 commit into
NousResearch:mainfrom
luyao618:fix/gateway-streaming-config-nested-key

Conversation

@luyao618

Copy link
Copy Markdown
Contributor

Summary

Fix silent config drop when streaming is configured via hermes config set gateway.streaming.*.

Problem

hermes config set gateway.streaming.enabled true writes the streaming block nested under a gateway: key in config.yaml:

gateway:
  streaming:
    enabled: true
    transport: draft

But load_gateway_config() (line 737) only checked for a top-level streaming: key — silently ignoring the nested variant. Users following the telegram.md docs hit this and got no streaming with zero diagnostics.

Fix

In gateway/config.py, fall back to yaml_cfg["gateway"]["streaming"] when the top-level key is absent. Top-level still takes precedence when both exist. This matches the existing pattern for other nested config sections (e.g. platforms).

Test

Added tests/test_gateway_streaming_nested_config.py with 3 cases:

All 3 pass. Existing test suite unaffected.

Closes #25676

`hermes config set gateway.streaming.*` writes the streaming block
nested under a `gateway:` key in config.yaml, but the config loader
only checked for a top-level `streaming:` key — silently ignoring
the nested variant.

Fall back to `yaml_cfg['gateway']['streaming']` when the top-level
key is absent, matching the pattern already used for other nested
config sections.

Closes NousResearch#25676
@teknium1

Copy link
Copy Markdown
Contributor

Merged via PR #25923 (salvage onto current main). Your commit landed as b4b8509 with your authorship preserved in git log. Thanks!

@teknium1 teknium1 closed this May 14, 2026
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 type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gateway: streaming config silently ignored when set via "hermes config set gateway.streaming.*" — docs/code mismatch

3 participants