hermes - 💡(How to fix) Fix [Feature] Per-conversation background sessions for long-running tasks (Feishu DM / Telegram Topics) [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#13466Fetched 2026-04-22 08:06:21
View on GitHub
Comments
0
Participants
1
Timeline
5
Reactions
0
Author
Participants
Timeline (top)
labeled ×5
RAW_BUFFERClick to expand / collapse

Problem

When Hermes Agent receives a message on Feishu DM or Telegram DM and starts a long-running task, the user cannot send follow-up messages without interrupting the task. There is no way to background the task within the same conversation in a non-blocking way.

Platform limitations:

  • Feishu: One user = one bot conversation queue. Messages are processed sequentially. No multi-session support.
  • Telegram: Supports Forum/Topics (multi-threaded), but Hermes does not create isolated sessions per topic.

Desired behavior

  • For Telegram: Detect is_topic_message and create one session per topic, similar to how Discord threads work.
  • For Feishu: Implement reliable /bg command that spawns a background sub-session without interrupting the running task.
  • Auto-detection of long-running tasks (e.g. >30s) and automatic background spawning.

Use case

User on Feishu starts a report generation task that takes 30+ seconds. User wants to ask a follow-up question while the report is still generating, without blocking or losing context.

Technical notes

This appears to require changes at the platform adapter layer (Feishu/Telegram adapters) to expose session/thread metadata to the agent, so the skill layer can implement the sub-session logic. Currently skills cannot access platform-specific conversation context (topic ID, thread ID, etc.).

  • Hermes Agent version: latest
  • Platform: Feishu DM, Telegram DM
  • Related: ACP list_sessions does not expose per-platform session metadata

extent analysis

TL;DR

Implementing a reliable /bg command for Feishu and detecting is_topic_message for Telegram can help achieve non-blocking conversations.

Guidance

  • Modify the Feishu adapter to expose conversation context, enabling the skill layer to implement a /bg command that spawns a background sub-session.
  • Update the Telegram adapter to detect is_topic_message and create isolated sessions per topic, similar to Discord threads.
  • Investigate auto-detection of long-running tasks (>30s) to automatically spawn background sub-sessions.
  • Review the ACP list_sessions functionality to determine if modifications are needed to expose per-platform session metadata.

Example

No code example is provided due to the lack of specific implementation details.

Notes

The solution requires changes to the platform adapters (Feishu and Telegram) to expose session metadata, which will enable the skill layer to implement sub-session logic. The exact implementation details may vary depending on the adapter and skill layer architecture.

Recommendation

Apply a workaround by implementing the /bg command for Feishu and detecting is_topic_message for Telegram, as these changes can be made without requiring a full version upgrade. This will allow for non-blocking conversations and provide a better user experience.

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 - 💡(How to fix) Fix [Feature] Per-conversation background sessions for long-running tasks (Feishu DM / Telegram Topics) [1 participants]