-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
Active Memory + Codex app-server path causes long response latency, hook timeouts, startup aborts, and gateway event-loop stalls #86996
Copy link
Copy link
Open
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper-recovery-stuckclawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.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.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.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.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Description
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper-recovery-stuckclawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.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.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.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.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Type
Fields
Priority
None yet
Summary
OpenClaw becomes very slow/unreliable for simple Telegram direct messages when using:
active-memoryenabledopenclaw-honchoas memory backendlossless-clawas context engineopenai/gpt-5.4-miniEven after pinning Active Memory to a cheaper/faster mini model with minimal thinking, the active-memory recall still times out and the logs show Codex app-server startup aborts in both the main lane and active-memory lane.
This suggests the issue is not Honcho itself or model intelligence/latency, but the OpenClaw runtime path around Active Memory embedded sub-agents, Codex app-server startup/thread binding, context-engine projection, and OpenAI/Codex auth prewarm.
Environment
2026.5.22 (a374c3a)v22.22.26.8.0-111-genericx64openclaw-honcholossless-clawRelevant config
{ "plugins": { "slots": { "memory": "openclaw-honcho", "contextEngine": "lossless-claw" }, "entries": { "active-memory": { "enabled": true, "config": { "enabled": true, "agents": ["main"], "allowedChatTypes": ["direct"], "queryMode": "message", "promptStyle": "strict", "thinking": "minimal", "timeoutMs": 2000, "setupGraceTimeoutMs": 0, "maxSummaryChars": 160, "recentUserTurns": 1, "recentAssistantTurns": 0, "recentUserChars": 180, "recentAssistantChars": 80, "cacheTtlMs": 60000, "circuitBreakerMaxTimeouts": 2, "circuitBreakerCooldownMs": 120000, "persistTranscripts": false, "logging": false, "model": "openai/gpt-5.4-mini" } } } }, "agents": { "defaults": { "model": { "primary": "openai/gpt-5.5" } } } }openclaw models status --jsonreports:So even
openai/gpt-5.4-miniappears to route through the Codex runtime/auth path in this setup.Reproduction
openai/gpt-5.5.openai/gpt-5.4-mini,thinking=minimal,timeoutMs=2000.openclaw agent \ --channel telegram \ --session-key agent:main:telegram:direct:perf-test-openclaw \ --message 'Perf test: reply with exactly: ok' \ --thinking minimal \ --timeout 90 \ --jsonExpected behavior
A trivial message should complete quickly. Active Memory should either complete within its bounded timeout or skip cleanly without blocking the main run, starving the event loop, or causing Codex app-server startup aborts.
Actual behavior
The test prompt eventually replies correctly, but wall time was about 61 seconds for a trivial
okresponse.The gateway logs show:
The same pattern appeared earlier with
timeoutMs=1000and with the inherited defaultopenai/gpt-5.5model.Why this looks like an OpenClaw runtime issue
lane=mainandlane=...active-memory...hittingcodex app-server startup aborted.Related public reports
Possibly related:
Request
Please investigate whether Active Memory embedded recall runs should avoid the Codex app-server/context-engine/auth prewarm path when configured with a lightweight OpenAI model, or whether the Codex app-server startup/auth path should be made non-blocking/isolated so Active Memory cannot stall the main gateway/event loop.
It would also help if
openai/gpt-*routing made it clearer whether a run is using direct OpenAI API auth vsopenai-codex/Codex app-server auth.