openclaw - 💡(How to fix) Fix [Feature] Configurable typing indicator TTL — 2-min default too short for long-running model calls [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#72192Fetched 2026-04-27 05:33:38
View on GitHub
Comments
1
Participants
2
Timeline
2
Reactions
0
Timeline (top)
closed ×1commented ×1

Fix Action

Fix / Workaround

Current Workaround

We sed-patch the bundled file via cron every 15 minutes + @reboot:

Code Example

sed -i 's/typingTtlMs = 2 \* 6e4/typingTtlMs = 4 * 6e4/' /usr/local/lib/node_modules/openclaw/dist/pi-embedded-*.js

---

{
  "channels": {
    "telegram": {
      "typingTtlMs": 600000
    }
  }
}
RAW_BUFFERClick to expand / collapse

Problem

The Telegram typing indicator TTL is hardcoded in the bundled distribution as typingTtlMs = 2 * 6e4 (2 minutes). I see this in dist/pi-embedded-CbCYZxIb.js of the bundle shipped with [email protected].

With Claude Opus 4.x on real workloads (document analysis, multi-step planning, large-context responses), single-turn replies regularly take 3–10 minutes. Once the indicator disappears at 2 min the user assumes the bot has crashed and starts re-sending — which compounds the problem and produces stuck-session warnings server-side.

Current Workaround

We sed-patch the bundled file via cron every 15 minutes + @reboot:

sed -i 's/typingTtlMs = 2 \* 6e4/typingTtlMs = 4 * 6e4/' /usr/local/lib/node_modules/openclaw/dist/pi-embedded-*.js

This raises the TTL to 4 min. It survives across docker restart (we apply it from entrypoint.sh) but breaks on every npm install -g openclaw upgrade and has to be reapplied (we automate that, but it shouldn't be needed).

Proposed Solution

Make the typing TTL configurable in openclaw.json, e.g.

{
  "channels": {
    "telegram": {
      "typingTtlMs": 600000
    }
  }
}

Default could reasonably be raised to 5 min (300000) given current Claude model latencies — a 2-min default predates the long-context era.

Environment

  • OpenClaw 2026.4.24 (commit cbcfdf6)
  • Telegram channel via the bundled GrammY adapter
  • Claude Opus 4.6 / 4.7 (provider anthropic-new)
  • Linux container, Node.js v22.22.1

Happy to send a PR if you'd like a hand wiring this through — but I don't know the canonical path from openclaw.json schema to the bundled value, so a pointer would help. Thanks for the project!

extent analysis

TL;DR

The most likely fix is to make the Telegram typing indicator TTL configurable in openclaw.json to accommodate longer response times.

Guidance

  • Review the proposed solution to make the typing TTL configurable in openclaw.json and consider implementing it to allow for flexible timeout settings.
  • Evaluate the current workaround that uses sed to patch the bundled file and assess its feasibility as a temporary solution until a more permanent fix is implemented.
  • Investigate the possibility of raising the default typing TTL to 5 minutes (300000 ms) to better align with current Claude model latencies.
  • Consider collaborating with the project maintainers to implement the proposed solution and provide a more robust and maintainable fix.

Example

{
  "channels": {
    "telegram": {
      "typingTtlMs": 600000
    }
  }
}

This example illustrates the proposed configuration format for setting the typing TTL in openclaw.json.

Notes

The current workaround may not be sustainable in the long term, and a more permanent solution is needed to address the issue. The proposed solution requires changes to the openclaw.json schema and the bundled value, which may require additional guidance from the project maintainers.

Recommendation

Apply the workaround by making the typing TTL configurable in openclaw.json, as it provides a more flexible and maintainable solution to accommodate varying response times.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING