openclaw - 💡(How to fix) Fix [Bug]: Failed assistant turns can hang after response.failed without error details [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#84173Fetched 2026-05-20 03:43:12
View on GitHub
Comments
1
Participants
2
Timeline
7
Reactions
1
Timeline (top)
labeled ×6commented ×1

A provider response.failed event with empty failureFields can leave the assistant turn hanging instead of completing cleanly.

Error Message

response.failed missing error details Unknown error (no error details in response) embedded_run_agent_end embedded_run_failover_decision FailoverError: Unknown error (no error details in response)

300: {"0":"{"subsystem":"openai-transport"}","1":{"event":"openai_responses_response_failed_without_details","provider":"azure-openai-responses","api":"openai-responses","transportModel":"gpt-5.4-mini","providerRuntimeFailureKind":"no_error_details","responseId":"resp_037d8b9998c84686006a0c606a81588196aeef3f60acfa76da","responseStatus":"failed","responseModel":"gpt-5.4-mini","responseObject":"response","metadataKeys":[],"requestIdHashes":[],"failureFieldsPreview":"{}","responsePreview":"{"id":"resp_037d8b9998c84686006a0c606a81588196aeef3f60acfa76da","status":"failed","model":"gpt-5.4-mini","object":"response","failureFields":{},"metadataKeys":[]}"},"2":"[responses] response.failed missing error details provider=azure-openai-responses api=openai-responses model=gpt-5.4-mini responseId=resp_037d8b9998c84686006a0c606a81588196aeef3f60acfa76da responseStatus=failed responseModel=gpt-5.4-mini requestIds=none metadataKeys=none failureFields={}"} 301: {"0":"{"subsystem":"openai-transport"}","1":"[responses] error provider=azure-openai-responses api=openai-responses model=gpt-5.4-mini name=Error status=undefined code=undefined type=undefined causeName=undefined causeCode=undefined message=Unknown error (no error details in response)"}

302: {"0":"{"subsystem":"agent/embedded"}","1":{"event":"embedded_run_agent_end","tags":["error_handling","lifecycle","agent_end","assistant_error"],"runId":"77a91e4f-c65d-436c-a375-95e973a9d02c","isError":true,"error":"Unknown error (no error details in response)","failoverReason":"no_error_details","model":"gpt-5.4-mini","provider":"azure-openai-responses","rawErrorPreview":"Unknown error (no error details in response)","rawErrorHash":"sha256:bbe1c35d3698","providerRuntimeFailureKind":"no_error_details"},"2":"embedded run agent end"} 303: {"0":"{"subsystem":"agent/embedded"}","1":{"event":"embedded_run_failover_decision","tags":["error_handling","failover","assistant","surface_error"],"runId":"77a91e4f-c65d-436c-a375-95e973a9d02c","stage":"assistant","decision":"surface_error","failoverReason":"no_error_details","profileFailureReason":"no_error_details","provider":"azure-openai-responses","model":"gpt-5.4-mini","sourceProvider":"azure-openai-responses","sourceModel":"gpt-5.4-mini","fallbackConfigured":false,"timedOut":false,"aborted":false,"rawErrorPreview":"Unknown error (no error details in response)","rawErrorHash":"sha256:bbe1c35d3698","providerRuntimeFailureKind":"no_error_details"},"2":"embedded run failover decision"}

304: {"0":"{"subsystem":"diagnostic"}","1":"lane task error: lane=main durationMs=38016 error="FailoverError: Unknown error (no error details in response)""} 305: {"0":"{"subsystem":"diagnostic"}","1":"lane task error: lane=session:agent:main:main durationMs=38019 error="FailoverError: Unknown error (no error details in response)""} 307: {"0":"Embedded agent failed before reply: Unknown error (no error details in response)"}

368: [responses] response.failed missing error details ... 369: [responses] error ... message=Unknown error (no error details in response) 370: embedded_run_agent_end ... isError:true ... no_error_details 372: embedded_run_failover_decision ... decision":"surface_error" ... 373: lane task error: lane=main durationMs=74544 error="FailoverError: Unknown error (no error details in response)" 376: Embedded agent failed before reply: Unknown error (no error details in response)

Root Cause

A provider response.failed event with empty failureFields can leave the assistant turn hanging instead of completing cleanly.

Code Example

response.failed missing error details
Unknown error (no error details in response)
embedded_run_agent_end
embedded_run_failover_decision
FailoverError: Unknown error (no error details in response)

300: {"0":"{\"subsystem\":\"openai-transport\"}","1":{"event":"openai_responses_response_failed_without_details","provider":"azure-openai-responses","api":"openai-responses","transportModel":"gpt-5.4-mini","providerRuntimeFailureKind":"no_error_details","responseId":"resp_037d8b9998c84686006a0c606a81588196aeef3f60acfa76da","responseStatus":"failed","responseModel":"gpt-5.4-mini","responseObject":"response","metadataKeys":[],"requestIdHashes":[],"failureFieldsPreview":"{}","responsePreview":"{\"id\":\"resp_037d8b9998c84686006a0c606a81588196aeef3f60acfa76da\",\"status\":\"failed\",\"model\":\"gpt-5.4-mini\",\"object\":\"response\",\"failureFields\":{},\"metadataKeys\":[]}"},"2":"[responses] response.failed missing error details provider=azure-openai-responses api=openai-responses model=gpt-5.4-mini responseId=resp_037d8b9998c84686006a0c606a81588196aeef3f60acfa76da responseStatus=failed responseModel=gpt-5.4-mini requestIds=none metadataKeys=none failureFields={}"}
301: {"0":"{\"subsystem\":\"openai-transport\"}","1":"[responses] error provider=azure-openai-responses api=openai-responses model=gpt-5.4-mini name=Error status=undefined code=undefined type=undefined causeName=undefined causeCode=undefined message=Unknown error (no error details in response)"}

302: {"0":"{\"subsystem\":\"agent/embedded\"}","1":{"event":"embedded_run_agent_end","tags":["error_handling","lifecycle","agent_end","assistant_error"],"runId":"77a91e4f-c65d-436c-a375-95e973a9d02c","isError":true,"error":"Unknown error (no error details in response)","failoverReason":"no_error_details","model":"gpt-5.4-mini","provider":"azure-openai-responses","rawErrorPreview":"Unknown error (no error details in response)","rawErrorHash":"sha256:bbe1c35d3698","providerRuntimeFailureKind":"no_error_details"},"2":"embedded run agent end"}
303: {"0":"{\"subsystem\":\"agent/embedded\"}","1":{"event":"embedded_run_failover_decision","tags":["error_handling","failover","assistant","surface_error"],"runId":"77a91e4f-c65d-436c-a375-95e973a9d02c","stage":"assistant","decision":"surface_error","failoverReason":"no_error_details","profileFailureReason":"no_error_details","provider":"azure-openai-responses","model":"gpt-5.4-mini","sourceProvider":"azure-openai-responses","sourceModel":"gpt-5.4-mini","fallbackConfigured":false,"timedOut":false,"aborted":false,"rawErrorPreview":"Unknown error (no error details in response)","rawErrorHash":"sha256:bbe1c35d3698","providerRuntimeFailureKind":"no_error_details"},"2":"embedded run failover decision"}

304: {"0":"{\"subsystem\":\"diagnostic\"}","1":"lane task error: lane=main durationMs=38016 error=\"FailoverError: Unknown error (no error details in response)\""}
305: {"0":"{\"subsystem\":\"diagnostic\"}","1":"lane task error: lane=session:agent:main:main durationMs=38019 error=\"FailoverError: Unknown error (no error details in response)\""}
307: {"0":"Embedded agent failed before reply: Unknown error (no error details in response)"}

368: [responses] response.failed missing error details ...
369: [responses] error ... message=Unknown error (no error details in response)
370: embedded_run_agent_end ... isError:true ... no_error_details
372: embedded_run_failover_decision ... decision":"surface_error" ...
373: lane task error: lane=main durationMs=74544 error="FailoverError: Unknown error (no error details in response)"
376: Embedded agent failed before reply: Unknown error (no error details in response)
RAW_BUFFERClick to expand / collapse

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

A provider response.failed event with empty failureFields can leave the assistant turn hanging instead of completing cleanly.

Steps to reproduce

Run OpenClaw 2026.5.18 on Ubuntu 24.04.4 LTS with model azure-openai-responses/gpt-5.4-mini. Trigger a provider failure where the OpenAI Responses API returns status:"failed" with empty failureFields. Observe the turn logs reach embedded_run_agent_end and embedded_run_failover_decision with surface_error, but the turn does not finish cleanly.

Expected behavior

A failed turn should surface a terminal error and end cleanly instead of hanging.

Actual behavior

The logs show response.failed missing error details, normalization to Unknown error (no error details in response), embedded_run_agent_end, embedded_run_failover_decision, and lane task error: lane=main ... FailoverError: Unknown error (no error details in response). The user observed the session hanging after this failure.

OpenClaw version

2026.5.18

Operating system

Ubuntu 24.04.4 LTS

Install method

npm global

Model

azure-openai-responses/gpt-5.4-mini

Provider / routing chain

OpenClaw -> azure-openai-responses

Additional provider/model setup details

The Azure provider had no configured fallback chain. The failure occurred with gpt-5.4-mini and no error details in the provider response.

Logs, screenshots, and evidence

response.failed missing error details
Unknown error (no error details in response)
embedded_run_agent_end
embedded_run_failover_decision
FailoverError: Unknown error (no error details in response)

300: {"0":"{\"subsystem\":\"openai-transport\"}","1":{"event":"openai_responses_response_failed_without_details","provider":"azure-openai-responses","api":"openai-responses","transportModel":"gpt-5.4-mini","providerRuntimeFailureKind":"no_error_details","responseId":"resp_037d8b9998c84686006a0c606a81588196aeef3f60acfa76da","responseStatus":"failed","responseModel":"gpt-5.4-mini","responseObject":"response","metadataKeys":[],"requestIdHashes":[],"failureFieldsPreview":"{}","responsePreview":"{\"id\":\"resp_037d8b9998c84686006a0c606a81588196aeef3f60acfa76da\",\"status\":\"failed\",\"model\":\"gpt-5.4-mini\",\"object\":\"response\",\"failureFields\":{},\"metadataKeys\":[]}"},"2":"[responses] response.failed missing error details provider=azure-openai-responses api=openai-responses model=gpt-5.4-mini responseId=resp_037d8b9998c84686006a0c606a81588196aeef3f60acfa76da responseStatus=failed responseModel=gpt-5.4-mini requestIds=none metadataKeys=none failureFields={}"}
301: {"0":"{\"subsystem\":\"openai-transport\"}","1":"[responses] error provider=azure-openai-responses api=openai-responses model=gpt-5.4-mini name=Error status=undefined code=undefined type=undefined causeName=undefined causeCode=undefined message=Unknown error (no error details in response)"}

302: {"0":"{\"subsystem\":\"agent/embedded\"}","1":{"event":"embedded_run_agent_end","tags":["error_handling","lifecycle","agent_end","assistant_error"],"runId":"77a91e4f-c65d-436c-a375-95e973a9d02c","isError":true,"error":"Unknown error (no error details in response)","failoverReason":"no_error_details","model":"gpt-5.4-mini","provider":"azure-openai-responses","rawErrorPreview":"Unknown error (no error details in response)","rawErrorHash":"sha256:bbe1c35d3698","providerRuntimeFailureKind":"no_error_details"},"2":"embedded run agent end"}
303: {"0":"{\"subsystem\":\"agent/embedded\"}","1":{"event":"embedded_run_failover_decision","tags":["error_handling","failover","assistant","surface_error"],"runId":"77a91e4f-c65d-436c-a375-95e973a9d02c","stage":"assistant","decision":"surface_error","failoverReason":"no_error_details","profileFailureReason":"no_error_details","provider":"azure-openai-responses","model":"gpt-5.4-mini","sourceProvider":"azure-openai-responses","sourceModel":"gpt-5.4-mini","fallbackConfigured":false,"timedOut":false,"aborted":false,"rawErrorPreview":"Unknown error (no error details in response)","rawErrorHash":"sha256:bbe1c35d3698","providerRuntimeFailureKind":"no_error_details"},"2":"embedded run failover decision"}

304: {"0":"{\"subsystem\":\"diagnostic\"}","1":"lane task error: lane=main durationMs=38016 error=\"FailoverError: Unknown error (no error details in response)\""}
305: {"0":"{\"subsystem\":\"diagnostic\"}","1":"lane task error: lane=session:agent:main:main durationMs=38019 error=\"FailoverError: Unknown error (no error details in response)\""}
307: {"0":"Embedded agent failed before reply: Unknown error (no error details in response)"}

368: [responses] response.failed missing error details ...
369: [responses] error ... message=Unknown error (no error details in response)
370: embedded_run_agent_end ... isError:true ... no_error_details
372: embedded_run_failover_decision ... decision":"surface_error" ...
373: lane task error: lane=main durationMs=74544 error="FailoverError: Unknown error (no error details in response)"
376: Embedded agent failed before reply: Unknown error (no error details in response)

Impact and severity

Affected: sessions using azure-openai-responses/gpt-5.4-mini. Severity: blocks workflow when the turn hangs. Frequency: reproduced at least twice in the same session. Consequence: failed turns do not end cleanly.

Additional information

This appears to be a turn finalization issue in the embedded runner path. The exact prompt that triggered the failure is not recorded.

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…

FAQ

Expected behavior

A failed turn should surface a terminal error and end cleanly instead of hanging.

Still need to ship something?

×6

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

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Bug]: Failed assistant turns can hang after response.failed without error details [1 comments, 2 participants]