Skip to content

AM embedded run aborts memory_search tool calls; classifies as timeout despite model completion #74586

Open

Description

@islandpreneur007

AM embedded run aborts memory_search tool calls; classifies as timeout despite model completion

Version

OpenClaw 2026.4.26 (commit be8c246), running on .npm-global/lib/node_modules/openclaw/openclaw.mjs per governance/UPGRADE-SOP-NATIVE.md.

Plugin

active-memory (stock plugin, dist/extensions/active-memory/index.js).

Summary

Active Memory's embedded recall sub-agent has four correlated findings that together break AM functionality on a healthy gateway:

  1. AM produced status=timeout with summaryChars=0 across 5 sequential trigger runs spanning 2 different models and 2 different timeout budgets. Pass 5 enabled persistTranscripts: true; the persisted transcript shows every memory_search call from inside the embedded run returned "Aborted" (isError: true). Passes 1-4 produce the same status-line pattern but did not capture transcripts.
  2. The same memory_search call from a non-embedded session works correctly (1.656s, returns hits/empty cleanly, no abort) — isolating the bug to embedded-runner / AM tool bridge / abort propagation, not memory-core globally.
  3. The embedded runner classifies the run as status=timeout even when the assistant returns a normal NONE response in ~18s, well under the configured 60s budget.
  4. Prior-run prompt-error events leak into the next run's context as injected custom:openclaw:prompt-error events.

Reproduction

Trent (the AM-eligible agent on this deployment) is on openai-codex/gpt-5.5 session. AM config tested across 5 runs:

Pass model modelFallback timeoutMs persistTranscripts activeModel observed elapsedMs status summaryChars memory_search results
1 (unset) (unset) 15000 false openai-codex/gpt-5.5 41991 timeout 0 not visible
2 (unset) ollama-cloud/minimax-m2.5 15000 false openai-codex/gpt-5.5 46790 timeout 0 not visible
3 ollama-cloud/minimax-m2.5 ollama-cloud/minimax-m2.5 15000 false ollama-cloud/minimax-m2.5 45676 timeout 0 not visible
4 ollama-cloud/minimax-m2.5 ollama-cloud/minimax-m2.5 60000 false ollama-cloud/minimax-m2.5 97994 timeout 0 not visible
5 ollama-cloud/minimax-m2.5 ollama-cloud/minimax-m2.5 60000 true ollama-cloud/minimax-m2.5 94199 (plugin status); assistant returned NONE in ~18s (transcript) timeout 0 all "Aborted"

Pass 5's persisted transcript at ~/.openclaw/plugins/active-memory/transcripts/agents/trent/active-memory/active-memory-mokgeyo1-780d30df.jsonl shows:

19:36:18.009Z  session start
19:36:18.851Z  model_change → ollama-cloud/minimax-m2.5
19:36:19.091Z  prompt-error injected: "active-memory timeout after 60000ms | active-memory timeout after 60000ms"
                (bug 4 — stale prompt-error from prior pass leaks into this run)
19:36:19.107Z  user message (system prompt + recent context + trigger)
19:36:28.246Z  assistant: 9s reasoning, calls memory_search({query: "...", maxResults: 3})
19:36:28.250Z  toolResult: {content: [{type:"text",text:"Aborted"}], isError: true}
19:36:29.939Z  assistant retries with simpler query → toolResult: "Aborted"
19:36:31.670Z  assistant retries again → toolResult: "Aborted"
19:36:36.262Z  assistant: returns "NONE" (correct fallback per system prompt instructions)
19:36:36.519Z  embedded run: failover decision, reason=timeout, decision=surface_error
                (bug 3 — model returned NONE in 18s; classified timeout anyway)

Disambiguation test

From a non-embedded session on the same host/runtime: memory_search invoked directly completed in 1656ms, returned 0 hits, no abort. The same memory tool path is reachable outside the AM embedded run; only the AM embedded path aborts.

