#5900·nanobot

Silent context compaction and reduce WeChat channel polling log verbosity

Author: coder-iuCreated Sep 24, 2026Updated Sep 24, 2026
Labelsenhancement

Problem / Motivation

I would like to propose two improvements for the bot's channel and logging behavior.

  1. Silent Context Compaction (No Channel Notification) Currently, when I set "idleCompactAfterMinutes": 15, the context compression process sends notification messages to the WeChat and WhatsApp channels. Specifically, it sends:

"Compressing context..."

"Context compacted."

While this is useful for debugging, in a production or daily usage environment, it is intrusive and clutters the chat history.

Suggestion: Please consider performing context compaction silently in the background. There is no need to notify the user via the channel (unless it fails). If a status update is necessary, perhaps only show it in the console/logs, or make it an optional configuration flag.

  1. Reduce WeChat Channel Polling Log Level to WARN After configuring the WeChat channel, the docker logs -f nanotbot command outputs a polling log every 18 seconds.

Example log:

22:33:09.494 [httpx INFO] - HTTP Request: POST https://ilinkai.weixin.qq.com/ilink/bot/getupdates "HTTP/1.1 200 OK" 22:33:27.743 [httpx INFO] - HTTP Request: POST https://ilinkai.weixin.qq.com/ilink/bot/getupdates "HTTP/1.1 200 OK"

This frequent INFO logging makes it difficult to see actual errors or important information. Since the Telegram channel does not produce this level of log spam (it seems to be set to WARN or similar), the WeChat channel should behave consistently.

Suggestion: Please change the log level for these repeated getupdates HTTP requests from INFO to WARN (or DEBUG). This will keep the console logs clean and focus on actionable events.

Thank you for your work on this project!

Image [weixin_channel_log.txt](https://github.com/user-attachments/files/32603226/weixin_channel_log.txt)

Proposed Solution

async def start(self) -> None: @redirect_lib_logging("weixin") //redirect_lib_logging("httpx", level="WARNING")

Alternatives Considered

No response

Related Component

Channel (WeChat, Feishu, Telegram, etc.)

Additional Context

No response