Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config/hermes/config.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ whatsapp: {}
telegram:
channel_prompts: {}
require_mention: false
group_allowed_chats: '-1003813578232'
slack:
channel_prompts: {}
mattermost:
Expand Down
1 change: 1 addition & 0 deletions config/hermes/config.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ whatsapp: {}
telegram:
channel_prompts: {}
require_mention: false
group_allowed_chats: '-1003813578232'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer the documented YAML-list form for group_allowed_chats

The hermes public docs (https://hermes-agent.nousresearch.com/docs/user-guide/messaging/telegram) show this key as a list of quoted chat IDs, and upstream PR NousResearch/hermes-agent#76470 ("fix(config): decode JSON array literals into YAML lists on config set") documents the failure mode for scalar values: readers like _coerce_allow_set and the telegram env bridge split scalars on commas, so any non-list value that later contains commas or a JSON literal silently authorizes nothing — the exact bug that PR is closing on the CLI writer side.

A single comma-free ID like '-1003813578232' coerces to a one-element set today, so this works right now. But the moment a second chat is appended (e.g. '-100...,-100...') or tooling emits a JSON literal, authorization silently drops to empty and the group loses access with no error.

Suggested change (apply the same edit in config/hermes/config.template.yaml to keep the templates in lockstep per scripts/llm-update.sh:102):

Suggested change
group_allowed_chats: '-1003813578232'
group_allowed_chats:
- '-1003813578232'

slack:
channel_prompts: {}
mattermost:
Expand Down
Loading