#Context persistence issues after updating to 5.7 from 5.4 and installing discord plugin

1 messages · Page 1 of 1 (latest)

sweet walrus
#

I'm having problems with losing sessions/context immediately after updating to 5.7 from 5.4.

I was trying to wire up a discord bot for my DnD server and was "forced" to update to 5.7 for the discord plugin.

Symptoms: Erratic session context drops due to gateway restarts (the bot's words, not mine). I am trying to troubleshoot using the limited context windows available to me.

Verified not at Anthropic token limit (noticed that the bot drifted to opus-4-6 despite default being opus-4-7).

Was able to maintain extended conversations/context last night when on 5.4.

Have run <openclaw doctor f--fix>> (running on Ubuntu)

cerulean emberBOT
#

Bandit — I’d treat this as a Gateway restart/crash-loop issue first, not an Anthropic context-window issue. If the Gateway is actually restarting, the session/context symptoms are downstream.

A few useful checks, in order:

openclaw --version
openclaw status --all
openclaw gateway status --deep
openclaw channels status --probe

Then watch the log while sending a message that causes the context drop:

openclaw logs --follow
#

Two notes:

  • The repair command should be openclaw doctor --fix — if you literally ran openclaw doctor f--fix, that flag likely didn’t do what you wanted.
  • Since this started right after enabling Discord/plugin support, look specifically in the logs for Discord READY/runtime timeout, plugin runtime-deps repair, uncaught exception, SIGTERM, or repeated service supervisor restarts.

If you can paste the redacted output from openclaw --version, openclaw gateway status --deep, and the log lines around one restart, we can narrow it down fast. Docs for the exact triage ladder are here: https://docs.openclaw.ai/help/faq and https://docs.openclaw.ai/gateway/troubleshooting

sweet walrus
#

I am on OpenClaw 5.7.

This popped up for the <openclaw channels status --probe>>

Gateway event loop degraded: reasons=event_loop_utilization,cpu eventLoopDelayMaxMs=0 eventLoopUtilization=1 cpuCoreRatio=1.057

cerulean emberBOT
#

Yep, that’s a strong signal: the Gateway process is basically pegging one CPU core.

eventLoopUtilization=1 + cpuCoreRatio=1.057 means Node’s event loop was fully busy for that sample. On a small Ubuntu/VPS box, that can absolutely cause Discord reconnect/READY timeouts, health-monitor restarts, and then “lost context” symptoms.

Next thing I’d check is what is eating the Gateway loop:

openclaw logs --follow

Look around the same timestamp for repeated lines about plugin runtime deps, Discord reconnect/READY timeout, stale socket restart, memory/embedding work, or uncaught errors.

Also while it’s degraded:

top -H -p $(pgrep -f "openclaw.*gateway" | head -1)
#
openclaw status --all

A few likely culprits after 5.4 → 5.7 + Discord plugin:

  • bundled/plugin runtime dependency repair looping after upgrade
  • Discord gateway READY/reconnect timeout loop
  • memory/indexing/embedding work kicking in on a small machine
  • stale old install/service path causing weird upgrade behavior

For Discord specifically, if logs show READY timeout/reconnect churn, 5.7 has knobs you can try:

{
  channels: {
sweet walrus
#

The problem seems to have been fixed now that I have "fixed" my config issues with the discord plugin.

cerulean emberBOT
#

Nice — glad you found the config issue. That lines up with the event-loop warning: a bad Discord plugin/config loop can make the Gateway look like it’s “dropping context” when it’s really restarting or getting wedged.

If this is fixed now, please right-click the solution message → Apps → ✅ Mark Solution so Answer Overflow indexes it for the next person who hits this. 🦞