Summary
When the agent processes a message on Telegram, its intermediate "thinking" messages remain visible in the chat even after the final response is sent. They should be removed/deleted once the final message arrives.
Problem
Steps to reproduce:
- Send a message to the agent via Telegram channel
- Observe the agent's thinking/reasoning messages appearing in the chat (e.g. tool calls, intermediate reasoning)
- Agent sends final response
- Thinking messages are still visible in the chat alongside the final response
Expected: Thinking/intermediate messages should be deleted or replaced when the final agent response is sent, so the user only sees the clean final message.
Platform: Telegram channel integration
Solution
When the final agent response is ready to be sent on Telegram:
- Delete all intermediate thinking/tool-call messages that were sent during processing
- Only the final response message should remain in the chat
- This likely requires tracking message IDs of thinking messages so they can be deleted via Telegram Bot API (
deleteMessage)
Acceptance criteria
Related
- Telegram channel provider in
src/openhuman/channels/providers/
- Proactive/streaming message delivery logic
Summary
When the agent processes a message on Telegram, its intermediate "thinking" messages remain visible in the chat even after the final response is sent. They should be removed/deleted once the final message arrives.
Problem
Steps to reproduce:
Expected: Thinking/intermediate messages should be deleted or replaced when the final agent response is sent, so the user only sees the clean final message.
Platform: Telegram channel integration
Solution
When the final agent response is ready to be sent on Telegram:
deleteMessage)Acceptance criteria
Related
src/openhuman/channels/providers/