Conclusion

The bug is in the embedded runner's tool dispatch / abort propagation path, NOT in memory-core or the recall model. Specifically:

  • Whatever signals "abort" to the tool result is firing for every memory_search call within the embedded sub-agent
  • The model eventually handles it gracefully by returning NONE (note: it violates the prompt's one-tool-stop instruction by retrying 3x first, but it converges to a valid answer)
  • But the embedded runner declares the run a timeout even when the model returned cleanly within budget

System config (relevant excerpts)

{
  "plugins.entries.active-memory": {
    "enabled": true,
    "config": {
      "enabled": true,
      "agents": ["trent"],
      "allowedChatTypes": ["direct"],
      "queryMode": "recent",
      "promptStyle": "balanced",
      "timeoutMs": 60000,
      "maxSummaryChars": 220,
      "persistTranscripts": true,
      "logging": true,
      "model": "ollama-cloud/minimax-m2.5",
      "modelFallback": "ollama-cloud/minimax-m2.5"
    }
  }
}

tools.allow = [], tools.alsoAllow = []. Provider ollama-cloud configured with minimax-m2.5 allowlisted. Direct memory tool path on this host is responsive (per disambiguation test above) — failure scope is the AM embedded run.

Source pointers

  • dist/extensions/active-memory/index.js — around getModelRef candidates list (function definition at line 858, candidates array at lines 865-870 in this build) — chain-resolution model selection. (Related but separate doc/UX bug — see related filing.)
  • dist/extensions/active-memory/index.js — around the runEmbeddedPiAgent invocation (in this build, transcript path wiring runs roughly lines 893-955).
  • The Aborted toolResult appears to be coming from the embedded runner's abort controller. We did not narrow further — likely needs source-side investigation around the AM tool bridge / sub-agent setup path.

Suggested remediation areas (not authoritative — investigation needed)

  1. Investigate why memory_search tool dispatch aborts inside embedded runs. Compare embedded vs direct tool dispatch path.
  2. Embedded-run timeout classification should respect model completion. If the model returns within budget (whether useful content OR NONE), status=ok is the correct classification.
  3. Clear prior-run prompt-error events from the next-run context. Cross-run state leakage of error metadata is unexpected.

Impact

AM is functionally unusable on this deployment until the embedded-runner abort-propagation issue is fixed. All cloud-recall-model tuning and budget tuning are dead-end paths because the model never gets useful tool results regardless of model speed. Documented in 5 sequential test passes with controlled variable changes.

Reporter

islandpreneur007, with diagnostic support from Trent.

Activity

  1. clawsweeper commented on Apr 29, 2026

    @clawsweeper
    Contributor

    Codex review: this still needs some work.

    Summary
    Keep open: independent official-release reports and an existing assignee establish maintainer value, while narrower merged repairs do not demonstrate complete resolution.

    Reproducibility: Historical release reproductions are substantive, but this read-only review establishes no high-confidence current-main reproduction; the latest HTTP response excerpt does not prove terminal assistant completion.

    Next step
    Existing assignee osolmaz should correlate a current-main recall trace with tool outcomes, terminal completion, abort source, and cleanup before selecting a focused repair.

    Review details

    Best possible solution:

    Preserve grounded completed recall at its existing owner while accurately distinguishing deadlines, parent cancellation, failed execution, and cleanup outcomes.

    Do we have a high-confidence way to reproduce the issue?

    Historical release reproductions are substantive, but this read-only review establishes no high-confidence current-main reproduction; the latest HTTP response excerpt does not prove terminal assistant completion.

    Is this the best way to solve the issue?

    A correlated failing trace should identify the remaining owner defect before changing cancellation semantics, since current source already preserves several completed-result and timeout-partial cases.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • No correlated current-main trace identifies the initiating cancellation source after the intervening repairs.
    • The discussion combines genuine deadline exhaustion, tool aborts, context inflation, and cleanup races that may require separate regressions.

    Codex review notes: model internal, reasoning medium; reviewed against f92b9727b6b7.

    Label changes

    Label changes:

    No label changes.

    Label justifications:

    • P2: Optional recall reliability affects context and reply latency, but an urgent current-main regression is not established.
    • impact:session-state: Reported failures suppress recalled context and include stale error metadata appearing in subsequent recall runs.
    Evidence reviewed

    Acceptance criteria:

    • Capture a failing current-main interactive Active Memory recall with terminal events and the initiating abort source.
    • Establish a regression that fails before the selected repair and passes afterward.
    • Run affected Active Memory owner tests and proportional changed-file checks.
    • Repeat the failing scenario through an isolated Gateway and verify genuine deadline and parent-cancellation behavior.

    What I checked:

    • Existing assignment and substantive release reports: GitHub confirms osolmaz remains assigned. jorgeszabo and other operators report embedded-versus-direct failures on official releases; islandpreneur007 supplied July measurements and an August correction, and Suidge supplied September observations.
    • Corrections narrow the evidence: The reporter explicitly withdrew the timeout-doubling interpretation because setupGraceTimeoutMs is additive; Suidge separately moved the June error-remediation classification report to [Bug]: 2026.6.10 tool/runtime aborts surface as model idle timeout #97741.
    • HTTP response receipt does not establish assistant completion: The September excerpt records an HTTP 200 event-stream response before the deadline, but no terminal assistant event; current transport source logs that response after fetch returns and before returning the managed streaming response. (src/agents/provider-transport-fetch.ts:403, f92b9727b6b7)
    • Current recall settlement and deadline handling: The watchdog uses timeoutMs plus setupGraceTimeoutMs, embedded settlement stops transcript polling, and grounded completed results are handled separately from unavailable-tool evidence. (extensions/active-memory/recall.ts:280, f92b9727b6b7)
    • Completion across cleanup deadlines already has coverage: The inspected regression holds cleanup across the watchdog deadline: successful grounded execution retains its summary as timeout_partial, while execution or cleanup failures prevent injection; these tests were not executed. (extensions/active-memory/index.test.ts:1888, f92b9727b6b7)
    • Abort text does not identify its cause: The tool wrapper combines per-call and run-level signals and emits Aborted on cancellation, so that text alone cannot identify a premature timeout, parent cancellation, or another abort source. (src/agents/agent-tools.abort.ts:107, f92b9727b6b7)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge; those execution lanes are retired.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

    Reviewed October 27, 2026, 4:05 AM ET / 08:05 UTC.

  2. islandpreneur007 commented on Apr 29, 2026

    @islandpreneur007
    Author

    Thank you for the source-level pointers (extensions/active-memory/index.ts:2123, 2150, 2279; src/agents/pi-tools.abort.ts:6; src/agents/pi-embedded-runner/run/attempt.ts:722) — those locate the bug for the maintainer cleanly.

    Cross-link: the related copy/docs filing is #74587 (modelFallback warning text vs docs at line 440), narrowed in scope after a deeper docs read.

  3. michaelmanly commented on Apr 29, 2026

    @michaelmanly

    From this stack trace, this points to a ai api timeout problem. Running npx ai-doctor could help. It can fix missing timeout guards with safe request timeouts plus timeout and retry protection.

  4. jorgeszabo commented on Apr 30, 2026

    @jorgeszabo

    I can confirm this reproduces on OpenClaw 2026.4.27 (cbc2ba0) with active-memory on main, direct chat only, using openai-codex/gpt-5.5.

    Relevant config:

    {
      "enabled": true,
      "agents": ["main"],
      "allowedChatTypes": ["direct"],
      "queryMode": "message",
      "promptStyle": "strict",
      "timeoutMs": 10000,
      "maxSummaryChars": 220,
      "persistTranscripts": true,
      "logging": true,
      "model": "openai-codex/gpt-5.5"
    }

    Observed behavior:

    • Normal direct memory_search from the main agent works and returns relevant results.
    • Active Memory pre-reply hook starts correctly.
    • AM logs show:
      • status=timeout
      • elapsedMs≈10055
      • summaryChars=0
      • embedded runner reports timedOut=true, aborted=true
    • Persisted AM transcript shows two important cases:
      1. One AM run where memory_search tool calls returned "Aborted" and the assistant eventually returned NONE.
      2. Another AM run where memory_search returned relevant memory results, but the wrapper still hit timeout and aborted before a compact summary was returned. Final assistant stop reason was aborted / This operation was aborted.

    So this does not appear to be “no memory found.” Relevant memory exists and direct memory tools work. The failure is in the AM embedded recall path / abort / timeout handling before the summary can be surfaced.

    This matches the issue’s diagnosis closely.

  5. M-Lietz commented on May 5, 2026

    @M-Lietz

    Third-party confirmation on OpenClaw 2026.5.4 (active-memory plugin, direct chat).

    We hit this bug consistently when AM inherited the session model. Initial config (mimo via session inheritance, recall used the same):

    {
      "enabled": true,
      "agents": ["main"],
      "allowedChatTypes": ["direct"],
      "queryMode": "recent",
      "promptStyle": "balanced",
      "timeoutMs": 25000,
      "maxSummaryChars": 150,
      "persistTranscripts": false,
      "cacheTtlMs": 60000
    }

    Pre-fix observation (xiaomi/mimo-v2.5-pro inherited): ~50% of recall runs hit the 25s timeout despite the model emitting a complete response — i.e. the embedded runner aborted the memory_search tool call and classified the run as timeout even though the underlying model finished. Matches the original report exactly.

    Workaround (decoupling AM from the chat model): explicit config.model="google/gemini-2.5-flash" + raised timeoutMs to 30000.

    Latencies after the workaround over 6 consecutive runs against the same workspace:

    # Latency Status Summary chars
    1 6.0s empty 0
    2 6.4s empty 0
    3 10.1s ok 146
    4 7.6s ok 54
    5 8.9s ok 146
    6 5.9s ok 150

    So 4/6 recover when the recall model is fast and small, but 2/6 still come back status=empty with no summary even though the gateway log shows the underlying gemini call returned successfully — which lines up with the abort-but-keep-going path described at extensions/active-memory/index.ts:2123,2150,2279. The model finishes, but the recall pipeline returns empty.

    Net: forcing a fast, dedicated recall model dramatically lowers the user-visible timeout rate, but the underlying tool-call-abort vs. completion-classification mismatch is still observable. Looking forward to whatever lands here.

  6. self-assigned this
    on May 29, 2026
  7. youyou-agent commented on Jun 7, 2026

    @youyou-agent

    Same issue confirmed on OpenClaw 2026.6.1 (upgraded from 2026.5.12).

    Our symptoms differ slightly from the original report — we see extremely fast aborts (25-94ms, not 10-60s timeouts):

    active-provider=deepseek activeModel=deepseek-v4-flash
    14:39:00  → start (before_prompt_build hook)
    14:39:00  + 88ms → AbortError (provider-transport-fetch, "This operation was aborted")
    14:39:03  → done status=unavailable elapsedMs=2607
    
    • timedOut: false, aborted: true
    • fallbackConfigured: false
    • Memory search from CLI (openclaw memory search) works fine — confirming the bug is isolated to the embedded runner abort propagation, as the OP described.

    The abort happens every time during interactive user sessions (18 occurrences today). The same memory_search call from non-embedded context runs normally.

    We also attempted the config.model workaround but our local models have insufficient context window. We will monitor this issue and the fix in #90739.

    Environment: Linux/WSL2, Node v22.22.1, DeepSeek V4 Flash, direct chat only.

  8. xdengli commented on Jun 7, 2026

    @xdengli

    Additional Evidence (2026-06-07)

    Encountering the same pattern with active-memory embedded runs. The model itself is working fine (main session uses it without issues), but the embedded runner aborts prematurely.

    Environment

    • OpenClaw: 2026.6.5-beta.2
    • Provider: xiaomi-token-plan/mimo-v2.5-pro
    • Endpoint: https://token-plan-cn.xiaomimimo.com/v1
    • Agent: product-manager
    • Fallbacks configured: minimax-portal/MiniMax-M3-highspeed, minimax-portal/MiniMax-M3

    Logs

    18:45:26+08:00 feishu[product_manager]: dispatching to agent (session=agent:product-manager:feishu:product_manager:direct:ou_7e52428423eabcd1505a3d86f2524b70)
    18:45:26+08:00 active-memory: agent=product-manager activeProvider=xiaomi-token-plan activeModel=mimo-v2.5-pro start timeoutMs=60000
    18:45:30+08:00 active-memory: agent=product-manager done status=unavailable elapsedMs=4003
    18:45:30+08:00 [model-fetch] error provider=xiaomi-token-plan api=openai-completions model=mimo-v2.5-pro elapsedMs=66 name=AbortError message=This operation was aborted
    18:45:32+08:00 embedded abort settle timed out: runId=active-memory-mq3nok3x timeoutMs=2000
    18:45:32+08:00 embedded_run_failover_decision decision=surface_error aborted=true
    

    Key Observations

    1. Timeout mismatch: active-memory configured timeoutMs=60000, but aborted after only 4 seconds
    2. Failover not triggered: Despite having fallbacks configured, system chose surface_error instead of trying fallback models
    3. Model is healthy: Main session uses the same provider/model without any issues
    4. Abort settle race condition: The embedded abort settle timed out at 2000ms suggests a race condition between abort signal and settle

    This confirms the bug is in the embedded runner's abort propagation path, not in the model provider.

  9. jcarterwil commented on Jun 9, 2026

    @jcarterwil

    Still reproduces on 2026.6.1 — confirming finding #2 (embedded vs non-embedded).

    The identical recall run as a standalone openclaw memory search returns in ~4s with relevant hits, while the embedded AM run logs done status=timeout summaryChars=0 / incomplete turn … payloads=0 stopReason=missing. Confirmed across both memory backends (qmd and builtin + OpenAI embeddings) and both models (deepseek-v4-flash and openai/gpt-5.4-mini), so it's isolated to the embedded-runner / AM tool-bridge path, not memory-core or the model. Also seen via the Codex app-server path (more detail in #86996).

  10. islandpreneur007 commented on Jun 9, 2026

    @islandpreneur007
    Author

    Current-version repro on 2026.6.5-beta.2: still reproduces intermittently.

    Same agent/model/config produced both successful Active Memory summaries and the #74586 incomplete-turn signature. This is not the separate force-restart collateral case (codex app-server client closed before turn completed).

    Journal source:

    journalctl -u openclaw.service --since '2026-06-09 16:55:00 UTC' --until '2026-06-09 17:34:00 UTC' --no-pager

    #74586 abort signature:

    Jun 09 16:55:31 ubuntu-m-2vcpu-16gb-tor1-01 node[1333317]: 2026-06-09T16:55:31.941+00:00 [agent/embedded] incomplete turn detected: runId=active-memory-mq6vqwqn-1f8d0103 sessionId=active-memory-mq6vqwqn-1f8d0103 provider=openai/gpt-5.5 stopReason=missing hasLastAssistant=no hasCurrentAttemptAssistant=no payloads=0 tools=4 replaySafe=no compactions=0 planningRetries=0/2 reasoningRetries=0/2 emptyRetries=0/1 missingAssistantRetries=0/1 — surfacing error to user
    Jun 09 16:56:29 ubuntu-m-2vcpu-16gb-tor1-01 node[1333317]: 2026-06-09T16:56:29.963+00:00 [agent/embedded] incomplete turn detected: runId=active-memory-mq6vs5pc-05ae992e sessionId=active-memory-mq6vs5pc-05ae992e provider=openai/gpt-5.5 stopReason=missing hasLastAssistant=no hasCurrentAttemptAssistant=no payloads=0 tools=4 replaySafe=no compactions=0 planningRetries=0/2 reasoningRetries=0/2 emptyRetries=0/1 missingAssistantRetries=0/1 — surfacing error to user
    Jun 09 16:58:08 ubuntu-m-2vcpu-16gb-tor1-01 node[1333317]: 2026-06-09T16:58:08.911+00:00 [agent/embedded] incomplete turn detected: runId=active-memory-mq6vua48-b36cdbed sessionId=active-memory-mq6vua48-b36cdbed provider=openai/gpt-5.5 stopReason=missing hasLastAssistant=no hasCurrentAttemptAssistant=no payloads=0 tools=2 replaySafe=no compactions=0 planningRetries=0/2 reasoningRetries=0/2 emptyRetries=0/1 missingAssistantRetries=0/1 — surfacing error to user
    Jun 09 16:59:54 ubuntu-m-2vcpu-16gb-tor1-01 node[1333317]: 2026-06-09T16:59:54.264+00:00 [agent/embedded] incomplete turn detected: runId=active-memory-mq6vwjf4-faae284a sessionId=active-memory-mq6vwjf4-faae284a provider=openai/gpt-5.5 stopReason=missing hasLastAssistant=no hasCurrentAttemptAssistant=no payloads=0 tools=1 replaySafe=no compactions=0 planningRetries=0/2 reasoningRetries=0/2 emptyRetries=0/1 missingAssistantRetries=0/1 — surfacing error to user
    

    Same current runtime also succeeds intermittently:

    Jun 09 17:05:31 ubuntu-m-2vcpu-16gb-tor1-01 node[1342077]: 2026-06-09T17:05:31.892+00:00 [plugins] active-memory: agent=main session=agent:main:telegram:direct:6431390076 activeProvider=openai activeModel=gpt-5.5 done status=ok elapsedMs=58924 summaryChars=209
    Jun 09 17:30:20 ubuntu-m-2vcpu-16gb-tor1-01 node[1344140]: 2026-06-09T17:30:20.498+00:00 [plugins] active-memory: agent=main session=agent:main:telegram:direct:6431390076 activeProvider=openai activeModel=gpt-5.5 done status=ok elapsedMs=35071 summaryChars=182
    Jun 09 17:33:19 ubuntu-m-2vcpu-16gb-tor1-01 node[1344140]: 2026-06-09T17:33:19.286+00:00 [plugins] active-memory: agent=main session=agent:main:lancedb-cleanup-proof-20260609t1731z activeProvider=openai activeModel=gpt-5.5 done status=ok elapsedMs=35371 summaryChars=150
    

    Explicitly excluded as a separate restart-boundary failure, not this issue:

    Jun 09 17:04:15 ubuntu-m-2vcpu-16gb-tor1-01 node[1333317]: 2026-06-09T17:04:15.067+00:00 [agent/embedded] codex app-server client closed before turn completed
    Jun 09 17:07:50 ubuntu-m-2vcpu-16gb-tor1-01 node[1342077]: 2026-06-09T17:07:50.062+00:00 [plugins] active-memory: memory sub-agent failed, skipping recall: codex app-server client closed before turn completed
    
  11. xdengli commented on Jun 11, 2026

    @xdengli

    Reproducing this pattern on OpenClaw 2026.6.5 (5181e4f) — additional evidence from a separate deployment. Reporting as @xdengli.

    Confirming this exact pattern is reproducible here. Same shape, different provider. Two consecutive incidents in one minute on active-memory plugin (a different agent, not trent). Persisted transcripts were not enabled, so I only have log-level evidence — no jsonl.

    Environment

    • OpenClaw 2026.6.5 (commit 5181e4f) — two minor versions above the reporter's 2026.4.26
    • active-memory plugin enabled, agents: ["product-manager"], queryMode: "recent", timeoutMs: 60000, persistTranscripts: false
    • Provider: xiaomi-token-plan, model mimo-v2.5-pro (vs. reporter's ollama-cloud/minimax-m2.5)
    • Same timeoutMs: 2000 abort-settle window observed in the embedded runner

    Incident 1 — 10:24:42 → 10:24:50 (elapsed 5807ms)

    10:24:42 info  plugins active-memory: agent=product-manager start timeoutMs=60000
    10:24:48 info  plugins active-memory: done status=unavailable elapsedMs=5807 summaryChars=0
    10:24:48 warn  provider-transport-fetch [model-fetch] error provider=xiaomi-token-plan
                    model=mimo-v2.5-pro elapsedMs=77 name=AbortError
                    message=This operation was aborted
    10:24:50 warn  agent/embedded embedded abort settle timed out:
                    runId=active-memory-mq35sm8g-3f16618b timeoutMs=2000
    10:24:50 warn  agent/embedded embedded_run_failover_decision
                    decision=surface_error provider=xiaomi-token-plan model=mimo-v2.5-pro
                    profileId=sha256:518d9468172e fallbackConfigured=false
                    timedOut=false aborted=true
    

    Incident 2 — 10:33:34 → 10:33:37 (elapsed 1826ms, AFTER adding an agent-level fallback)

    10:33:34 info  plugins active-memory: agent=product-manager start timeoutMs=60000
    10:33:35 info  plugins active-memory: done status=unavailable elapsedMs=1826 summaryChars=0
    10:33:35 warn  provider-transport-fetch [model-fetch] error provider=xiaomi-token-plan
                    model=mimo-v2.5-pro elapsedMs=95 name=AbortError
                    message=This operation was aborted
    10:33:37 warn  agent/embedded embedded abort settle timed out:
                    runId=active-memory-mq3640ah-5e374265 timeoutMs=2000
    10:33:37 warn  agent/embedded embedded_run_failover_decision
                    decision=surface_error provider=xiaomi-token-plan model=mimo-v2.5-pro
                    profileId=sha256:518d9468172e fallbackConfigured=true
                    timedOut=false aborted=true
    

    Things worth flagging beyond the reporter's three findings

    1. aborted=true AND timedOut=false in both incidents. This matches the reporter's "classified as timeout despite model completion" — the embedded runner is firing abort, not timeout. The AbortError originates at the provider-transport layer (elapsedMs=77 and 95 for the failed model fetch — way below any budget).

    2. Adding an agent-level fallback did NOT help. Incident 2 happened ~9 minutes after I configured a fallback model for product-manager. The embedded_run_failover_decision line shows fallbackConfigured=true, but decision is still surface_error. This confirms the reporter's hypothesis: the bug is in the embedded runner's abort path, not in provider selection.

    3. Fail-fast timing. Incidents 1 and 2 took 5807ms and 1826ms respectively — both well below the 60000ms timeoutMs. The shorter second incident suggests the abort is not budget-driven; it fires on a different signal (likely the provider's transport-level abort propagating up).

    4. Profile id is identical across incidents (sha256:518d9468172e) — the AM plugin reuses the same profile on each trigger; failure is not correlated with provider rotation.

    Hypothesis (consistent with reporter): The AbortError is being raised by the provider-transport layer (most likely a request-cancellation / connection-reset signal) and propagated up into the embedded runner's abort controller. The 2-second timeoutMs settle is then triggering because the embedded runner can't reconcile the in-flight abort with model completion. status=timeout is the wrong classification — status=aborted or status=provider_abort would be more honest and would unblock the correct fallback path.

    Happy to enable persistTranscripts: true and re-run on a current build if it helps narrow this down.

  12. added
    P1High-priority user-facing bug, regression, or broken workflow.
    impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.
    impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.
    issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.
    on Jun 14, 2026
  13. 20 remaining items

  14. added
    P2Normal backlog priority with limited blast radius.
    and removed
    clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.
    impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.
    issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.
    P1High-priority user-facing bug, regression, or broken workflow.
    clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.
    on Aug 15, 2026
  15. Suidge commented on Sep 7, 2026

    @Suidge

    Additional live reproduction — OpenClaw 2026.9.2 (2026-09-07)

    Still reproduces on the current release. This is a fresh field reproduction from a Codex-agent session (native codex app-server, gpt-6-astra) on macOS arm64, OpenClaw 2026.9.2 (3928bad).

    Symptom: model completes (HTTP 200, SSE stream done) → Active Memory still classifies status=timeout and drops the result

    Gateway log excerpt (~/Library/Logs/openclaw/gateway.log, timestamps +08:00, session agent:agent-codex:discord:direct:557519782434308115):

    2026-09-07T16:54:43.612+08:00 [plugins] active-memory: ... start timeoutMs=8000 queryChars=252560 searchQueryChars=480
    2026-09-07T16:54:43.766+08:00 [provider-transport-fetch] [model-fetch] start provider=volcengine-plan api=openai-responses model=deepseek-v4-flash ... timeoutMs=undefined
    2026-09-07T16:54:49.925+08:00 [provider-transport-fetch] [model-fetch] response provider=volcengine-plan ... status=200 elapsedMs=6158 dispatcher=new contentType=text/event-stream
    2026-09-07T16:54:51.813+08:00 [plugins] active-memory: ... done status=timeout elapsedMs=8007 summaryChars=0
    

    The model call returned HTTP 200 in 6158 ms — under the 8000 ms budget — yet the plugin aborted and reported status=timeout elapsedMs=8007 summaryChars=0. The summary result is discarded even though the transport completed successfully. This matches finding #2/#3 from the original report (embedded run aborts tool calls / classifies timeout despite model completion).

    Contributing factor: recall context uses the full prompt envelope, not the bounded query

    Same session, queryMode: "recent" (default caps are recentUserChars=220 / recentAssistantChars=180), yet observed queryChars values across one afternoon:

    time queryChars searchQueryChars result
    16:51:30 188753 480 timeout, 0 chars
    16:54:43 252560 480 timeout, 0 chars
    16:58:31 317423 480 timeout, 0 chars
    17:01:34 198768 480 timeout, 0 chars
    17:09:05 236239 480 timeout, 0 chars
    17:18:43 301411 480 timeout, 0 chars

    searchQueryChars is correctly clamped to 480 (MAX_ACTIVE_MEMORY_SEARCH_QUERY_CHARS), but the recall sub-agent conversation context balloons to 188–317 KB from the assembled event.prompt envelope — the mechanism already tracked in #88077. A 200–300 KB prompt against an 8 s hook budget times out every single turn; the codex session was effectively wedged (each turn burned a full model call + abort before the main reply could start).

    Repeated occurrences in the same session: 15:30, 16:51, 16:54, 16:55, 16:58, 17:01, 17:09, 17:18 (all status=timeout, summaryChars=0, elapsedMs ≈ 8000).

    Configuration note (not a bug, but it lowers the blast radius)

    This deployment had timeoutMs: 8000 set, below the plugin default DEFAULT_TIMEOUT_MS = 15000. That is user configurable, but the default also times out at 15 s on a 300 KB envelope. The underlying issues (a) aborting an already-completed transport and (b) unbounded recall context remain regardless of the timeout value.

    Related

    Happy to provide full log excerpts or a redacted repro script on request.

  16. added
    clawsweeper:intake:bugPreliminary submission classification; full source review pending.
    and removed
    clawsweeper:intake:bugPreliminary submission classification; full source review pending.
    on Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2Normal backlog priority with limited blast radius.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions