openclaw - 💡(How to fix) Fix [Bug]: HTTP 400 when calling gpt-5.2-codex / gpt-5.3-chat via OpenClaw (Azure OpenAI Responses adapter / reasoning item issue) [1 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#63500Fetched 2026-04-09 07:53:01
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Author
Participants
Timeline (top)
labeled ×2

When calling gpt-5.2-codex and/or gpt-5.3-chat through OpenClaw, requests fail with HTTP 400. This has been happening consistently and blocks normal usage of these models via OpenClaw (including via the Control UI). We have tried multiple configuration adjustments and restarts, but the issue persists.

Error Message

01:36:14+00:00 info OAuth/token status 01:36:14+00:00 info - none 01:37:48+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat disconnected code=1001 reason=n/a conn=8d46ef17-5d65-4f3b-a108-5ae136fdcc07 01:37:48+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat connected conn=d034835f-61c8-40cd-8114-6005003eeaed remote=127.0.0.1 client=openclaw-control-ui webchat vcontrol-ui 01:37:59+00:00 info hooks/session-memory {"subsystem":"hooks/session-memory"} Session context saved to ~/.openclaw/workspace/memory/2026-04-09-openclaw-ppt.md 01:49:22+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_agent_end","tags":["error_handling","lifecycle","agent_end","assistant_error"],"runId":"38eb075e-2273-4b09-837b-c88e714257b7","isError":true,"error":"400 Item 'rs_07f091ad1d9adbcb0069d7059e74a08190a5fd477877af8e27' of type 'reasoning' was provided without its required following item.","failoverReason":"format","model":"gpt-5.3-chat","provider":"AzureOpenAI-Three","rawErrorPreview":"400 Item 'rs_07f091ad1d9adbcb0069d7059e74a08190a5fd477877af8e27' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:ce60f0254cd4"} embedded run agent end 01:49:22+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_failover_decision","tags":["error_handling","failover","assistant","surface_error"],"runId":"38eb075e-2273-4b09-837b-c88e714257b7","stage":"assistant","decision":"surface_error","failoverReason":"format","profileFailureReason":"format","provider":"AzureOpenAI-Three","model":"gpt-5.3-chat","fallbackConfigured":false,"timedOut":false,"aborted":false,"rawErrorPreview":"400 Item 'rs_07f091ad1d9adbcb0069d7059e74a08190a5fd477877af8e27' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:ce60f0254cd4"} embedded run failover decision 01:56:20+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_agent_end","tags":["error_handling","lifecycle","agent_end","assistant_error"],"runId":"4aec705b-4eac-4cfc-b4db-25443f2bbddd","isError":true,"error":"400 Item 'rs_07f091ad1d9adbcb0069d7059e74a08190a5fd477877af8e27' of type 'reasoning' was provided without its required following item.","failoverReason":"format","model":"gpt-5.3-chat","provider":"AzureOpenAI-Three","rawErrorPreview":"400 Item 'rs_07f091ad1d9adbcb0069d7059e74a08190a5fd477877af8e27' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:ce60f0254cd4"} embedded run agent end 01:56:20+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_failover_decision","tags":["error_handling","failover","assistant","surface_error"],"runId":"4aec705b-4eac-4cfc-b4db-25443f2bbddd","stage":"assistant","decision":"surface_error","failoverReason":"format","profileFailureReason":"format","provider":"AzureOpenAI-Three","model":"gpt-5.3-chat","fallbackConfigured":false,"timedOut":false,"aborted":false,"rawErrorPreview":"400 Item 'rs_07f091ad1d9adbcb0069d7059e74a08190a5fd477877af8e27' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:ce60f0254cd4"} embedded run failover decision 02:03:13+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat disconnected code=1001 reason=n/a conn=d034835f-61c8-40cd-8114-6005003eeaed 02:03:14+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat connected conn=d6acde63-de18-4240-87c0-b794ebb7e0b4 remote=127.0.0.1 client=openclaw-control-ui webchat vcontrol-ui 02:03:27+00:00 info hooks/session-memory {"subsystem":"hooks/session-memory"} Session context saved to ~/.openclaw/workspace/memory/2026-04-09-openclaw-ppt.md 02:03:34+00:00 error [tools] read failed: ENOENT: no such file or directory, access '/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md' raw_params={"path":"/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md"} 02:03:34+00:00 error [tools] read failed: ENOENT: no such file or directory, access '/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md' raw_params={"path":"/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md"} 02:05:42+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ channels.status 113ms conn=78c8f339…0f98 id=e9ead1de…bc03 02:22:41+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ sessions.patch 70ms conn=d6acde63…e0b4 id=222ef69f…a49c 02:22:52+00:00 info hooks/session-memory {"subsystem":"hooks/session-memory"} Session context saved to ~/.openclaw/workspace/memory/2026-04-09-openclaw-400.md 02:23:01+00:00 error [tools] read failed: ENOENT: no such file or directory, access '/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md' raw_params={"path":"/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md"} 02:23:01+00:00 error [tools] read failed: ENOENT: no such file or directory, access '/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md' raw_params={"path":"/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md"} 02:23:03+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_agent_end","tags":["error_handling","lifecycle","agent_end","assistant_error"],"runId":"4480c412-bf71-47fd-8f1f-1819a704f62e","isError":true,"error":"400 Item 'rs_0a9c8f292ba8d94f0069d70d81b3f88190b225a1acd080df40' of type 'reasoning' was provided without its required following item.","failoverReason":"format","model":"gpt-5.2-codex","provider":"AzureOpenAI-Two","rawErrorPreview":"400 Item 'rs_0a9c8f292ba8d94f0069d70d81b3f88190b225a1acd080df40' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:1a22ac94e85f"} embedded run agent end 02:23:03+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_failover_decision","tags":["error_handling","failover","assistant","surface_error"],"runId":"4480c412-bf71-47fd-8f1f-1819a704f62e","stage":"assistant","decision":"surface_error","failoverReason":"format","profileFailureReason":"format","provider":"AzureOpenAI-Two","model":"gpt-5.2-codex","fallbackConfigured":false,"timedOut":false,"aborted":false,"rawErrorPreview":"400 Item 'rs_0a9c8f292ba8d94f0069d70d81b3f88190b225a1acd080df40' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:1a22ac94e85f"} embedded run failover decision 02:23:59+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ node.list 236ms conn=d6acde63…e0b4 id=62cab2ea…3b71 02:25:02+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_agent_end","tags":["error_handling","lifecycle","agent_end","assistant_error"],"runId":"63eea581-ac5e-4d5b-84dd-b4518bac06ae","isError":true,"error":"400 Item 'rs_04fe1e28c6b4edfb0069d70dfa980881978a8bb27c1b1a9ae0' of type 'reasoning' was provided without its required following item.","failoverReason":"format","model":"gpt-5.3-chat","provider":"AzureOpenAI-Three","rawErrorPreview":"400 Item 'rs_04fe1e28c6b4edfb0069d70dfa980881978a8bb27c1b1a9ae0' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:8aa32ab072ea"} embedded run agent end 02:25:02+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_failover_decision","tags":["error_handling","failover","assistant","surface_error"],"runId":"63eea581-ac5e-4d5b-84dd-b4518bac06ae","stage":"assistant","decision":"surface_error","failoverReason":"format","profileFailureReason":"format","provider":"AzureOpenAI-Three","model":"gpt-5.3-chat","fallbackConfigured":false,"timedOut":false,"aborted":false,"rawErrorPreview":"400 Item 'rs_04fe1e28c6b4edfb0069d70dfa980881978a8bb27c1b1a9ae0' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:8aa32ab072ea"} embedded run failover decision 02:27:02+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ usage.cost 52ms conn=d6acde63…e0b4 id=eb59b138…b009 02:27:02+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ sessions.usage 147ms conn=d6acde63…e0b4 id=715aaa9f…6442 02:27:04+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ sessions.usage 86ms conn=d6acde63…e0b4 id=1ffef62e…f4b1 02:29:03+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat disconnected code=1001 reason=n/a conn=d6acde63-de18-4240-87c0-b794ebb7e0b4 02:29:04+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat connected conn=e00e13dc-693d-4b8e-8226-9c033d113149 remote=127.0.0.1 client=openclaw-control-ui webchat vcontrol-ui 02:29:16+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_agent_end","tags":["error_handling","lifecycle","agent_end","assistant_error"],"runId":"9ded6bbe-b5b6-42bd-856d-807258ddd7d6","isError":true,"error":"400 Item 'rs_0a9c8f292ba8d94f0069d70d81b3f88190b225a1acd080df40' of type 'reasoning' was provided without its required following item.","failoverReason":"format","model":"gpt-5.2-codex","provider":"AzureOpenAI-Two","rawErrorPreview":"400 Item 'rs_0a9c8f292ba8d94f0069d70d81b3f88190b225a1acd080df40' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:1a22ac94e85f"} embedded run agent end 02:29:16+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_failover_decision","tags":["error_handling","failover","assistant","surface_error"],"runId":"9ded6bbe-b5b6-42bd-856d-807258ddd7d6","stage":"assistant","decision":"surface_error","failoverReason":"format","profileFailureReason":"format","provider":"AzureOpenAI-Two","model":"gpt-5.2-codex","fallbackConfigured":false,"timedOut":false,"aborted":false,"rawErrorPreview":"400 Item 'rs_0a9c8f292ba8d94f0069d70d81b3f88190b225a1acd080df40' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:1a22ac94e85f"} embedded run failover decision 02:31:23+00:00 warn gateway/reload {"subsystem":"gateway/reload"} config watcher error: Error: EACCES: permission denied, watch '/home/zjunsen/.openclaw/openclaw.json' 02:31:36+00:00 info gateway {"subsystem":"gateway"} signal SIGTERM received 02:31:36+00:00 info gateway {"subsystem":"gateway"} received SIGTERM; shutting down 02:31:36+00:00 info gmail-watcher {"subsystem":"gmail-watcher"} gmail watcher stopped 02:31:36+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat disconnected code=1012 reason=service restart conn=e00e13dc-693d-4b8e-8226-9c033d113149 02:31:42+00:00 info gateway {"subsystem":"gateway"} loading configuration… 02:31:42+00:00 info gateway {"subsystem":"gateway"} resolving authentication… 02:31:42+00:00 info gateway {"subsystem":"gateway"} starting... 02:31:44+00:00 info gateway {"subsystem":"gateway"} starting HTTP server... 02:31:44+00:00 info gateway/canvas {"subsystem":"gateway/canvas"} canvas host mounted at http://127.0.0.1:18789/__openclaw__/canvas/ (root /home/zjunsen/.openclaw/canvas) 02:31:44+00:00 info gateway {"subsystem":"gateway"} MCP loopback server listening on http://127.0.0.1:36899/mcp 02:31:44+00:00 info gateway/heartbeat {"subsystem":"gateway/heartbeat"} {"intervalMs":1800000} heartbeat: started 02:31:44+00:00 info gateway/health-monitor {"subsystem":"gateway/health-monitor"} started (interval: 300s, startup-grace: 60s, channel-connect-grace: 120s) 02:31:44+00:00 info gateway {"subsystem":"gateway"} agent model: azureopenai-three/gpt-5.3-chat 02:31:44+00:00 info gateway {"subsystem":"gateway"} ready (5 plugins, 1.9s) 02:31:44+00:00 info gateway {"subsystem":"gateway"} log file: /tmp/openclaw/openclaw-2026-04-09.log 02:31:44+00:00 info gateway {"subsystem":"gateway"} starting channels and sidecars... 02:31:44+00:00 info cron {"module":"cron","storePath":"/home/zjunsen/.openclaw/cron/jobs.json"} {"enabled":true,"jobs":0,"nextWakeAtMs":null} cron: started 02:31:44+00:00 info gateway/hooks {"subsystem":"gateway/hooks"} loaded 4 internal hook handlers 02:31:46+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat connected conn=81c9edb5-faaa-42be-adbe-a5321a5cd7b1 remote=127.0.0.1 client=openclaw-control-ui webchat vcontrol-ui 02:31:48+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ node.list 2118ms conn=81c9edb5…d7b1 id=4841cd9c…3c99 02:31:48+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ device.pair.list 2120ms conn=81c9edb5…d7b1 id=0be2e19b…7fe6 02:31:48+00:00 info bonjour: advertised gateway fqdn=clawbot (OpenClaw)._openclaw-gw._tcp.local. host=openclaw.local. port=18789 state=announcing 02:31:56+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ node.list 2105ms conn=81c9edb5…d7b1 id=dd483799…508e 02:32:00+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ chat.history 13852ms conn=81c9edb5…d7b1 id=46181648…615e 02:32:00+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ models.list 13823ms conn=81c9edb5…d7b1 id=d501916b…7751 02:32:00+00:00 warn gateway/model-pricing {"subsystem":"gateway/model-pricing"} pricing bootstrap failed: TimeoutError: The operation was aborted due to timeout 02:32:00+00:00 info plugins {"subsystem":"plugins"} embedded acpx runtime backend registered (cwd: /home/zjunsen/.openclaw/workspace) 02:32:00+00:00 info browser/server {"subsystem":"browser/server"} Browser control listening on http://127.0.0.1:18791/ (auth=token) 02:32:02+00:00 info plugins {"subsystem":"plugins"} embedded acpx runtime backend ready 02:32:37+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ sessions.patch 77ms conn=81c9edb5…d7b1 id=653a5804…dcae 02:33:14+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ node.list 1108ms conn=81c9edb5…d7b1 id=3d8df4e5…eae5 02:33:32+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ channels.status 108ms conn=a4c9ee2c…b8e9 id=c58d02f3…5622 02:35:31+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ sessions.patch 58ms conn=996d1e17…4f24 id=47eafaee…521f 02:35:33+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ logs.tail 136ms conn=3f12bd6a…5596 id=8ff43d4f…0a67 02:35:58+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_agent_end","tags":["error_handling","lifecycle","agent_end","assistant_error"],"runId":"fbb626b0-a5ec-4162-921c-b30e6f2238d2","isError":true,"error":"400 Item 'rs_0d7f5b2bff402fb40069d71089912c8190a2a93d7e8ccd6bb8' of type 'reasoning' was provided without its required following item.","failoverReason":"format","model":"gpt-5.2-codex","provider":"AzureOpenAI-Two","rawErrorPreview":"400 Item 'rs_0d7f5b2bff402fb40069d71089912c8190a2a93d7e8ccd6bb8' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:889555c4b0fe"} embedded run agent end 02:35:58+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_failover_decision","tags":["error_handling","failover","assistant","surface_error"],"runId":"fbb626b0-a5ec-4162-921c-b30e6f2238d2","stage":"assistant","decision":"surface_error","failoverReason":"format","profileFailureReason":"format","provider":"AzureOpenAI-Two","model":"gpt-5.2-codex","fallbackConfigured":false,"timedOut":false,"aborted":false,"rawErrorPreview":"400 Item 'rs_0d7f5b2bff402fb40069d71089912c8190a2a93d7e8ccd6bb8' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:889555c4b0fe"} embedded run failover decision 02:36:40+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_agent_end","tags":["error_handling","lifecycle","agent_end","assistant_error"],"runId":"976cf8cb-6728-41ca-b802-694f3704ab2e","isError":true,"error":"400 Item 'rs_0d7f5b2bff402fb40069d71089912c8190a2a93d7e8ccd6bb8' of type 'reasoning' was provided without its required following item.","failoverReason":"format","model":"gpt-5.2-codex","provider":"AzureOpenAI-Two","rawErrorPreview":"400 Item 'rs_0d7f5b2bff402fb40069d71089912c8190a2a93d7e8ccd6bb8' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:889555c4b0fe"} embedded run agent end 02:36:40+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_failover_decision","tags":["error_handling","failover","assistant","surface_error"],"runId":"976cf8cb-6728-41ca-b802-694f3704ab2e","stage":"assistant","decision":"surface_error","failoverReason":"format","profileFailureReason":"format","provider":"AzureOpenAI-Two","model":"gpt-5.2-codex","fallbackConfigured":false,"timedOut":false,"aborted":false,"rawErrorPreview":"400 Item 'rs_0d7f5b2bff402fb40069d71089912c8190a2a93d7e8ccd6bb8' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:889555c4b0fe"} embedded run failover decision 02:53:03+00:00 info gateway/reload {"subsystem":"gateway/reload"} config change detected; evaluating reload (models.providers.AzureOpenAI-One.api, models.providers.AzureOpenAI-One.models, models.providers.AzureOpenAI-Two.api, models.providers.AzureOpenAI-Two.models, models.providers.AzureOpenAI-Three.api, models.providers.AzureOpenAI-Three.models) 02:53:03+00:00 info gateway/reload {"subsystem":"gateway/reload"} config hot reload applied (models.providers.AzureOpenAI-One.api, models.providers.AzureOpenAI-One.models, models.providers.AzureOpenAI-Two.api, models.providers.AzureOpenAI-Two.models, models.providers.AzureOpenAI-Three.api, models.providers.AzureOpenAI-Three.models) 02:53:15+00:00 info gateway {"subsystem":"gateway"} signal SIGTERM received 02:53:15+00:00 info gateway {"subsystem":"gateway"} received SIGTERM; shutting down 02:53:15+00:00 info gmail-watcher {"subsystem":"gmail-watcher"} gmail watcher stopped 02:53:15+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat disconnected code=1012 reason=service restart conn=81c9edb5-faaa-42be-adbe-a5321a5cd7b1 02:53:22+00:00 info gateway {"subsystem":"gateway"} loading configuration… 02:53:22+00:00 info gateway {"subsystem":"gateway"} resolving authentication… 02:53:22+00:00 info gateway {"subsystem":"gateway"} starting... 02:53:24+00:00 info gateway {"subsystem":"gateway"} starting HTTP server... 02:53:24+00:00 info gateway/canvas {"subsystem":"gateway/canvas"} canvas host mounted at http://127.0.0.1:18789/__openclaw__/canvas/ (root /home/zjunsen/.openclaw/canvas) 02:53:24+00:00 info gateway {"subsystem":"gateway"} MCP loopback server listening on http://127.0.0.1:38919/mcp 02:53:24+00:00 info gateway/heartbeat {"subsystem":"gateway/heartbeat"} {"intervalMs":1800000} heartbeat: started 02:53:24+00:00 info gateway/health-monitor {"subsystem":"gateway/health-monitor"} started (interval: 300s, startup-grace: 60s, channel-connect-grace: 120s) 02:53:24+00:00 info gateway {"subsystem":"gateway"} agent model: azureopenai-three/gpt-5.3-chat 02:53:24+00:00 info gateway {"subsystem":"gateway"} ready (5 plugins, 1.8s) 02:53:24+00:00 info gateway {"subsystem":"gateway"} log file: /tmp/openclaw/openclaw-2026-04-09.log 02:53:24+00:00 info gateway {"subsystem":"gateway"} starting channels and sidecars... 02:53:24+00:00 info cron {"module":"cron","storePath":"/home/zjunsen/.openclaw/cron/jobs.json"} {"enabled":true,"jobs":0,"nextWakeAtMs":null} cron: started 02:53:24+00:00 info gateway/hooks {"subsystem":"gateway/hooks"} loaded 4 internal hook handlers 02:53:26+00:00 info bonjour: advertised gateway fqdn=clawbot (OpenClaw)._openclaw-gw._tcp.local. host=openclaw.local. port=18789 state=announcing 02:53:48+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat connected conn=f7405b33-10ce-40cd-927d-036fdddaae2f remote=127.0.0.1 client=openclaw-control-ui webchat vcontrol-ui 02:53:58+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ node.list 9825ms conn=f7405b33…ae2f id=a040fcc1…5ddc 02:53:58+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ device.pair.list 9828ms conn=f7405b33…ae2f id=dbe9324a…b5f6 02:53:59+00:00 warn gateway/ws {"subsystem":"gateway/ws"} handshake timeout conn=28808b43-0196-4051-a160-8a165a197ca5 remote=127.0.0.1 02:54:02+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ chat.history 13534ms conn=f7405b33…ae2f id=f394c5b2…3b54 02:54:02+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ models.list 13509ms conn=f7405b33…ae2f id=302d6ed8…0ba4 02:54:02+00:00 info plugins {"subsystem":"plugins"} embedded acpx runtime backend registered (cwd: /home/zjunsen/.openclaw/workspace) 02:54:02+00:00 info browser/server {"subsystem":"browser/server"} Browser control listening on http://127.0.0.1:18791/ (auth=token) 02:54:02+00:00 warn gateway/ws {"subsystem":"gateway/ws"} {"cause":"handshake-timeout","handshake":"failed","durationMs":13671,"lastFrameType":"req","lastFrameMethod":"connect","lastFrameId":"81badb38-5d6b-4c78-b622-c7ba9d403fce","host":"127.0.0.1:18789","handshakeMs":10616} closed before connect conn=28808b43-0196-4051-a160-8a165a197ca5 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1000 reason=n/a 02:54:02+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ node.list 51ms conn=f7405b33…ae2f id=21904193…573c 02:54:02+00:00 error gateway connect failed: Error: gateway closed (1000): 02:54:02+00:00 error gateway connect failed: Error: gateway closed (1000): 02:54:04+00:00 info plugins {"subsystem":"plugins"} embedded acpx runtime backend ready 03:02:21+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✗ sessions.delete 17ms errorCode=INVALID_REQUEST errorMessage=Cannot delete the main session (agent:main:main). conn=f7405b33…ae2f id=bb052cbf…7cee 03:02:21+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ sessions.delete 55ms conn=f7405b33…ae2f id=8551123f…a7a1 03:02:37+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ node.list 1321ms conn=f7405b33…ae2f id=bb8d3383…8aba 03:02:45+00:00 info hooks/session-memory {"subsystem":"hooks/session-memory"} Session context saved to ~/.openclaw/workspace/memory/2026-04-09-codex-error.md 03:02:54+00:00 error [tools] read failed: ENOENT: no such file or directory, access '/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md' raw_params={"path":"/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md"} 03:02:54+00:00 error [tools] read failed: ENOENT: no such file or directory, access '/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md' raw_params={"path":"/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md"} 03:02:56+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_agent_end","tags":["error_handling","lifecycle","agent_end","assistant_error"],"runId":"34ff1968-8412-4e56-bd66-c546121842ff","isError":true,"error":"400 Item 'rs_00bf8d6f950b47260069d716dae0e881938296d799c76d0273' of type 'reasoning' was provided without its required following item.","failoverReason":"format","model":"gpt-5.3-chat","provider":"AzureOpenAI-Three","rawErrorPreview":"400 Item 'rs_00bf8d6f950b47260069d716dae0e881938296d799c76d0273' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:497f55a2714f"} embedded run agent end 03:02:56+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_failover_decision","tags":["error_handling","failover","assistant","surface_error"],"runId":"34ff1968-8412-4e56-bd66-c546121842ff","stage":"assistant","decision":"surface_error","failoverReason":"format","profileFailureReason":"format","provider":"AzureOpenAI-Three","model":"gpt-5.3-chat","fallbackConfigured":false,"timedOut":false,"aborted":false,"rawErrorPreview":"400 Item 'rs_00bf8d6f950b47260069d716dae0e881938296d799c76d0273' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:497f55a2714f"} embedded run failover decision

Root Cause

When calling gpt-5.2-codex and/or gpt-5.3-chat through OpenClaw, requests fail with HTTP 400. This has been happening consistently and blocks normal usage of these models via OpenClaw (including via the Control UI). We have tried multiple configuration adjustments and restarts, but the issue persists.

Fix Action

Fix / Workaround

01:36:14+00:00 info OAuth/token status
01:36:14+00:00 info - none
01:37:48+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat disconnected code=1001 reason=n/a conn=8d46ef17-5d65-4f3b-a108-5ae136fdcc07
01:37:48+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat connected conn=d034835f-61c8-40cd-8114-6005003eeaed remote=127.0.0.1 client=openclaw-control-ui webchat vcontrol-ui
01:37:59+00:00 info hooks/session-memory {"subsystem":"hooks/session-memory"} Session context saved to ~/.openclaw/workspace/memory/2026-04-09-openclaw-ppt.md
01:49:22+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_agent_end","tags":["error_handling","lifecycle","agent_end","assistant_error"],"runId":"38eb075e-2273-4b09-837b-c88e714257b7","isError":true,"error":"400 Item 'rs_07f091ad1d9adbcb0069d7059e74a08190a5fd477877af8e27' of type 'reasoning' was provided without its required following item.","failoverReason":"format","model":"gpt-5.3-chat","provider":"AzureOpenAI-Three","rawErrorPreview":"400 Item 'rs_07f091ad1d9adbcb0069d7059e74a08190a5fd477877af8e27' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:ce60f0254cd4"} embedded run agent end
01:49:22+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_failover_decision","tags":["error_handling","failover","assistant","surface_error"],"runId":"38eb075e-2273-4b09-837b-c88e714257b7","stage":"assistant","decision":"surface_error","failoverReason":"format","profileFailureReason":"format","provider":"AzureOpenAI-Three","model":"gpt-5.3-chat","fallbackConfigured":false,"timedOut":false,"aborted":false,"rawErrorPreview":"400 Item 'rs_07f091ad1d9adbcb0069d7059e74a08190a5fd477877af8e27' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:ce60f0254cd4"} embedded run failover decision
01:56:20+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_agent_end","tags":["error_handling","lifecycle","agent_end","assistant_error"],"runId":"4aec705b-4eac-4cfc-b4db-25443f2bbddd","isError":true,"error":"400 Item 'rs_07f091ad1d9adbcb0069d7059e74a08190a5fd477877af8e27' of type 'reasoning' was provided without its required following item.","failoverReason":"format","model":"gpt-5.3-chat","provider":"AzureOpenAI-Three","rawErrorPreview":"400 Item 'rs_07f091ad1d9adbcb0069d7059e74a08190a5fd477877af8e27' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:ce60f0254cd4"} embedded run agent end
01:56:20+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_failover_decision","tags":["error_handling","failover","assistant","surface_error"],"runId":"4aec705b-4eac-4cfc-b4db-25443f2bbddd","stage":"assistant","decision":"surface_error","failoverReason":"format","profileFailureReason":"format","provider":"AzureOpenAI-Three","model":"gpt-5.3-chat","fallbackConfigured":false,"timedOut":false,"aborted":false,"rawErrorPreview":"400 Item 'rs_07f091ad1d9adbcb0069d7059e74a08190a5fd477877af8e27' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:ce60f0254cd4"} embedded run failover decision
02:03:13+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat disconnected code=1001 reason=n/a conn=d034835f-61c8-40cd-8114-6005003eeaed
02:03:14+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat connected conn=d6acde63-de18-4240-87c0-b794ebb7e0b4 remote=127.0.0.1 client=openclaw-control-ui webchat vcontrol-ui
02:03:27+00:00 info hooks/session-memory {"subsystem":"hooks/session-memory"} Session context saved to ~/.openclaw/workspace/memory/2026-04-09-openclaw-ppt.md
02:03:34+00:00 error [tools] read failed: ENOENT: no such file or directory, access '/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md' raw_params={"path":"/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md"}
02:03:34+00:00 error [tools] read failed: ENOENT: no such file or directory, access '/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md' raw_params={"path":"/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md"}
02:05:42+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ channels.status 113ms conn=78c8f339…0f98 id=e9ead1de…bc03
02:22:41+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ sessions.patch 70ms conn=d6acde63…e0b4 id=222ef69f…a49c
02:22:52+00:00 info hooks/session-memory {"subsystem":"hooks/session-memory"} Session context saved to ~/.openclaw/workspace/memory/2026-04-09-openclaw-400.md
02:23:01+00:00 error [tools] read failed: ENOENT: no such file or directory, access '/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md' raw_params={"path":"/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md"}
02:23:01+00:00 error [tools] read failed: ENOENT: no such file or directory, access '/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md' raw_params={"path":"/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md"}
02:23:03+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_agent_end","tags":["error_handling","lifecycle","agent_end","assistant_error"],"runId":"4480c412-bf71-47fd-8f1f-1819a704f62e","isError":true,"error":"400 Item 'rs_0a9c8f292ba8d94f0069d70d81b3f88190b225a1acd080df40' of type 'reasoning' was provided without its required following item.","failoverReason":"format","model":"gpt-5.2-codex","provider":"AzureOpenAI-Two","rawErrorPreview":"400 Item 'rs_0a9c8f292ba8d94f0069d70d81b3f88190b225a1acd080df40' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:1a22ac94e85f"} embedded run agent end
02:23:03+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_failover_decision","tags":["error_handling","failover","assistant","surface_error"],"runId":"4480c412-bf71-47fd-8f1f-1819a704f62e","stage":"assistant","decision":"surface_error","failoverReason":"format","profileFailureReason":"format","provider":"AzureOpenAI-Two","model":"gpt-5.2-codex","fallbackConfigured":false,"timedOut":false,"aborted":false,"rawErrorPreview":"400 Item 'rs_0a9c8f292ba8d94f0069d70d81b3f88190b225a1acd080df40' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:1a22ac94e85f"} embedded run failover decision
02:23:59+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ node.list 236ms conn=d6acde63…e0b4 id=62cab2ea…3b71
02:25:02+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_agent_end","tags":["error_handling","lifecycle","agent_end","assistant_error"],"runId":"63eea581-ac5e-4d5b-84dd-b4518bac06ae","isError":true,"error":"400 Item 'rs_04fe1e28c6b4edfb0069d70dfa980881978a8bb27c1b1a9ae0' of type 'reasoning' was provided without its required following item.","failoverReason":"format","model":"gpt-5.3-chat","provider":"AzureOpenAI-Three","rawErrorPreview":"400 Item 'rs_04fe1e28c6b4edfb0069d70dfa980881978a8bb27c1b1a9ae0' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:8aa32ab072ea"} embedded run agent end
02:25:02+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_failover_decision","tags":["error_handling","failover","assistant","surface_error"],"runId":"63eea581-ac5e-4d5b-84dd-b4518bac06ae","stage":"assistant","decision":"surface_error","failoverReason":"format","profileFailureReason":"format","provider":"AzureOpenAI-Three","model":"gpt-5.3-chat","fallbackConfigured":false,"timedOut":false,"aborted":false,"rawErrorPreview":"400 Item 'rs_04fe1e28c6b4edfb0069d70dfa980881978a8bb27c1b1a9ae0' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:8aa32ab072ea"} embedded run failover decision
02:27:02+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ usage.cost 52ms conn=d6acde63…e0b4 id=eb59b138…b009
02:27:02+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ sessions.usage 147ms conn=d6acde63…e0b4 id=715aaa9f…6442
02:27:04+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ sessions.usage 86ms conn=d6acde63…e0b4 id=1ffef62e…f4b1
02:29:03+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat disconnected code=1001 reason=n/a conn=d6acde63-de18-4240-87c0-b794ebb7e0b4
02:29:04+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat connected conn=e00e13dc-693d-4b8e-8226-9c033d113149 remote=127.0.0.1 client=openclaw-control-ui webchat vcontrol-ui
02:29:16+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_agent_end","tags":["error_handling","lifecycle","agent_end","assistant_error"],"runId":"9ded6bbe-b5b6-42bd-856d-807258ddd7d6","isError":true,"error":"400 Item 'rs_0a9c8f292ba8d94f0069d70d81b3f88190b225a1acd080df40' of type 'reasoning' was provided without its required following item.","failoverReason":"format","model":"gpt-5.2-codex","provider":"AzureOpenAI-Two","rawErrorPreview":"400 Item 'rs_0a9c8f292ba8d94f0069d70d81b3f88190b225a1acd080df40' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:1a22ac94e85f"} embedded run agent end
02:29:16+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_failover_decision","tags":["error_handling","failover","assistant","surface_error"],"runId":"9ded6bbe-b5b6-42bd-856d-807258ddd7d6","stage":"assistant","decision":"surface_error","failoverReason":"format","profileFailureReason":"format","provider":"AzureOpenAI-Two","model":"gpt-5.2-codex","fallbackConfigured":false,"timedOut":false,"aborted":false,"rawErrorPreview":"400 Item 'rs_0a9c8f292ba8d94f0069d70d81b3f88190b225a1acd080df40' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:1a22ac94e85f"} embedded run failover decision
02:31:23+00:00 warn gateway/reload {"subsystem":"gateway/reload"} config watcher error: Error: EACCES: permission denied, watch '/home/zjunsen/.openclaw/openclaw.json'
02:31:36+00:00 info gateway {"subsystem":"gateway"} signal SIGTERM received
02:31:36+00:00 info gateway {"subsystem":"gateway"} received SIGTERM; shutting down
02:31:36+00:00 info gmail-watcher {"subsystem":"gmail-watcher"} gmail watcher stopped
02:31:36+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat disconnected code=1012 reason=service restart conn=e00e13dc-693d-4b8e-8226-9c033d113149
02:31:42+00:00 info gateway {"subsystem":"gateway"} loading configuration…
02:31:42+00:00 info gateway {"subsystem":"gateway"} resolving authentication…
02:31:42+00:00 info gateway {"subsystem":"gateway"} starting...
02:31:44+00:00 info gateway {"subsystem":"gateway"} starting HTTP server...
02:31:44+00:00 info gateway/canvas {"subsystem":"gateway/canvas"} canvas host mounted at http://127.0.0.1:18789/__openclaw__/canvas/ (root /home/zjunsen/.openclaw/canvas)
02:31:44+00:00 info gateway {"subsystem":"gateway"} MCP loopback server listening on http://127.0.0.1:36899/mcp
02:31:44+00:00 info gateway/heartbeat {"subsystem":"gateway/heartbeat"} {"intervalMs":1800000} heartbeat: started
02:31:44+00:00 info gateway/health-monitor {"subsystem":"gateway/health-monitor"} started (interval: 300s, startup-grace: 60s, channel-connect-grace: 120s)
02:31:44+00:00 info gateway {"subsystem":"gateway"} agent model: azureopenai-three/gpt-5.3-chat
02:31:44+00:00 info gateway {"subsystem":"gateway"} ready (5 plugins, 1.9s)
02:31:44+00:00 info gateway {"subsystem":"gateway"} log file: /tmp/openclaw/openclaw-2026-04-09.log
02:31:44+00:00 info gateway {"subsystem":"gateway"} starting channels and sidecars...
02:31:44+00:00 info cron {"module":"cron","storePath":"/home/zjunsen/.openclaw/cron/jobs.json"} {"enabled":true,"jobs":0,"nextWakeAtMs":null} cron: started
02:31:44+00:00 info gateway/hooks {"subsystem":"gateway/hooks"} loaded 4 internal hook handlers
02:31:46+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat connected conn=81c9edb5-faaa-42be-adbe-a5321a5cd7b1 remote=127.0.0.1 client=openclaw-control-ui webchat vcontrol-ui
02:31:48+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ node.list 2118ms conn=81c9edb5…d7b1 id=4841cd9c…3c99
02:31:48+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ device.pair.list 2120ms conn=81c9edb5…d7b1 id=0be2e19b…7fe6
02:31:48+00:00 info bonjour: advertised gateway fqdn=clawbot (OpenClaw)._openclaw-gw._tcp.local. host=openclaw.local. port=18789 state=announcing
02:31:56+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ node.list 2105ms conn=81c9edb5…d7b1 id=dd483799…508e
02:32:00+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ chat.history 13852ms conn=81c9edb5…d7b1 id=46181648…615e
02:32:00+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ models.list 13823ms conn=81c9edb5…d7b1 id=d501916b…7751
02:32:00+00:00 warn gateway/model-pricing {"subsystem":"gateway/model-pricing"} pricing bootstrap failed: TimeoutError: The operation was aborted due to timeout
02:32:00+00:00 info plugins {"subsystem":"plugins"} embedded acpx runtime backend registered (cwd: /home/zjunsen/.openclaw/workspace)
02:32:00+00:00 info browser/server {"subsystem":"browser/server"} Browser control listening on http://127.0.0.1:18791/ (auth=token)
02:32:02+00:00 info plugins {"subsystem":"plugins"} embedded acpx runtime backend ready
02:32:37+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ sessions.patch 77ms conn=81c9edb5…d7b1 id=653a5804…dcae
02:33:14+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ node.list 1108ms conn=81c9edb5…d7b1 id=3d8df4e5…eae5
02:33:32+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ channels.status 108ms conn=a4c9ee2c…b8e9 id=c58d02f3…5622
02:35:31+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ sessions.patch 58ms conn=996d1e17…4f24 id=47eafaee…521f
02:35:33+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ logs.tail 136ms conn=3f12bd6a…5596 id=8ff43d4f…0a67
02:35:58+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_agent_end","tags":["error_handling","lifecycle","agent_end","assistant_error"],"runId":"fbb626b0-a5ec-4162-921c-b30e6f2238d2","isError":true,"error":"400 Item 'rs_0d7f5b2bff402fb40069d71089912c8190a2a93d7e8ccd6bb8' of type 'reasoning' was provided without its required following item.","failoverReason":"format","model":"gpt-5.2-codex","provider":"AzureOpenAI-Two","rawErrorPreview":"400 Item 'rs_0d7f5b2bff402fb40069d71089912c8190a2a93d7e8ccd6bb8' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:889555c4b0fe"} embedded run agent end
02:35:58+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_failover_decision","tags":["error_handling","failover","assistant","surface_error"],"runId":"fbb626b0-a5ec-4162-921c-b30e6f2238d2","stage":"assistant","decision":"surface_error","failoverReason":"format","profileFailureReason":"format","provider":"AzureOpenAI-Two","model":"gpt-5.2-codex","fallbackConfigured":false,"timedOut":false,"aborted":false,"rawErrorPreview":"400 Item 'rs_0d7f5b2bff402fb40069d71089912c8190a2a93d7e8ccd6bb8' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:889555c4b0fe"} embedded run failover decision
02:36:40+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_agent_end","tags":["error_handling","lifecycle","agent_end","assistant_error"],"runId":"976cf8cb-6728-41ca-b802-694f3704ab2e","isError":true,"error":"400 Item 'rs_0d7f5b2bff402fb40069d71089912c8190a2a93d7e8ccd6bb8' of type 'reasoning' was provided without its required following item.","failoverReason":"format","model":"gpt-5.2-codex","provider":"AzureOpenAI-Two","rawErrorPreview":"400 Item 'rs_0d7f5b2bff402fb40069d71089912c8190a2a93d7e8ccd6bb8' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:889555c4b0fe"} embedded run agent end
02:36:40+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_failover_decision","tags":["error_handling","failover","assistant","surface_error"],"runId":"976cf8cb-6728-41ca-b802-694f3704ab2e","stage":"assistant","decision":"surface_error","failoverReason":"format","profileFailureReason":"format","provider":"AzureOpenAI-Two","model":"gpt-5.2-codex","fallbackConfigured":false,"timedOut":false,"aborted":false,"rawErrorPreview":"400 Item 'rs_0d7f5b2bff402fb40069d71089912c8190a2a93d7e8ccd6bb8' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:889555c4b0fe"} embedded run failover decision
02:53:03+00:00 info gateway/reload {"subsystem":"gateway/reload"} config change detected; evaluating reload (models.providers.AzureOpenAI-One.api, models.providers.AzureOpenAI-One.models, models.providers.AzureOpenAI-Two.api, models.providers.AzureOpenAI-Two.models, models.providers.AzureOpenAI-Three.api, models.providers.AzureOpenAI-Three.models)
02:53:03+00:00 info gateway/reload {"subsystem":"gateway/reload"} config hot reload applied (models.providers.AzureOpenAI-One.api, models.providers.AzureOpenAI-One.models, models.providers.AzureOpenAI-Two.api, models.providers.AzureOpenAI-Two.models, models.providers.AzureOpenAI-Three.api, models.providers.AzureOpenAI-Three.models)
02:53:15+00:00 info gateway {"subsystem":"gateway"} signal SIGTERM received
02:53:15+00:00 info gateway {"subsystem":"gateway"} received SIGTERM; shutting down
02:53:15+00:00 info gmail-watcher {"subsystem":"gmail-watcher"} gmail watcher stopped
02:53:15+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat disconnected code=1012 reason=service restart conn=81c9edb5-faaa-42be-adbe-a5321a5cd7b1
02:53:22+00:00 info gateway {"subsystem":"gateway"} loading configuration…
02:53:22+00:00 info gateway {"subsystem":"gateway"} resolving authentication…
02:53:22+00:00 info gateway {"subsystem":"gateway"} starting...
02:53:24+00:00 info gateway {"subsystem":"gateway"} starting HTTP server...
02:53:24+00:00 info gateway/canvas {"subsystem":"gateway/canvas"} canvas host mounted at http://127.0.0.1:18789/__openclaw__/canvas/ (root /home/zjunsen/.openclaw/canvas)
02:53:24+00:00 info gateway {"subsystem":"gateway"} MCP loopback server listening on http://127.0.0.1:38919/mcp
02:53:24+00:00 info gateway/heartbeat {"subsystem":"gateway/heartbeat"} {"intervalMs":1800000} heartbeat: started
02:53:24+00:00 info gateway/health-monitor {"subsystem":"gateway/health-monitor"} started (interval: 300s, startup-grace: 60s, channel-connect-grace: 120s)
02:53:24+00:00 info gateway {"subsystem":"gateway"} agent model: azureopenai-three/gpt-5.3-chat
02:53:24+00:00 info gateway {"subsystem":"gateway"} ready (5 plugins, 1.8s)
02:53:24+00:00 info gateway {"subsystem":"gateway"} log file: /tmp/openclaw/openclaw-2026-04-09.log
02:53:24+00:00 info gateway {"subsystem":"gateway"} starting channels and sidecars...
02:53:24+00:00 info cron {"module":"cron","storePath":"/home/zjunsen/.openclaw/cron/jobs.json"} {"enabled":true,"jobs":0,"nextWakeAtMs":null} cron: started
02:53:24+00:00 info gateway/hooks {"subsystem":"gateway/hooks"} loaded 4 internal hook handlers
02:53:26+00:00 info bonjour: advertised gateway fqdn=clawbot (OpenClaw)._openclaw-gw._tcp.local. host=openclaw.local. port=18789 state=announcing
02:53:48+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat connected conn=f7405b33-10ce-40cd-927d-036fdddaae2f remote=127.0.0.1 client=openclaw-control-ui webchat vcontrol-ui
02:53:58+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ node.list 9825ms conn=f7405b33…ae2f id=a040fcc1…5ddc
02:53:58+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ device.pair.list 9828ms conn=f7405b33…ae2f id=dbe9324a…b5f6
02:53:59+00:00 warn gateway/ws {"subsystem":"gateway/ws"} handshake timeout conn=28808b43-0196-4051-a160-8a165a197ca5 remote=127.0.0.1
02:54:02+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ chat.history 13534ms conn=f7405b33…ae2f id=f394c5b2…3b54
02:54:02+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ models.list 13509ms conn=f7405b33…ae2f id=302d6ed8…0ba4
02:54:02+00:00 info plugins {"subsystem":"plugins"} embedded acpx runtime backend registered (cwd: /home/zjunsen/.openclaw/workspace)
02:54:02+00:00 info browser/server {"subsystem":"browser/server"} Browser control listening on http://127.0.0.1:18791/ (auth=token)
02:54:02+00:00 warn gateway/ws {"subsystem":"gateway/ws"} {"cause":"handshake-timeout","handshake":"failed","durationMs":13671,"lastFrameType":"req","lastFrameMethod":"connect","lastFrameId":"81badb38-5d6b-4c78-b622-c7ba9d403fce","host":"127.0.0.1:18789","handshakeMs":10616} closed before connect conn=28808b43-0196-4051-a160-8a165a197ca5 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1000 reason=n/a
02:54:02+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ node.list 51ms conn=f7405b33…ae2f id=21904193…573c
02:54:02+00:00 error gateway connect failed: Error: gateway closed (1000): 
02:54:02+00:00 error gateway connect failed: Error: gateway closed (1000): 
02:54:04+00:00 info plugins {"subsystem":"plugins"} embedded acpx runtime backend ready
03:02:21+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✗ sessions.delete 17ms errorCode=INVALID_REQUEST errorMessage=Cannot delete the main session (agent:main:main). conn=f7405b33…ae2f id=bb052cbf…7cee
03:02:21+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ sessions.delete 55ms conn=f7405b33…ae2f id=8551123f…a7a1
03:02:37+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ node.list 1321ms conn=f7405b33…ae2f id=bb8d3383…8aba
03:02:45+00:00 info hooks/session-memory {"subsystem":"hooks/session-memory"} Session context saved to ~/.openclaw/workspace/memory/2026-04-09-codex-error.md
03:02:54+00:00 error [tools] read failed: ENOENT: no such file or directory, access '/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md' raw_params={"path":"/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md"}
03:02:54+00:00 error [tools] read failed: ENOENT: no such file or directory, access '/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md' raw_params={"path":"/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md"}
03:02:56+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_agent_end","tags":["error_handling","lifecycle","agent_end","assistant_error"],"runId":"34ff1968-8412-4e56-bd66-c546121842ff","isError":true,"error":"400 Item 'rs_00bf8d6f950b47260069d716dae0e881938296d799c76d0273' of type 'reasoning' was provided without its required following item.","failoverReason":"format","model":"gpt-5.3-chat","provider":"AzureOpenAI-Three","rawErrorPreview":"400 Item 'rs_00bf8d6f950b47260069d716dae0e881938296d799c76d0273' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:497f55a2714f"} embedded run agent end
03:02:56+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_failover_decision","tags":["error_handling","failover","assistant","surface_error"],"runId":"34ff1968-8412-4e56-bd66-c546121842ff","stage":"assistant","decision":"surface_error","failoverReason":"format","profileFailureReason":"format","provider":"AzureOpenAI-Three","model":"gpt-5.3-chat","fallbackConfigured":false,"timedOut":false,"aborted":false,"rawErrorPreview":"400 Item 'rs_00bf8d6f950b47260069d716dae0e881938296d799c76d0273' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:497f55a2714f"} embedded run failover decision

Code Example

01:36:14+00:00 info OAuth/token status
01:36:14+00:00 info - none
01:37:48+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat disconnected code=1001 reason=n/a conn=8d46ef17-5d65-4f3b-a108-5ae136fdcc07
01:37:48+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat connected conn=d034835f-61c8-40cd-8114-6005003eeaed remote=127.0.0.1 client=openclaw-control-ui webchat vcontrol-ui
01:37:59+00:00 info hooks/session-memory {"subsystem":"hooks/session-memory"} Session context saved to ~/.openclaw/workspace/memory/2026-04-09-openclaw-ppt.md
01:49:22+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_agent_end","tags":["error_handling","lifecycle","agent_end","assistant_error"],"runId":"38eb075e-2273-4b09-837b-c88e714257b7","isError":true,"error":"400 Item 'rs_07f091ad1d9adbcb0069d7059e74a08190a5fd477877af8e27' of type 'reasoning' was provided without its required following item.","failoverReason":"format","model":"gpt-5.3-chat","provider":"AzureOpenAI-Three","rawErrorPreview":"400 Item 'rs_07f091ad1d9adbcb0069d7059e74a08190a5fd477877af8e27' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:ce60f0254cd4"} embedded run agent end
01:49:22+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_failover_decision","tags":["error_handling","failover","assistant","surface_error"],"runId":"38eb075e-2273-4b09-837b-c88e714257b7","stage":"assistant","decision":"surface_error","failoverReason":"format","profileFailureReason":"format","provider":"AzureOpenAI-Three","model":"gpt-5.3-chat","fallbackConfigured":false,"timedOut":false,"aborted":false,"rawErrorPreview":"400 Item 'rs_07f091ad1d9adbcb0069d7059e74a08190a5fd477877af8e27' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:ce60f0254cd4"} embedded run failover decision
01:56:20+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_agent_end","tags":["error_handling","lifecycle","agent_end","assistant_error"],"runId":"4aec705b-4eac-4cfc-b4db-25443f2bbddd","isError":true,"error":"400 Item 'rs_07f091ad1d9adbcb0069d7059e74a08190a5fd477877af8e27' of type 'reasoning' was provided without its required following item.","failoverReason":"format","model":"gpt-5.3-chat","provider":"AzureOpenAI-Three","rawErrorPreview":"400 Item 'rs_07f091ad1d9adbcb0069d7059e74a08190a5fd477877af8e27' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:ce60f0254cd4"} embedded run agent end
01:56:20+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_failover_decision","tags":["error_handling","failover","assistant","surface_error"],"runId":"4aec705b-4eac-4cfc-b4db-25443f2bbddd","stage":"assistant","decision":"surface_error","failoverReason":"format","profileFailureReason":"format","provider":"AzureOpenAI-Three","model":"gpt-5.3-chat","fallbackConfigured":false,"timedOut":false,"aborted":false,"rawErrorPreview":"400 Item 'rs_07f091ad1d9adbcb0069d7059e74a08190a5fd477877af8e27' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:ce60f0254cd4"} embedded run failover decision
02:03:13+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat disconnected code=1001 reason=n/a conn=d034835f-61c8-40cd-8114-6005003eeaed
02:03:14+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat connected conn=d6acde63-de18-4240-87c0-b794ebb7e0b4 remote=127.0.0.1 client=openclaw-control-ui webchat vcontrol-ui
02:03:27+00:00 info hooks/session-memory {"subsystem":"hooks/session-memory"} Session context saved to ~/.openclaw/workspace/memory/2026-04-09-openclaw-ppt.md
02:03:34+00:00 error [tools] read failed: ENOENT: no such file or directory, access '/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md' raw_params={"path":"/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md"}
02:03:34+00:00 error [tools] read failed: ENOENT: no such file or directory, access '/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md' raw_params={"path":"/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md"}
02:05:42+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ channels.status 113ms conn=78c8f339…0f98 id=e9ead1de…bc03
02:22:41+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ sessions.patch 70ms conn=d6acde63…e0b4 id=222ef69f…a49c
02:22:52+00:00 info hooks/session-memory {"subsystem":"hooks/session-memory"} Session context saved to ~/.openclaw/workspace/memory/2026-04-09-openclaw-400.md
02:23:01+00:00 error [tools] read failed: ENOENT: no such file or directory, access '/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md' raw_params={"path":"/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md"}
02:23:01+00:00 error [tools] read failed: ENOENT: no such file or directory, access '/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md' raw_params={"path":"/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md"}
02:23:03+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_agent_end","tags":["error_handling","lifecycle","agent_end","assistant_error"],"runId":"4480c412-bf71-47fd-8f1f-1819a704f62e","isError":true,"error":"400 Item 'rs_0a9c8f292ba8d94f0069d70d81b3f88190b225a1acd080df40' of type 'reasoning' was provided without its required following item.","failoverReason":"format","model":"gpt-5.2-codex","provider":"AzureOpenAI-Two","rawErrorPreview":"400 Item 'rs_0a9c8f292ba8d94f0069d70d81b3f88190b225a1acd080df40' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:1a22ac94e85f"} embedded run agent end
02:23:03+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_failover_decision","tags":["error_handling","failover","assistant","surface_error"],"runId":"4480c412-bf71-47fd-8f1f-1819a704f62e","stage":"assistant","decision":"surface_error","failoverReason":"format","profileFailureReason":"format","provider":"AzureOpenAI-Two","model":"gpt-5.2-codex","fallbackConfigured":false,"timedOut":false,"aborted":false,"rawErrorPreview":"400 Item 'rs_0a9c8f292ba8d94f0069d70d81b3f88190b225a1acd080df40' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:1a22ac94e85f"} embedded run failover decision
02:23:59+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ node.list 236ms conn=d6acde63…e0b4 id=62cab2ea…3b71
02:25:02+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_agent_end","tags":["error_handling","lifecycle","agent_end","assistant_error"],"runId":"63eea581-ac5e-4d5b-84dd-b4518bac06ae","isError":true,"error":"400 Item 'rs_04fe1e28c6b4edfb0069d70dfa980881978a8bb27c1b1a9ae0' of type 'reasoning' was provided without its required following item.","failoverReason":"format","model":"gpt-5.3-chat","provider":"AzureOpenAI-Three","rawErrorPreview":"400 Item 'rs_04fe1e28c6b4edfb0069d70dfa980881978a8bb27c1b1a9ae0' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:8aa32ab072ea"} embedded run agent end
02:25:02+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_failover_decision","tags":["error_handling","failover","assistant","surface_error"],"runId":"63eea581-ac5e-4d5b-84dd-b4518bac06ae","stage":"assistant","decision":"surface_error","failoverReason":"format","profileFailureReason":"format","provider":"AzureOpenAI-Three","model":"gpt-5.3-chat","fallbackConfigured":false,"timedOut":false,"aborted":false,"rawErrorPreview":"400 Item 'rs_04fe1e28c6b4edfb0069d70dfa980881978a8bb27c1b1a9ae0' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:8aa32ab072ea"} embedded run failover decision
02:27:02+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ usage.cost 52ms conn=d6acde63…e0b4 id=eb59b138…b009
02:27:02+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ sessions.usage 147ms conn=d6acde63…e0b4 id=715aaa9f…6442
02:27:04+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ sessions.usage 86ms conn=d6acde63…e0b4 id=1ffef62e…f4b1
02:29:03+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat disconnected code=1001 reason=n/a conn=d6acde63-de18-4240-87c0-b794ebb7e0b4
02:29:04+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat connected conn=e00e13dc-693d-4b8e-8226-9c033d113149 remote=127.0.0.1 client=openclaw-control-ui webchat vcontrol-ui
02:29:16+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_agent_end","tags":["error_handling","lifecycle","agent_end","assistant_error"],"runId":"9ded6bbe-b5b6-42bd-856d-807258ddd7d6","isError":true,"error":"400 Item 'rs_0a9c8f292ba8d94f0069d70d81b3f88190b225a1acd080df40' of type 'reasoning' was provided without its required following item.","failoverReason":"format","model":"gpt-5.2-codex","provider":"AzureOpenAI-Two","rawErrorPreview":"400 Item 'rs_0a9c8f292ba8d94f0069d70d81b3f88190b225a1acd080df40' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:1a22ac94e85f"} embedded run agent end
02:29:16+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_failover_decision","tags":["error_handling","failover","assistant","surface_error"],"runId":"9ded6bbe-b5b6-42bd-856d-807258ddd7d6","stage":"assistant","decision":"surface_error","failoverReason":"format","profileFailureReason":"format","provider":"AzureOpenAI-Two","model":"gpt-5.2-codex","fallbackConfigured":false,"timedOut":false,"aborted":false,"rawErrorPreview":"400 Item 'rs_0a9c8f292ba8d94f0069d70d81b3f88190b225a1acd080df40' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:1a22ac94e85f"} embedded run failover decision
02:31:23+00:00 warn gateway/reload {"subsystem":"gateway/reload"} config watcher error: Error: EACCES: permission denied, watch '/home/zjunsen/.openclaw/openclaw.json'
02:31:36+00:00 info gateway {"subsystem":"gateway"} signal SIGTERM received
02:31:36+00:00 info gateway {"subsystem":"gateway"} received SIGTERM; shutting down
02:31:36+00:00 info gmail-watcher {"subsystem":"gmail-watcher"} gmail watcher stopped
02:31:36+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat disconnected code=1012 reason=service restart conn=e00e13dc-693d-4b8e-8226-9c033d113149
02:31:42+00:00 info gateway {"subsystem":"gateway"} loading configuration…
02:31:42+00:00 info gateway {"subsystem":"gateway"} resolving authentication…
02:31:42+00:00 info gateway {"subsystem":"gateway"} starting...
02:31:44+00:00 info gateway {"subsystem":"gateway"} starting HTTP server...
02:31:44+00:00 info gateway/canvas {"subsystem":"gateway/canvas"} canvas host mounted at http://127.0.0.1:18789/__openclaw__/canvas/ (root /home/zjunsen/.openclaw/canvas)
02:31:44+00:00 info gateway {"subsystem":"gateway"} MCP loopback server listening on http://127.0.0.1:36899/mcp
02:31:44+00:00 info gateway/heartbeat {"subsystem":"gateway/heartbeat"} {"intervalMs":1800000} heartbeat: started
02:31:44+00:00 info gateway/health-monitor {"subsystem":"gateway/health-monitor"} started (interval: 300s, startup-grace: 60s, channel-connect-grace: 120s)
02:31:44+00:00 info gateway {"subsystem":"gateway"} agent model: azureopenai-three/gpt-5.3-chat
02:31:44+00:00 info gateway {"subsystem":"gateway"} ready (5 plugins, 1.9s)
02:31:44+00:00 info gateway {"subsystem":"gateway"} log file: /tmp/openclaw/openclaw-2026-04-09.log
02:31:44+00:00 info gateway {"subsystem":"gateway"} starting channels and sidecars...
02:31:44+00:00 info cron {"module":"cron","storePath":"/home/zjunsen/.openclaw/cron/jobs.json"} {"enabled":true,"jobs":0,"nextWakeAtMs":null} cron: started
02:31:44+00:00 info gateway/hooks {"subsystem":"gateway/hooks"} loaded 4 internal hook handlers
02:31:46+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat connected conn=81c9edb5-faaa-42be-adbe-a5321a5cd7b1 remote=127.0.0.1 client=openclaw-control-ui webchat vcontrol-ui
02:31:48+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ node.list 2118ms conn=81c9edb5…d7b1 id=4841cd9c…3c99
02:31:48+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ device.pair.list 2120ms conn=81c9edb5…d7b1 id=0be2e19b…7fe6
02:31:48+00:00 info bonjour: advertised gateway fqdn=clawbot (OpenClaw)._openclaw-gw._tcp.local. host=openclaw.local. port=18789 state=announcing
02:31:56+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ node.list 2105ms conn=81c9edb5…d7b1 id=dd483799…508e
02:32:00+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ chat.history 13852ms conn=81c9edb5…d7b1 id=46181648…615e
02:32:00+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ models.list 13823ms conn=81c9edb5…d7b1 id=d501916b…7751
02:32:00+00:00 warn gateway/model-pricing {"subsystem":"gateway/model-pricing"} pricing bootstrap failed: TimeoutError: The operation was aborted due to timeout
02:32:00+00:00 info plugins {"subsystem":"plugins"} embedded acpx runtime backend registered (cwd: /home/zjunsen/.openclaw/workspace)
02:32:00+00:00 info browser/server {"subsystem":"browser/server"} Browser control listening on http://127.0.0.1:18791/ (auth=token)
02:32:02+00:00 info plugins {"subsystem":"plugins"} embedded acpx runtime backend ready
02:32:37+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ sessions.patch 77ms conn=81c9edb5…d7b1 id=653a5804…dcae
02:33:14+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ node.list 1108ms conn=81c9edb5…d7b1 id=3d8df4e5…eae5
02:33:32+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ channels.status 108ms conn=a4c9ee2c…b8e9 id=c58d02f3…5622
02:35:31+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ sessions.patch 58ms conn=996d1e17…4f24 id=47eafaee…521f
02:35:33+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ logs.tail 136ms conn=3f12bd6a…5596 id=8ff43d4f…0a67
02:35:58+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_agent_end","tags":["error_handling","lifecycle","agent_end","assistant_error"],"runId":"fbb626b0-a5ec-4162-921c-b30e6f2238d2","isError":true,"error":"400 Item 'rs_0d7f5b2bff402fb40069d71089912c8190a2a93d7e8ccd6bb8' of type 'reasoning' was provided without its required following item.","failoverReason":"format","model":"gpt-5.2-codex","provider":"AzureOpenAI-Two","rawErrorPreview":"400 Item 'rs_0d7f5b2bff402fb40069d71089912c8190a2a93d7e8ccd6bb8' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:889555c4b0fe"} embedded run agent end
02:35:58+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_failover_decision","tags":["error_handling","failover","assistant","surface_error"],"runId":"fbb626b0-a5ec-4162-921c-b30e6f2238d2","stage":"assistant","decision":"surface_error","failoverReason":"format","profileFailureReason":"format","provider":"AzureOpenAI-Two","model":"gpt-5.2-codex","fallbackConfigured":false,"timedOut":false,"aborted":false,"rawErrorPreview":"400 Item 'rs_0d7f5b2bff402fb40069d71089912c8190a2a93d7e8ccd6bb8' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:889555c4b0fe"} embedded run failover decision
02:36:40+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_agent_end","tags":["error_handling","lifecycle","agent_end","assistant_error"],"runId":"976cf8cb-6728-41ca-b802-694f3704ab2e","isError":true,"error":"400 Item 'rs_0d7f5b2bff402fb40069d71089912c8190a2a93d7e8ccd6bb8' of type 'reasoning' was provided without its required following item.","failoverReason":"format","model":"gpt-5.2-codex","provider":"AzureOpenAI-Two","rawErrorPreview":"400 Item 'rs_0d7f5b2bff402fb40069d71089912c8190a2a93d7e8ccd6bb8' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:889555c4b0fe"} embedded run agent end
02:36:40+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_failover_decision","tags":["error_handling","failover","assistant","surface_error"],"runId":"976cf8cb-6728-41ca-b802-694f3704ab2e","stage":"assistant","decision":"surface_error","failoverReason":"format","profileFailureReason":"format","provider":"AzureOpenAI-Two","model":"gpt-5.2-codex","fallbackConfigured":false,"timedOut":false,"aborted":false,"rawErrorPreview":"400 Item 'rs_0d7f5b2bff402fb40069d71089912c8190a2a93d7e8ccd6bb8' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:889555c4b0fe"} embedded run failover decision
02:53:03+00:00 info gateway/reload {"subsystem":"gateway/reload"} config change detected; evaluating reload (models.providers.AzureOpenAI-One.api, models.providers.AzureOpenAI-One.models, models.providers.AzureOpenAI-Two.api, models.providers.AzureOpenAI-Two.models, models.providers.AzureOpenAI-Three.api, models.providers.AzureOpenAI-Three.models)
02:53:03+00:00 info gateway/reload {"subsystem":"gateway/reload"} config hot reload applied (models.providers.AzureOpenAI-One.api, models.providers.AzureOpenAI-One.models, models.providers.AzureOpenAI-Two.api, models.providers.AzureOpenAI-Two.models, models.providers.AzureOpenAI-Three.api, models.providers.AzureOpenAI-Three.models)
02:53:15+00:00 info gateway {"subsystem":"gateway"} signal SIGTERM received
02:53:15+00:00 info gateway {"subsystem":"gateway"} received SIGTERM; shutting down
02:53:15+00:00 info gmail-watcher {"subsystem":"gmail-watcher"} gmail watcher stopped
02:53:15+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat disconnected code=1012 reason=service restart conn=81c9edb5-faaa-42be-adbe-a5321a5cd7b1
02:53:22+00:00 info gateway {"subsystem":"gateway"} loading configuration…
02:53:22+00:00 info gateway {"subsystem":"gateway"} resolving authentication…
02:53:22+00:00 info gateway {"subsystem":"gateway"} starting...
02:53:24+00:00 info gateway {"subsystem":"gateway"} starting HTTP server...
02:53:24+00:00 info gateway/canvas {"subsystem":"gateway/canvas"} canvas host mounted at http://127.0.0.1:18789/__openclaw__/canvas/ (root /home/zjunsen/.openclaw/canvas)
02:53:24+00:00 info gateway {"subsystem":"gateway"} MCP loopback server listening on http://127.0.0.1:38919/mcp
02:53:24+00:00 info gateway/heartbeat {"subsystem":"gateway/heartbeat"} {"intervalMs":1800000} heartbeat: started
02:53:24+00:00 info gateway/health-monitor {"subsystem":"gateway/health-monitor"} started (interval: 300s, startup-grace: 60s, channel-connect-grace: 120s)
02:53:24+00:00 info gateway {"subsystem":"gateway"} agent model: azureopenai-three/gpt-5.3-chat
02:53:24+00:00 info gateway {"subsystem":"gateway"} ready (5 plugins, 1.8s)
02:53:24+00:00 info gateway {"subsystem":"gateway"} log file: /tmp/openclaw/openclaw-2026-04-09.log
02:53:24+00:00 info gateway {"subsystem":"gateway"} starting channels and sidecars...
02:53:24+00:00 info cron {"module":"cron","storePath":"/home/zjunsen/.openclaw/cron/jobs.json"} {"enabled":true,"jobs":0,"nextWakeAtMs":null} cron: started
02:53:24+00:00 info gateway/hooks {"subsystem":"gateway/hooks"} loaded 4 internal hook handlers
02:53:26+00:00 info bonjour: advertised gateway fqdn=clawbot (OpenClaw)._openclaw-gw._tcp.local. host=openclaw.local. port=18789 state=announcing
02:53:48+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat connected conn=f7405b33-10ce-40cd-927d-036fdddaae2f remote=127.0.0.1 client=openclaw-control-ui webchat vcontrol-ui
02:53:58+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ node.list 9825ms conn=f7405b33…ae2f id=a040fcc1…5ddc
02:53:58+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ device.pair.list 9828ms conn=f7405b33…ae2f id=dbe9324a…b5f6
02:53:59+00:00 warn gateway/ws {"subsystem":"gateway/ws"} handshake timeout conn=28808b43-0196-4051-a160-8a165a197ca5 remote=127.0.0.1
02:54:02+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ chat.history 13534ms conn=f7405b33…ae2f id=f394c5b2…3b54
02:54:02+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ models.list 13509ms conn=f7405b33…ae2f id=302d6ed8…0ba4
02:54:02+00:00 info plugins {"subsystem":"plugins"} embedded acpx runtime backend registered (cwd: /home/zjunsen/.openclaw/workspace)
02:54:02+00:00 info browser/server {"subsystem":"browser/server"} Browser control listening on http://127.0.0.1:18791/ (auth=token)
02:54:02+00:00 warn gateway/ws {"subsystem":"gateway/ws"} {"cause":"handshake-timeout","handshake":"failed","durationMs":13671,"lastFrameType":"req","lastFrameMethod":"connect","lastFrameId":"81badb38-5d6b-4c78-b622-c7ba9d403fce","host":"127.0.0.1:18789","handshakeMs":10616} closed before connect conn=28808b43-0196-4051-a160-8a165a197ca5 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1000 reason=n/a
02:54:02+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ node.list 51ms conn=f7405b33…ae2f id=21904193…573c
02:54:02+00:00 error gateway connect failed: Error: gateway closed (1000): 
02:54:02+00:00 error gateway connect failed: Error: gateway closed (1000): 
02:54:04+00:00 info plugins {"subsystem":"plugins"} embedded acpx runtime backend ready
03:02:21+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✗ sessions.delete 17ms errorCode=INVALID_REQUEST errorMessage=Cannot delete the main session (agent:main:main). conn=f7405b33…ae2f id=bb052cbf…7cee
03:02:21+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ sessions.delete 55ms conn=f7405b33…ae2f id=8551123f…a7a1
03:02:37+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ node.list 1321ms conn=f7405b33…ae2f id=bb8d3383…8aba
03:02:45+00:00 info hooks/session-memory {"subsystem":"hooks/session-memory"} Session context saved to ~/.openclaw/workspace/memory/2026-04-09-codex-error.md
03:02:54+00:00 error [tools] read failed: ENOENT: no such file or directory, access '/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md' raw_params={"path":"/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md"}
03:02:54+00:00 error [tools] read failed: ENOENT: no such file or directory, access '/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md' raw_params={"path":"/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md"}
03:02:56+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_agent_end","tags":["error_handling","lifecycle","agent_end","assistant_error"],"runId":"34ff1968-8412-4e56-bd66-c546121842ff","isError":true,"error":"400 Item 'rs_00bf8d6f950b47260069d716dae0e881938296d799c76d0273' of type 'reasoning' was provided without its required following item.","failoverReason":"format","model":"gpt-5.3-chat","provider":"AzureOpenAI-Three","rawErrorPreview":"400 Item 'rs_00bf8d6f950b47260069d716dae0e881938296d799c76d0273' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:497f55a2714f"} embedded run agent end
03:02:56+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_failover_decision","tags":["error_handling","failover","assistant","surface_error"],"runId":"34ff1968-8412-4e56-bd66-c546121842ff","stage":"assistant","decision":"surface_error","failoverReason":"format","profileFailureReason":"format","provider":"AzureOpenAI-Three","model":"gpt-5.3-chat","fallbackConfigured":false,"timedOut":false,"aborted":false,"rawErrorPreview":"400 Item 'rs_00bf8d6f950b47260069d716dae0e881938296d799c76d0273' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:497f55a2714f"} embedded run failover decision
RAW_BUFFERClick to expand / collapse

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

When calling gpt-5.2-codex and/or gpt-5.3-chat through OpenClaw, requests fail with HTTP 400. This has been happening consistently and blocks normal usage of these models via OpenClaw (including via the Control UI). We have tried multiple configuration adjustments and restarts, but the issue persists.

Steps to reproduce

Start OpenClaw Gateway and open OpenClaw Control UI. Select model gpt-5.2-codex (and/or gpt-5.3-chat). Send a simple prompt, e.g.: “Hello, can you respond with ‘OK’?” Observe the response. (Optional: reproduce via CLI/API route used by OpenClaw if applicable — same outcome.)

Expected behavior

OpenClaw should successfully route the request to the configured provider and return a valid completion/response from gpt-5.2-codex / gpt-5.3-chat.

Actual behavior

Requests fail with HTTP 400 when calling gpt-5.2-codex and/or gpt-5.3-chat via OpenClaw.

Observed error pattern includes (example):

400 ... item of type 'reasoning' ... required following item This suggests the upstream endpoint/deployment rejects or does not support the payload shape OpenClaw sends (notably the “reasoning” item).

OpenClaw version

2026.4.8

Operating system

Ubuntu 24.04

Install method

npm global / node 24

Model

Azure OpenAI gpt-5.2-codex | Azure OpenAI gpt-5.3-chat

Provider / routing chain

Control UI → OpenClaw Gateway → azure-openai-responses adapter → Azure OpenAI endpoint → deployment [deployment name]

Additional provider/model setup details

  "AzureOpenAI-Two": {
    "baseUrl": "https://testmfoundry-resource.openai.azure.com/openai/v1",
    "apiKey": "***************************",
    "auth": "api-key",
    "api": "openai-responses",
    "headers": {
      "api-key": "***********************"
    },
    "authHeader": false,
    "models": [
      {
        "id": "gpt-5.2-codex",
        "name": "GPT-5.2-Codex (Azure testmfoundry-resource)",
    "reasoning": false,
    "input": [
          "text",
          "image"
        ],
        "cost": {
          "input": 1.75,
          "output": 14,
          "cacheRead": 0.18,
          "cacheWrite": 1.75
        },
        "contextWindow": 1048576,
        "maxTokens": 131072,
        "compat": {
          "supportsStore": false
        }
      }
    ]
  },
  "AzureOpenAI-Three": {
    "baseUrl": "https://dy-aoai.openai.azure.com/openai/v1",
    "api": "openai-responses",
"apiKey": "************************",
    "auth": "api-key",
    "headers": {
      "api-key": "*********************"
    },
    "authHeader": false,
    "models": [
      {
        "id": "gpt-5.3-chat",
        "name": "GPT-5.3-Chat (Azure dy-aoai)",
        "reasoning": false,
    "input": [
          "text",
          "image"
        ],
        "cost": {
          "input": 1.25,
          "output": 10,
          "cacheRead": 0.13,
          "cacheWrite": 1.25
        },
        "contextWindow": 1048576,
        "maxTokens": 131072,
        "compat": {
          "supportsStore": false
        }
      }
    ]
  }
}

}, I've tried changing "api": "openai-responses" to "api": "azure-openai-responses" and adding or removing "reasoning": false under the model, but neither works.

Either /new succeeds initially but then throws a 400 error on the second sentence, or /new directly throws a 400 error.

Logs, screenshots, and evidence

01:36:14+00:00 info OAuth/token status
01:36:14+00:00 info - none
01:37:48+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat disconnected code=1001 reason=n/a conn=8d46ef17-5d65-4f3b-a108-5ae136fdcc07
01:37:48+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat connected conn=d034835f-61c8-40cd-8114-6005003eeaed remote=127.0.0.1 client=openclaw-control-ui webchat vcontrol-ui
01:37:59+00:00 info hooks/session-memory {"subsystem":"hooks/session-memory"} Session context saved to ~/.openclaw/workspace/memory/2026-04-09-openclaw-ppt.md
01:49:22+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_agent_end","tags":["error_handling","lifecycle","agent_end","assistant_error"],"runId":"38eb075e-2273-4b09-837b-c88e714257b7","isError":true,"error":"400 Item 'rs_07f091ad1d9adbcb0069d7059e74a08190a5fd477877af8e27' of type 'reasoning' was provided without its required following item.","failoverReason":"format","model":"gpt-5.3-chat","provider":"AzureOpenAI-Three","rawErrorPreview":"400 Item 'rs_07f091ad1d9adbcb0069d7059e74a08190a5fd477877af8e27' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:ce60f0254cd4"} embedded run agent end
01:49:22+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_failover_decision","tags":["error_handling","failover","assistant","surface_error"],"runId":"38eb075e-2273-4b09-837b-c88e714257b7","stage":"assistant","decision":"surface_error","failoverReason":"format","profileFailureReason":"format","provider":"AzureOpenAI-Three","model":"gpt-5.3-chat","fallbackConfigured":false,"timedOut":false,"aborted":false,"rawErrorPreview":"400 Item 'rs_07f091ad1d9adbcb0069d7059e74a08190a5fd477877af8e27' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:ce60f0254cd4"} embedded run failover decision
01:56:20+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_agent_end","tags":["error_handling","lifecycle","agent_end","assistant_error"],"runId":"4aec705b-4eac-4cfc-b4db-25443f2bbddd","isError":true,"error":"400 Item 'rs_07f091ad1d9adbcb0069d7059e74a08190a5fd477877af8e27' of type 'reasoning' was provided without its required following item.","failoverReason":"format","model":"gpt-5.3-chat","provider":"AzureOpenAI-Three","rawErrorPreview":"400 Item 'rs_07f091ad1d9adbcb0069d7059e74a08190a5fd477877af8e27' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:ce60f0254cd4"} embedded run agent end
01:56:20+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_failover_decision","tags":["error_handling","failover","assistant","surface_error"],"runId":"4aec705b-4eac-4cfc-b4db-25443f2bbddd","stage":"assistant","decision":"surface_error","failoverReason":"format","profileFailureReason":"format","provider":"AzureOpenAI-Three","model":"gpt-5.3-chat","fallbackConfigured":false,"timedOut":false,"aborted":false,"rawErrorPreview":"400 Item 'rs_07f091ad1d9adbcb0069d7059e74a08190a5fd477877af8e27' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:ce60f0254cd4"} embedded run failover decision
02:03:13+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat disconnected code=1001 reason=n/a conn=d034835f-61c8-40cd-8114-6005003eeaed
02:03:14+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat connected conn=d6acde63-de18-4240-87c0-b794ebb7e0b4 remote=127.0.0.1 client=openclaw-control-ui webchat vcontrol-ui
02:03:27+00:00 info hooks/session-memory {"subsystem":"hooks/session-memory"} Session context saved to ~/.openclaw/workspace/memory/2026-04-09-openclaw-ppt.md
02:03:34+00:00 error [tools] read failed: ENOENT: no such file or directory, access '/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md' raw_params={"path":"/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md"}
02:03:34+00:00 error [tools] read failed: ENOENT: no such file or directory, access '/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md' raw_params={"path":"/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md"}
02:05:42+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ channels.status 113ms conn=78c8f339…0f98 id=e9ead1de…bc03
02:22:41+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ sessions.patch 70ms conn=d6acde63…e0b4 id=222ef69f…a49c
02:22:52+00:00 info hooks/session-memory {"subsystem":"hooks/session-memory"} Session context saved to ~/.openclaw/workspace/memory/2026-04-09-openclaw-400.md
02:23:01+00:00 error [tools] read failed: ENOENT: no such file or directory, access '/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md' raw_params={"path":"/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md"}
02:23:01+00:00 error [tools] read failed: ENOENT: no such file or directory, access '/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md' raw_params={"path":"/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md"}
02:23:03+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_agent_end","tags":["error_handling","lifecycle","agent_end","assistant_error"],"runId":"4480c412-bf71-47fd-8f1f-1819a704f62e","isError":true,"error":"400 Item 'rs_0a9c8f292ba8d94f0069d70d81b3f88190b225a1acd080df40' of type 'reasoning' was provided without its required following item.","failoverReason":"format","model":"gpt-5.2-codex","provider":"AzureOpenAI-Two","rawErrorPreview":"400 Item 'rs_0a9c8f292ba8d94f0069d70d81b3f88190b225a1acd080df40' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:1a22ac94e85f"} embedded run agent end
02:23:03+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_failover_decision","tags":["error_handling","failover","assistant","surface_error"],"runId":"4480c412-bf71-47fd-8f1f-1819a704f62e","stage":"assistant","decision":"surface_error","failoverReason":"format","profileFailureReason":"format","provider":"AzureOpenAI-Two","model":"gpt-5.2-codex","fallbackConfigured":false,"timedOut":false,"aborted":false,"rawErrorPreview":"400 Item 'rs_0a9c8f292ba8d94f0069d70d81b3f88190b225a1acd080df40' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:1a22ac94e85f"} embedded run failover decision
02:23:59+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ node.list 236ms conn=d6acde63…e0b4 id=62cab2ea…3b71
02:25:02+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_agent_end","tags":["error_handling","lifecycle","agent_end","assistant_error"],"runId":"63eea581-ac5e-4d5b-84dd-b4518bac06ae","isError":true,"error":"400 Item 'rs_04fe1e28c6b4edfb0069d70dfa980881978a8bb27c1b1a9ae0' of type 'reasoning' was provided without its required following item.","failoverReason":"format","model":"gpt-5.3-chat","provider":"AzureOpenAI-Three","rawErrorPreview":"400 Item 'rs_04fe1e28c6b4edfb0069d70dfa980881978a8bb27c1b1a9ae0' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:8aa32ab072ea"} embedded run agent end
02:25:02+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_failover_decision","tags":["error_handling","failover","assistant","surface_error"],"runId":"63eea581-ac5e-4d5b-84dd-b4518bac06ae","stage":"assistant","decision":"surface_error","failoverReason":"format","profileFailureReason":"format","provider":"AzureOpenAI-Three","model":"gpt-5.3-chat","fallbackConfigured":false,"timedOut":false,"aborted":false,"rawErrorPreview":"400 Item 'rs_04fe1e28c6b4edfb0069d70dfa980881978a8bb27c1b1a9ae0' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:8aa32ab072ea"} embedded run failover decision
02:27:02+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ usage.cost 52ms conn=d6acde63…e0b4 id=eb59b138…b009
02:27:02+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ sessions.usage 147ms conn=d6acde63…e0b4 id=715aaa9f…6442
02:27:04+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ sessions.usage 86ms conn=d6acde63…e0b4 id=1ffef62e…f4b1
02:29:03+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat disconnected code=1001 reason=n/a conn=d6acde63-de18-4240-87c0-b794ebb7e0b4
02:29:04+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat connected conn=e00e13dc-693d-4b8e-8226-9c033d113149 remote=127.0.0.1 client=openclaw-control-ui webchat vcontrol-ui
02:29:16+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_agent_end","tags":["error_handling","lifecycle","agent_end","assistant_error"],"runId":"9ded6bbe-b5b6-42bd-856d-807258ddd7d6","isError":true,"error":"400 Item 'rs_0a9c8f292ba8d94f0069d70d81b3f88190b225a1acd080df40' of type 'reasoning' was provided without its required following item.","failoverReason":"format","model":"gpt-5.2-codex","provider":"AzureOpenAI-Two","rawErrorPreview":"400 Item 'rs_0a9c8f292ba8d94f0069d70d81b3f88190b225a1acd080df40' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:1a22ac94e85f"} embedded run agent end
02:29:16+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_failover_decision","tags":["error_handling","failover","assistant","surface_error"],"runId":"9ded6bbe-b5b6-42bd-856d-807258ddd7d6","stage":"assistant","decision":"surface_error","failoverReason":"format","profileFailureReason":"format","provider":"AzureOpenAI-Two","model":"gpt-5.2-codex","fallbackConfigured":false,"timedOut":false,"aborted":false,"rawErrorPreview":"400 Item 'rs_0a9c8f292ba8d94f0069d70d81b3f88190b225a1acd080df40' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:1a22ac94e85f"} embedded run failover decision
02:31:23+00:00 warn gateway/reload {"subsystem":"gateway/reload"} config watcher error: Error: EACCES: permission denied, watch '/home/zjunsen/.openclaw/openclaw.json'
02:31:36+00:00 info gateway {"subsystem":"gateway"} signal SIGTERM received
02:31:36+00:00 info gateway {"subsystem":"gateway"} received SIGTERM; shutting down
02:31:36+00:00 info gmail-watcher {"subsystem":"gmail-watcher"} gmail watcher stopped
02:31:36+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat disconnected code=1012 reason=service restart conn=e00e13dc-693d-4b8e-8226-9c033d113149
02:31:42+00:00 info gateway {"subsystem":"gateway"} loading configuration…
02:31:42+00:00 info gateway {"subsystem":"gateway"} resolving authentication…
02:31:42+00:00 info gateway {"subsystem":"gateway"} starting...
02:31:44+00:00 info gateway {"subsystem":"gateway"} starting HTTP server...
02:31:44+00:00 info gateway/canvas {"subsystem":"gateway/canvas"} canvas host mounted at http://127.0.0.1:18789/__openclaw__/canvas/ (root /home/zjunsen/.openclaw/canvas)
02:31:44+00:00 info gateway {"subsystem":"gateway"} MCP loopback server listening on http://127.0.0.1:36899/mcp
02:31:44+00:00 info gateway/heartbeat {"subsystem":"gateway/heartbeat"} {"intervalMs":1800000} heartbeat: started
02:31:44+00:00 info gateway/health-monitor {"subsystem":"gateway/health-monitor"} started (interval: 300s, startup-grace: 60s, channel-connect-grace: 120s)
02:31:44+00:00 info gateway {"subsystem":"gateway"} agent model: azureopenai-three/gpt-5.3-chat
02:31:44+00:00 info gateway {"subsystem":"gateway"} ready (5 plugins, 1.9s)
02:31:44+00:00 info gateway {"subsystem":"gateway"} log file: /tmp/openclaw/openclaw-2026-04-09.log
02:31:44+00:00 info gateway {"subsystem":"gateway"} starting channels and sidecars...
02:31:44+00:00 info cron {"module":"cron","storePath":"/home/zjunsen/.openclaw/cron/jobs.json"} {"enabled":true,"jobs":0,"nextWakeAtMs":null} cron: started
02:31:44+00:00 info gateway/hooks {"subsystem":"gateway/hooks"} loaded 4 internal hook handlers
02:31:46+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat connected conn=81c9edb5-faaa-42be-adbe-a5321a5cd7b1 remote=127.0.0.1 client=openclaw-control-ui webchat vcontrol-ui
02:31:48+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ node.list 2118ms conn=81c9edb5…d7b1 id=4841cd9c…3c99
02:31:48+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ device.pair.list 2120ms conn=81c9edb5…d7b1 id=0be2e19b…7fe6
02:31:48+00:00 info bonjour: advertised gateway fqdn=clawbot (OpenClaw)._openclaw-gw._tcp.local. host=openclaw.local. port=18789 state=announcing
02:31:56+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ node.list 2105ms conn=81c9edb5…d7b1 id=dd483799…508e
02:32:00+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ chat.history 13852ms conn=81c9edb5…d7b1 id=46181648…615e
02:32:00+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ models.list 13823ms conn=81c9edb5…d7b1 id=d501916b…7751
02:32:00+00:00 warn gateway/model-pricing {"subsystem":"gateway/model-pricing"} pricing bootstrap failed: TimeoutError: The operation was aborted due to timeout
02:32:00+00:00 info plugins {"subsystem":"plugins"} embedded acpx runtime backend registered (cwd: /home/zjunsen/.openclaw/workspace)
02:32:00+00:00 info browser/server {"subsystem":"browser/server"} Browser control listening on http://127.0.0.1:18791/ (auth=token)
02:32:02+00:00 info plugins {"subsystem":"plugins"} embedded acpx runtime backend ready
02:32:37+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ sessions.patch 77ms conn=81c9edb5…d7b1 id=653a5804…dcae
02:33:14+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ node.list 1108ms conn=81c9edb5…d7b1 id=3d8df4e5…eae5
02:33:32+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ channels.status 108ms conn=a4c9ee2c…b8e9 id=c58d02f3…5622
02:35:31+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ sessions.patch 58ms conn=996d1e17…4f24 id=47eafaee…521f
02:35:33+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ logs.tail 136ms conn=3f12bd6a…5596 id=8ff43d4f…0a67
02:35:58+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_agent_end","tags":["error_handling","lifecycle","agent_end","assistant_error"],"runId":"fbb626b0-a5ec-4162-921c-b30e6f2238d2","isError":true,"error":"400 Item 'rs_0d7f5b2bff402fb40069d71089912c8190a2a93d7e8ccd6bb8' of type 'reasoning' was provided without its required following item.","failoverReason":"format","model":"gpt-5.2-codex","provider":"AzureOpenAI-Two","rawErrorPreview":"400 Item 'rs_0d7f5b2bff402fb40069d71089912c8190a2a93d7e8ccd6bb8' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:889555c4b0fe"} embedded run agent end
02:35:58+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_failover_decision","tags":["error_handling","failover","assistant","surface_error"],"runId":"fbb626b0-a5ec-4162-921c-b30e6f2238d2","stage":"assistant","decision":"surface_error","failoverReason":"format","profileFailureReason":"format","provider":"AzureOpenAI-Two","model":"gpt-5.2-codex","fallbackConfigured":false,"timedOut":false,"aborted":false,"rawErrorPreview":"400 Item 'rs_0d7f5b2bff402fb40069d71089912c8190a2a93d7e8ccd6bb8' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:889555c4b0fe"} embedded run failover decision
02:36:40+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_agent_end","tags":["error_handling","lifecycle","agent_end","assistant_error"],"runId":"976cf8cb-6728-41ca-b802-694f3704ab2e","isError":true,"error":"400 Item 'rs_0d7f5b2bff402fb40069d71089912c8190a2a93d7e8ccd6bb8' of type 'reasoning' was provided without its required following item.","failoverReason":"format","model":"gpt-5.2-codex","provider":"AzureOpenAI-Two","rawErrorPreview":"400 Item 'rs_0d7f5b2bff402fb40069d71089912c8190a2a93d7e8ccd6bb8' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:889555c4b0fe"} embedded run agent end
02:36:40+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_failover_decision","tags":["error_handling","failover","assistant","surface_error"],"runId":"976cf8cb-6728-41ca-b802-694f3704ab2e","stage":"assistant","decision":"surface_error","failoverReason":"format","profileFailureReason":"format","provider":"AzureOpenAI-Two","model":"gpt-5.2-codex","fallbackConfigured":false,"timedOut":false,"aborted":false,"rawErrorPreview":"400 Item 'rs_0d7f5b2bff402fb40069d71089912c8190a2a93d7e8ccd6bb8' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:889555c4b0fe"} embedded run failover decision
02:53:03+00:00 info gateway/reload {"subsystem":"gateway/reload"} config change detected; evaluating reload (models.providers.AzureOpenAI-One.api, models.providers.AzureOpenAI-One.models, models.providers.AzureOpenAI-Two.api, models.providers.AzureOpenAI-Two.models, models.providers.AzureOpenAI-Three.api, models.providers.AzureOpenAI-Three.models)
02:53:03+00:00 info gateway/reload {"subsystem":"gateway/reload"} config hot reload applied (models.providers.AzureOpenAI-One.api, models.providers.AzureOpenAI-One.models, models.providers.AzureOpenAI-Two.api, models.providers.AzureOpenAI-Two.models, models.providers.AzureOpenAI-Three.api, models.providers.AzureOpenAI-Three.models)
02:53:15+00:00 info gateway {"subsystem":"gateway"} signal SIGTERM received
02:53:15+00:00 info gateway {"subsystem":"gateway"} received SIGTERM; shutting down
02:53:15+00:00 info gmail-watcher {"subsystem":"gmail-watcher"} gmail watcher stopped
02:53:15+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat disconnected code=1012 reason=service restart conn=81c9edb5-faaa-42be-adbe-a5321a5cd7b1
02:53:22+00:00 info gateway {"subsystem":"gateway"} loading configuration…
02:53:22+00:00 info gateway {"subsystem":"gateway"} resolving authentication…
02:53:22+00:00 info gateway {"subsystem":"gateway"} starting...
02:53:24+00:00 info gateway {"subsystem":"gateway"} starting HTTP server...
02:53:24+00:00 info gateway/canvas {"subsystem":"gateway/canvas"} canvas host mounted at http://127.0.0.1:18789/__openclaw__/canvas/ (root /home/zjunsen/.openclaw/canvas)
02:53:24+00:00 info gateway {"subsystem":"gateway"} MCP loopback server listening on http://127.0.0.1:38919/mcp
02:53:24+00:00 info gateway/heartbeat {"subsystem":"gateway/heartbeat"} {"intervalMs":1800000} heartbeat: started
02:53:24+00:00 info gateway/health-monitor {"subsystem":"gateway/health-monitor"} started (interval: 300s, startup-grace: 60s, channel-connect-grace: 120s)
02:53:24+00:00 info gateway {"subsystem":"gateway"} agent model: azureopenai-three/gpt-5.3-chat
02:53:24+00:00 info gateway {"subsystem":"gateway"} ready (5 plugins, 1.8s)
02:53:24+00:00 info gateway {"subsystem":"gateway"} log file: /tmp/openclaw/openclaw-2026-04-09.log
02:53:24+00:00 info gateway {"subsystem":"gateway"} starting channels and sidecars...
02:53:24+00:00 info cron {"module":"cron","storePath":"/home/zjunsen/.openclaw/cron/jobs.json"} {"enabled":true,"jobs":0,"nextWakeAtMs":null} cron: started
02:53:24+00:00 info gateway/hooks {"subsystem":"gateway/hooks"} loaded 4 internal hook handlers
02:53:26+00:00 info bonjour: advertised gateway fqdn=clawbot (OpenClaw)._openclaw-gw._tcp.local. host=openclaw.local. port=18789 state=announcing
02:53:48+00:00 info gateway/ws {"subsystem":"gateway/ws"} webchat connected conn=f7405b33-10ce-40cd-927d-036fdddaae2f remote=127.0.0.1 client=openclaw-control-ui webchat vcontrol-ui
02:53:58+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ node.list 9825ms conn=f7405b33…ae2f id=a040fcc1…5ddc
02:53:58+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ device.pair.list 9828ms conn=f7405b33…ae2f id=dbe9324a…b5f6
02:53:59+00:00 warn gateway/ws {"subsystem":"gateway/ws"} handshake timeout conn=28808b43-0196-4051-a160-8a165a197ca5 remote=127.0.0.1
02:54:02+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ chat.history 13534ms conn=f7405b33…ae2f id=f394c5b2…3b54
02:54:02+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ models.list 13509ms conn=f7405b33…ae2f id=302d6ed8…0ba4
02:54:02+00:00 info plugins {"subsystem":"plugins"} embedded acpx runtime backend registered (cwd: /home/zjunsen/.openclaw/workspace)
02:54:02+00:00 info browser/server {"subsystem":"browser/server"} Browser control listening on http://127.0.0.1:18791/ (auth=token)
02:54:02+00:00 warn gateway/ws {"subsystem":"gateway/ws"} {"cause":"handshake-timeout","handshake":"failed","durationMs":13671,"lastFrameType":"req","lastFrameMethod":"connect","lastFrameId":"81badb38-5d6b-4c78-b622-c7ba9d403fce","host":"127.0.0.1:18789","handshakeMs":10616} closed before connect conn=28808b43-0196-4051-a160-8a165a197ca5 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1000 reason=n/a
02:54:02+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ node.list 51ms conn=f7405b33…ae2f id=21904193…573c
02:54:02+00:00 error gateway connect failed: Error: gateway closed (1000): 
02:54:02+00:00 error gateway connect failed: Error: gateway closed (1000): 
02:54:04+00:00 info plugins {"subsystem":"plugins"} embedded acpx runtime backend ready
03:02:21+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✗ sessions.delete 17ms errorCode=INVALID_REQUEST errorMessage=Cannot delete the main session (agent:main:main). conn=f7405b33…ae2f id=bb052cbf…7cee
03:02:21+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ sessions.delete 55ms conn=f7405b33…ae2f id=8551123f…a7a1
03:02:37+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ node.list 1321ms conn=f7405b33…ae2f id=bb8d3383…8aba
03:02:45+00:00 info hooks/session-memory {"subsystem":"hooks/session-memory"} Session context saved to ~/.openclaw/workspace/memory/2026-04-09-codex-error.md
03:02:54+00:00 error [tools] read failed: ENOENT: no such file or directory, access '/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md' raw_params={"path":"/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md"}
03:02:54+00:00 error [tools] read failed: ENOENT: no such file or directory, access '/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md' raw_params={"path":"/home/zjunsen/.openclaw/workspace/memory/2026-04-09.md"}
03:02:56+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_agent_end","tags":["error_handling","lifecycle","agent_end","assistant_error"],"runId":"34ff1968-8412-4e56-bd66-c546121842ff","isError":true,"error":"400 Item 'rs_00bf8d6f950b47260069d716dae0e881938296d799c76d0273' of type 'reasoning' was provided without its required following item.","failoverReason":"format","model":"gpt-5.3-chat","provider":"AzureOpenAI-Three","rawErrorPreview":"400 Item 'rs_00bf8d6f950b47260069d716dae0e881938296d799c76d0273' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:497f55a2714f"} embedded run agent end
03:02:56+00:00 warn agent/embedded {"subsystem":"agent/embedded"} {"event":"embedded_run_failover_decision","tags":["error_handling","failover","assistant","surface_error"],"runId":"34ff1968-8412-4e56-bd66-c546121842ff","stage":"assistant","decision":"surface_error","failoverReason":"format","profileFailureReason":"format","provider":"AzureOpenAI-Three","model":"gpt-5.3-chat","fallbackConfigured":false,"timedOut":false,"aborted":false,"rawErrorPreview":"400 Item 'rs_00bf8d6f950b47260069d716dae0e881938296d799c76d0273' of type 'reasoning' was provided without its required following item.","rawErrorHash":"sha256:497f55a2714f"} embedded run failover decision

Impact and severity

Severity: High Impact: Blocks using gpt-5.2-codex for coding workflows. Blocks using gpt-5.3-chat for general chat workflows. Makes OpenClaw unusable for these key models in our environment.

Additional information

HTTP 400: Item 'rs_0a9c8f292ba8d94f0069d70d81b3f88190b225a1acd080df40' of type 'reasoning' was provided without its
required following item.
gateway connected | idle
agent main | session main (openclaw-tui) | azureopenai-two/gpt-5.2-codex | tokens 24k/1.0m (2%)

<img width="1090" height="250" alt="Image" src="https://github.com/user-attachments/assets/9df59e3b-5bf2-4426-b688-db5a6f927f6e" />

Speculation: The core reason for the 400 error (Item 'rs_...' of type 'reasoning' was provided...) is that the Azure API returned a reasoning block, but the OpenClaw parser, while processing this stream, disconnected or attempted to parse the next message before waiting for the corresponding content block.

extent analysis

TL;DR

The most likely fix is to modify the OpenClaw configuration to properly handle the "reasoning" item type in the payload sent to the Azure OpenAI endpoint.

Guidance

  1. Review the Azure OpenAI API documentation: Ensure that the payload being sent to the Azure OpenAI endpoint is correctly formatted and includes all required items for the "reasoning" type.
  2. Check the OpenClaw parser: Verify that the OpenClaw parser is correctly handling the "reasoning" item type and waiting for the corresponding content block before attempting to parse the next message.
  3. Modify the OpenClaw configuration: Update the OpenClaw configuration to properly handle the "reasoning" item type, potentially by adding a required following item or modifying the parser to wait for the complete content block.
  4. Test with a minimal payload: Test the OpenClaw configuration with a minimal payload that includes the "reasoning" item type to isolate the issue and verify the fix.

Example

No code snippet is provided as the issue is related to the configuration and parsing of the Azure OpenAI API response.

Notes

The provided logs and error messages indicate that the issue is related to the handling of the "reasoning" item type in the payload sent to the Azure OpenAI endpoint. The speculation provided in the issue suggests that the OpenClaw parser may be disconnecting or attempting to parse the next message before waiting for the corresponding content block.

Recommendation

Apply a workaround by modifying the OpenClaw configuration to properly handle the "reasoning" item type, as this is the most likely cause of the issue. This may involve updating the parser to wait for the complete content block or adding a required following item to the payload.

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

OpenClaw should successfully route the request to the configured provider and return a valid completion/response from gpt-5.2-codex / gpt-5.3-chat.

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]: HTTP 400 when calling gpt-5.2-codex / gpt-5.3-chat via OpenClaw (Azure OpenAI Responses adapter / reasoning item issue) [1 participants]