-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
Telegram channel stalls after long-running use: main session context overflow and repeated send/getUpdates network failures #68494
Copy link
Copy link
Closed as not planned
Closed as not planned
Copy link
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.Crash, hang, restart loop, or process-level availability failure.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Description
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.Crash, hang, restart loop, or process-level availability failure.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Type
Fields
Priority
None yet
Summary
On my local OpenClaw setup, the Telegram bot becomes unresponsive after running for a while. The behavior looks like a combination of:
This eventually results in the bot no longer replying in Telegram until I manually intervene.
Version / Environment
2026.4.15 (041266a)[email protected]Linux ser160761344703 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64 x86_64 x86_64 GNU/LinuxRelevant config
Telegram channel config at the time of reproduction:
I had also increased concurrency from
1to2to reduce blocking:acp.maxConcurrentSessions = 2agents.defaults.maxConcurrent = 2agents.defaults.subagents.maxConcurrent = 2Observed behavior
After the bot runs for a while and handles more Telegram messages/tasks:
agent:main:mainEvidence
1. Main Telegram session hits context overflow
From
/tmp/openclaw/openclaw-2026-04-18.log:The stored session file showed the main Telegram conversation reusing
agent:main:main, and before recovery it had grown to roughly 295-325 messages.2. Workspace bootstrap contributes significant context repeatedly
This warning repeated many times for the same main session.
3. Telegram polling stalls and restart loop
4. Telegram reply operations then fail outright
These errors repeated several times in a row.
5. Gateway accumulated long-running child processes before recovery
Before I manually recovered it,
systemctl --user status openclaw-gateway.serviceshowed:2.1G138register_bot.pychild plus multiple Chrome child processes attached underopenclaw-gatewayAfter killing the stuck browser/capture child processes and restarting the gateway, memory dropped back to ~
289Mand the task count returned to normal.Recovery I had to do manually
To recover, I had to:
agent:main:mainsession from the session storeopenclaw-gateway.serviceAfter that, the gateway returned to a healthy memory/task count and Telegram could start fresh again.
Expected behavior
agent:main:mainsession.Suspected areas
Not sure where the root fix belongs, but likely related to one or more of:
agent:main:maingrowing indefinitely)If useful, I can provide more local logs or the affected session metadata, but the snippets above were the key signals I observed while diagnosing and recovering the issue locally.