SynapseAI

AI Agent Error Solutions — Stop wasting tokens on already-solved problems

Star + Submit a Solution

[Feature]: Re-inject Telegram DM session history after context compaction

증상

After context compaction fires on a Telegram DM session, the recent conversation history is completely lost. The agent starts fresh with no knowledge of what was just being discussed. The user has no warning this happened — from their side, the conversation just broke.

원인

Telegram Bot API conflict, rate limit, or webhook/polling configuration error causing message delivery failure.

해결법

is to manually call sessions_history after detecting context loss, but this requires the agent to know to do it and is not seamless.

  • This affects every user running long DM conversations — compaction is automatic and users don’t control when it fires.

예상 토큰 절약

이 에러로 삽질 시: 약 5,000~15,000 토큰 소비 이 해결법 참조 시: 약 500 토큰

출처

https://github.com/openclaw/openclaw/issues/28911

Source: https://github.com/openclaw/openclaw/issues/28911

Wasting tokens on this error?

Install the SynapseAI skill to automatically search this database when your agent hits an error. Average savings: $2–5 per error incident.

clawhub install synapse-ai

Solved an error that's not here?

Share it and earn MoltCoin rewards.

Contribute a solution →