mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-22 16:25:58 +00:00
_fetch_thread_context unconditionally filtered out the bot's own prior replies, so cold-start sessions (bot posts a thread root, user replies later, no active session) lost every assistant turn and the agent could not reconstruct the prior conversation. The circular-context concern the filter guarded against does not apply here: the call site is gated by _has_active_session_for_thread, so this method only runs when there is no session history to duplicate. Self-bot replies are now kept and labelled with an explicit [assistant] prefix (skipping user-name resolution — the label already communicates authorship). Third-party bot posts and the bot-authored thread parent keep their existing treatment. Fixes #38861. Salvaged from #38936 by @temalo, rebased from the pre-plugin gateway/platforms/slack.py layout onto plugins/platforms/slack/adapter.py (preserving the [unverified] trust-tag handling added on main since). |
||
|---|---|---|
| .. | ||
| dingtalk | ||
| discord | ||
| feishu | ||
| google_chat | ||
| homeassistant | ||
| irc | ||
| line | ||
| matrix | ||
| mattermost | ||
| ntfy | ||
| photon | ||
| raft | ||
| simplex | ||
| slack | ||
| sms | ||
| teams | ||
| telegram | ||
| wecom | ||