hermes - ✅(Solved) Fix Feature: Bot messages should rebuild Group Session after idle-TTL expiry [1 pull requests, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
NousResearch/hermes-agent#17525Fetched 2026-04-30 06:47:03
View on GitHub
Comments
0
Participants
1
Timeline
5
Reactions
0
Author
Participants
Timeline (top)
labeled ×4cross-referenced ×1

Fix Action

Fixed

PR fix notes

PR #17538: fix(gateway): allow Feishu bot group session rebuilds

Description (problem / solution / changelog)

Summary

  • mark Feishu bot/app senders on SessionSource.is_bot
  • add an explicit FEISHU_ALLOW_BOTS=mentions|all gateway auth bypass for bot-origin Feishu traffic after adapter-level admission
  • cover the idle-reset path so bot-origin group sources can rebuild an expired group session

Why

Fixes #17525. Feishu group bot messages could pass mention/policy handling but still be rejected by the gateway human allowlist, so bot-only group collaboration could not rebuild the session after idle TTL expiry.

The default remains closed: unset/none still rejects bot senders unless they are otherwise allowlisted.

Verification

  • scripts/run_tests.sh tests/gateway/test_feishu.py::TestAdapterBehavior::test_process_inbound_group_message_marks_other_bot_sender tests/gateway/test_feishu_bot_auth_bypass.py
  • scripts/run_tests.sh tests/gateway/test_discord_bot_auth_bypass.py tests/gateway/test_feishu_bot_auth_bypass.py
  • scripts/run_tests.sh tests/gateway/test_feishu.py::TestAdapterBehavior
  • git diff --cached --check

Changed files

  • gateway/platforms/feishu.py (modified, +3/-0)
  • gateway/run.py (modified, +13/-0)
  • tests/gateway/test_feishu.py (modified, +38/-0)
  • tests/gateway/test_feishu_bot_auth_bypass.py (added, +77/-0)
RAW_BUFFERClick to expand / collapse

Problem

When a Feishu group Session is evicted due to idle-TTL expiry, bot messages do NOT rebuild the Session — only human user messages do. This breaks multi-bot collaboration workflows.

Evidence from logs

Impact

  • Hermes + OpenClaw coordination in same Feishu group fails after ~1h of bot-only activity
  • Any multi-bot group workflow breaks silently after Session eviction

Proposed Solutions

A) Bot messages rebuild Group Sessions (with rate limiting) B) Extend idle-TTL for groups with 2+ bots
C) Add config flag: GROUP_SESSION_REBUILD_ON_BOT_MSG

Related

#6419 #17415 #11922

extent analysis

TL;DR

Implementing a solution to rebuild Group Sessions on bot messages, such as proposed solution A, is likely to fix the issue.

Guidance

  • Verify that the idle-TTL expiry is indeed the cause of the Session eviction by checking the logs for the exact error message or timestamp.
  • Consider the trade-offs between proposed solutions A, B, and C, weighing the benefits of rebuilding sessions on bot messages against potential performance or abuse concerns.
  • Evaluate the feasibility of implementing a rate limit for bot messages rebuilding sessions to prevent abuse.
  • Investigate the related issues (#6419, #17415, #11922) to understand the broader context and potential dependencies.

Example

No code snippet is provided as the issue does not contain sufficient technical details.

Notes

The ideal solution may depend on the specific requirements and constraints of the Feishu group and bot workflows, which are not fully specified in the issue.

Recommendation

Apply workaround by implementing proposed solution A, as it directly addresses the issue of bot messages not rebuilding Group Sessions, and consider adding rate limiting to prevent abuse.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

hermes - ✅(Solved) Fix Feature: Bot messages should rebuild Group Session after idle-TTL expiry [1 pull requests, 1 participants]