Skip to content

fix(gateway): preserve Telegram DM context after restart - #33531

Closed
ghost wants to merge 1 commit into
NousResearch:mainfrom
Bot-Doctor-LLC:fix/dm-resume-read-chat-20260527
Closed

fix(gateway): preserve Telegram DM context after restart#33531
ghost wants to merge 1 commit into
NousResearch:mainfrom
Bot-Doctor-LLC:fix/dm-resume-read-chat-20260527

Conversation

@ghost

@ghost ghost commented May 27, 2026

Copy link
Copy Markdown

Summary

  • skip startup synthetic auto-resume for real Telegram DMs so Enoch waits for actual inbound text
  • inject recent local Telegram DM transcript for explicit read-chat requests
  • persist the clean user text when API-only context is prepended

Validation

  • python -m py_compile gateway/run.py tests/gateway/test_restart_resume_pending.py
  • pytest tests/gateway/test_restart_resume_pending.py -q (69 passed)
  • pytest tests/gateway/test_auto_continue.py -q (6 passed)
  • git diff --check --cached

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/gateway Gateway runner, session dispatch, delivery platform/telegram Telegram bot adapter labels May 27, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Likely overlaps with #30030 (harden restart resume recovery — also preserves Telegram DM topic anchor, skips stale auto-resumes). Also related to merged #28488 (DM topic routing on resumed events). Please coordinate to avoid redundant work.

@ghost

ghost commented May 27, 2026

Copy link
Copy Markdown
Author

Superseded by the golden overlay path per repo policy: https://github.com/enochosbot-bot/hermes-golden/pull/94. We keep Hermes updates underneath and reapply this behavior from hermes-golden rather than merging it directly into upstream hermes-agent.

@ghost ghost closed this May 27, 2026
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/gateway Gateway runner, session dispatch, delivery P2 Medium — degraded but workaround exists platform/telegram Telegram bot adapter type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant