mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-29 18:46:59 +00:00
Previously, Slack sessions and the channel directory stored raw channel IDs (e.g. C0ATFHY907L) as chat_name, making it impossible for operators to identify channels in send_message listings or session data. Changes: - Add _channel_name_cache and _resolve_channel_name() to SlackAdapter that calls conversations.info (channels) or users.info (DMs) with in-memory caching to avoid repeated API calls - Use resolved names in _handle_slack_message() build_source() calls - Use cached names in _seed_assistant_thread_session() - Enrich session-sourced entries in channel_directory._build_slack() by cross-referencing API results and falling back to conversations.info + users.info for DMs and private channels not in the bot's scope Fixes: channel directory and session origins now show readable names like 'general' or 'John Doe' instead of 'C0xxx' / 'D0xxx'. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| adapter.py | ||
| block_kit.py | ||
| plugin.yaml | ||