GPT-5.5 xhigh via Amazon Bedrock stops automatically mid-task in Codex CLI, same as GPT-5.4 xhigh
What version of Codex CLI is running?
codex-cli 0.137.0 and codex-cli 0.138.0-alpha.6
What subscription do you have?
AWS Bedrock
Which model were you using?
gpt-5.5
What platform is your computer?
on both Windows and Linux is same!
What terminal emulator and version are you using (if applicable)?
All, even codex app have same issue
Codex doctor report
{
"schemaVersion": 1,
"generatedAt": "1780817294s since unix epoch",
"overallStatus": "warning",
"codexVersion": "0.138.0-alpha.6",
"checks": {
"app_server.status": {
"id": "app_server.status",
"category": "app-server",
"status": "ok",
"summary": "background server is not running",
"details": {
"control socket": "C:\\Users\\User\\.codex\\app-server-control\\app-server-control.sock",
"daemon state dir": "C:\\Users\\User\\.codex\\app-server-daemon",
"mode": "ephemeral",
"pid file": "C:\\Users\\User\\.codex\\app-server-daemon\\app-server.pid (missing)",
"settings": "C:\\Users\\User\\.codex\\app-server-daemon\\settings.json (missing)",
"status": "not running",
"update-loop pid file": "C:\\Users\\User\\.codex\\app-server-daemon\\app-server-updater.pid (missing)"
},
"remediation": null,
"durationMs": 0
},
"auth.credentials": {
"id": "auth.credentials",
"category": "auth",
"status": "ok",
"summary": "OpenAI auth is not required for the active model provider",
"details": {
"auth file": "C:\\Users\\User\\.codex\\auth.json",
"auth storage mode": "File",
"model provider requires OpenAI auth": "false"
},
"remediation": null,
"durationMs": 0
},
"config.load": {
"id": "config.load",
"category": "config",
"status": "ok",
"summary": "config loaded",
"details": {
"CODEX_HOME": "C:\\Users\\User\\.codex",
"config.toml": "C:\\Users\\User\\.codex\\config.toml",
"config.toml parse": "ok",
"cwd": "C:\\Users\\User\\Desktop\\temp\\check5.5",
"enabled feature flags": "shell_tool, shell_snapshot, terminal_resize_reflow, sqlite, hooks, enable_request_compression, multi_agent, apps, tool_suggest, plugins, in_app_browser, browser_use, browser_use_external, computer_use, plugin_sharing, image_generation, skill_mcp_dependency_install, steer, guardian_approval, goals, collaboration_modes, tool_call_mcp_elicitation, personality, fast_mode, tui_app_server, workspace_dependencies",
"feature flag overrides": "none",
"feature flags enabled": "26",
"log dir": "C:\\Users\\User\\.codex\\log",
"mcp servers": "3",
"model": "openai.gpt-5.5",
"model provider": "amazon-bedrock",
"sqlite home": "C:\\Users\\User\\.codex"
},
"remediation": null,
"durationMs": 0
},
"git.environment": {
"id": "git.environment",
"category": "git",
"status": "ok",
"summary": "git version 2.50.1.windows.1",
"details": {
"PATH git #1": "C:\\Program Files\\Git\\cmd\\git.exe",
"PATH git entries": "1",
"git build options": "git version 2.50.1.windows.1; cpu: x86_64; built from commit: 4d32d83913170b86f9753fca10e75cdb2223d1cc; sizeof-long: 4; sizeof-size_t: 8; shell-path: D:/git-sdk-64/usr/bin/sh; feature: fsmonitor--daemon; libcurl: 8.14.1; OpenSSL: OpenSSL 3.2.4 11 Feb 2025; zlib: 1.3.1; SHA-1: SHA1_DC; SHA-256: SHA256_BLK",
"git exec path": "C:/Program Files/Git/mingw64/libexec/git-core",
"git version": "git version 2.50.1.windows.1",
"repo detected": "false",
"selected git": "C:\\Program Files\\Git\\cmd\\git.exe"
},
"remediation": null,
"durationMs": 391
},
"installation": {
"id": "installation",
"category": "install",
"status": "ok",
"summary": "installation looks consistent",
"details": {
"PATH codex #1": "C:\\Program Files\\nodejs\\codex",
"PATH codex #2": "C:\\Program Files\\nodejs\\codex.cmd",
"PATH codex #3": "C:\\Users\\User\\AppData\\Roaming\\npm\\codex",
"PATH codex #4": "C:\\Users\\User\\AppData\\Roaming\\npm\\codex.cmd",
"PATH codex entries": "4",
"current executable": "C:\\Program Files\\nodejs\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\bin\\codex.exe",
"install context": "npm (package C:\\Program Files\\nodejs\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc, bin C:\\Program Files\\nodejs\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\bin, resources C:\\Program Files\\nodejs\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\codex-resources, path C:\\Program Files\\nodejs\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\codex-path)",
"managed by bun": "false",
"managed by npm": "true",
"managed package root": "C:\\Program Files\\nodejs\\node_modules\\@openai\\codex",
"npm update target": "C:\\Program Files\\nodejs\\node_modules\\@openai\\codex"
},
"remediation": null,
"durationMs": 914
},
"mcp.config": {
"id": "mcp.config",
"category": "mcp",
"status": "ok",
"summary": "MCP configuration is locally consistent",
"details": {
"configured servers": "3",
"disabled servers": "0",
"stdio servers": "2",
"streamable_http servers": "1"
},
"remediation": null,
"durationMs": 3347
},
"network.env": {
"id": "network.env",
"category": "network",
"status": "ok",
"summary": "network-related environment looks readable",
"details": {
"proxy env vars": "none"
},
"remediation": null,
"durationMs": 0
},
"network.provider_reachability": {
"id": "network.provider_reachability",
"category": "reachability",
"status": "ok",
"summary": "active provider endpoints are reachable over HTTP",
"details": {
"amazon-bedrock API base URL": "https://bedrock-mantle.us-east-1.api.aws/openai/<redacted> reachable (HTTP 404)",
"reachability mode": "provider auth"
},
"remediation": null,
"durationMs": 1512
},
"network.websocket_reachability": {
"id": "network.websocket_reachability",
"category": "websocket",
"status": "ok",
"summary": "Responses WebSocket is not enabled for the active provider",
"details": {
"model provider": "amazon-bedrock",
"provider name": "Amazon Bedrock",
"proxy env vars": "none",
"supports websockets": "false",
"wire API": "responses"
},
"remediation": null,
"durationMs": 0
},
"runtime.provenance": {
"id": "runtime.provenance",
"category": "runtime",
"status": "ok",
"summary": "running npm on windows-x86_64",
"details": {
"commit": "unknown",
"current executable": "C:\\Program Files\\nodejs\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\bin\\codex.exe",
"install method": "npm (package C:\\Program Files\\nodejs\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc, bin C:\\Program Files\\nodejs\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\bin, resources C:\\Program Files\\nodejs\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\codex-resources, path C:\\Program Files\\nodejs\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\codex-path)",
"platform": "windows-x86_64",
"version": "0.138.0-alpha.6"
},
"remediation": null,
"durationMs": 0
},
"runtime.search": {
"id": "runtime.search",
"category": "search",
"status": "ok",
"summary": "search is OK (bundled)",
"details": {
"search command": "C:\\Program Files\\nodejs\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\codex-path\\rg.exe",
"search command readiness": "file exists",
"search provider": "bundled"
},
"remediation": null,
"durationMs": 0
},
"sandbox.helpers": {
"id": "sandbox.helpers",
"category": "sandbox",
"status": "ok",
"summary": "sandbox configuration is readable",
"details": {
"approval policy": "Never",
"codex-linux-sandbox helper": "none",
"execve wrapper helper": "none",
"filesystem sandbox": "unrestricted",
"network sandbox": "enabled"
},
"remediation": null,
"durationMs": 0
},
"state.paths": {
"id": "state.paths",
"category": "state",
"status": "ok",
"summary": "state paths and databases are inspectable",
"details": {
"CODEX_HOME": "C:\\Users\\User\\.codex (dir)",
"active rollout files": "665 files, 956571232 total bytes, 1438452 average bytes",
"archived rollout files": "0 files, 0 total bytes, 0 average bytes",
"goals DB": "C:\\Users\\User\\.codex\\goals_1.sqlite (file)",
"goals DB integrity": "ok",
"log DB": "C:\\Users\\User\\.codex\\logs_2.sqlite (file)",
"log DB integrity": "ok",
"log dir": "C:\\Users\\User\\.codex\\log (dir)",
"memories DB": "C:\\Users\\User\\.codex\\memories_1.sqlite (file)",
"memories DB integrity": "ok",
"sqlite home": "C:\\Users\\User\\.codex (dir)",
"state DB": "C:\\Users\\User\\.codex\\state_5.sqlite (file)",
"state DB integrity": "ok"
},
"remediation": null,
"durationMs": 5232
},
"state.rollout_db_parity": {
"id": "state.rollout_db_parity",
"category": "threads",
"status": "warning",
"summary": "rollout files and state DB thread inventory differ",
"details": {
"default model provider": "amazon-bedrock",
"rollout DB active files": "664",
"rollout DB active rows": "632",
"rollout DB archive mismatches": "0",
"rollout DB archived files": "0",
"rollout DB archived rows": "0",
"rollout DB duplicate DB paths": "0",
"rollout DB duplicate rollout thread ids": "0",
"rollout DB malformed file names": "0",
"rollout DB missing active rows": "32",
"rollout DB missing active sample": [
"C:\\Users\\User\\.codex\\sessions\\2026\\04\\02\\rollout-2026-04-02T11-30-47-019d4c3e-569e-71b3-86a2-c69bc7a85cb4.jsonl",
"C:\\Users\\User\\.codex\\sessions\\2026\\04\\02\\rollout-2026-04-02T11-31-52-019d4c3f-5513-7c03-bf7e-e66af5ffa86a.jsonl",
"C:\\Users\\User\\.codex\\sessions\\2026\\04\\02\\rollout-2026-04-02T11-36-17-019d4c43-60d0-7e73-939f-3b96e4a6464d.jsonl",
"C:\\Users\\User\\.codex\\sessions\\2026\\04\\02\\rollout-2026-04-02T11-37-37-019d4c44-9ae5-71e3-9a84-d5d9b9f7b407.jsonl",
"C:\\Users\\User\\.codex\\sessions\\2026\\04\\02\\rollout-2026-04-02T11-40-07-019d4c46-e20b-7fe2-973f-62bfcc143ce1.jsonl"
],
"rollout DB missing archived rows": "0",
"rollout DB model providers": "openai=484, codex-pool=133, amazon-bedrock=15",
"rollout DB rows": "632",
"rollout DB scan cap reached": "false",
"rollout DB scan error sample": "C:\\Users\\User\\.codex\\sessions\\2026\\04\\27\\rollout-2026-04-27T13-28-11-019dcd68-ce9f-78b1-8788-473d50c580a5.jsonl (empty session file)",
"rollout DB scan errors": "1",
"rollout DB sources": "exec=435, cli=163, vscode=32, subagent:thread_spawn=2",
"rollout DB stale rows": "0"
},
"issues": [
{
"severity": "warning",
"cause": "rollout files are missing from the state DB",
"measured": "32 active, 0 archived",
"expected": "every rollout file has a matching threads row",
"remedy": null,
"fields": []
},
{
"severity": "warning",
"cause": "rollout scan was incomplete or found bad files",
"measured": "1 scan errors, 0 malformed names, scan cap reached: false",
"expected": "rollout directories are fully scannable",
"remedy": "Check file permissions and unexpected files under CODEX_HOME sessions.",
"fields": []
}
],
"remediation": null,
"durationMs": 20041
},
"system.environment": {
"id": "system.environment",
"category": "system",
"status": "ok",
"summary": "OS language en-US",
"details": {
"os": "Windows 10.0.19045 (Windows 10 Pro) [64-bit]",
"os language": "en-US",
"os type": "Windows",
"os version": "10.0.19045"
},
"remediation": null,
"durationMs": 0
},
"terminal.env": {
"id": "terminal.env",
"category": "terminal",
"status": "ok",
"summary": "terminal metadata was detected",
"details": {
"color output": "enabled",
"console input code page": "437",
"console output code page": "65001",
"stderr console mode": "0x00000003 (VT processing: false)",
"stderr is terminal": "true",
"stdin is terminal": "true",
"stdout console mode": "0x00000003 (VT processing: false)",
"stdout is terminal": "true",
"terminal": "unknown",
"terminal size": "166x43"
},
"remediation": null,
"durationMs": 0
},
"terminal.title": {
"id": "terminal.title",
"category": "title",
"status": "ok",
"summary": "terminal title default",
"details": {
"terminal title activity": "true",
"terminal title items": "activity, project-name",
"terminal title project source": "cwd",
"terminal title project value": "check5.5",
"terminal title source": "default"
},
"remediation": null,
"durationMs": 0
},
"updates.status": {
"id": "updates.status",
"category": "updates",
"status": "ok",
"summary": "update configuration is locally consistent",
"details": {
"cached latest version": "0.137.0",
"check for update on startup": "true",
"last checked at": "2026-06-07T06:49:46.924973700Z",
"latest version": "0.137.0",
"latest version status": "current version is not older",
"npm update target": "C:\\Program Files\\nodejs\\node_modules\\@openai\\codex",
"update action": "npm install -g @openai/codex",
"version cache": "C:\\Users\\User\\.codex\\version.json"
},
"remediation": null,
"durationMs": 753
}
}
}
What issue are you seeing?
When using Codex CLI with Amazon Bedrock and openai.gpt-5.5 at xhigh reasoning effort, Codex frequently stops automatically in the middle of a task. The session does not complete the requested work, and it looks like the agent simply terminates/halts before finishing the plan, patch, or final response.
The same environment works when I switch to openai.gpt-5.4 with xhigh, so this does not appear to be a general AWS credential, Bedrock access, terminal, or local Codex installation problem.
Observed behavior:
Codex starts the task normally.
It begins reasoning or executing steps.
During a longer coding/editing task, it stops before completion.
Sometimes it stops without a clear final answer or useful error.
The task remains incomplete.
Re-running with openai.gpt-5.4 and xhigh on the same task works much more reliably.
This seems specific to openai.gpt-5.5 + xhigh + Amazon Bedrock provider.
My Codex Bedrock configuration is approximately:
model = "openai.gpt-5.5"
model_provider = "amazon-bedrock"
model_reasoning_effort = "xhigh"
[model_providers.amazon-bedrock]
name = "Amazon Bedrock"
base_url = "https://bedrock-mantle.us-east-2.api.aws/openai/v1"
wire_api = "responses"
requires_openai_auth = false
env_key = "AWS_BEARER_TOKEN_BEDROCK"
[model_providers.amazon-bedrock.aws]
region = "us-east-2"
When I change only the model to GPT-5.4, the same workflow works:
model = "openai.gpt-5.4"
model_provider = "amazon-bedrock"
model_reasoning_effort = "xhigh"
[model_providers.amazon-bedrock]
name = "Amazon Bedrock"
base_url = "https://bedrock-mantle.us-east-2.api.aws/openai/v1"
wire_api = "responses"
requires_openai_auth = false
env_key = "AWS_BEARER_TOKEN_BEDROCK"
[model_providers.amazon-bedrock.aws]
region = "us-east-2"
This suggests the issue may be related to how Codex handles GPT-5.5 xhigh responses through the Bedrock Responses API, possibly involving one or more of:
long-running xhigh reasoning responses being prematurely treated as complete;
streaming/event handling differences for Bedrock Mantle responses;
output truncation or incomplete response lifecycle handling;
Codex not surfacing the underlying Bedrock/API error if the response is interrupted;
tool-call or patch-generation state being lost before the task completes;
an internal timeout or max-output/reasoning-budget interaction specific to GPT-5.5 xhigh.
There is no obvious AWS authentication issue, because GPT-5.4 works through the same Bedrock provider setup.
What steps can reproduce the bug?
Configure Codex CLI to use Amazon Bedrock as the provider.
Set the model to openai.gpt-5.5.
Set reasoning effort to xhigh.
Use region us-east-2.
Start a non-trivial coding task that requires multiple steps and/or file edits.
Observe that Codex starts working but stops automatically before completing the task.
Change only the model to openai.gpt-5.4, keeping xhigh and the same Bedrock configuration.
Run the same or very similar task again.
Observe that GPT-5.4 xhigh completes much more reliably.
What is the expected behavior?
Codex CLI should complete the task when using openai.gpt-5.5 with xhigh through Amazon Bedrock, or it should show a clear actionable error if the Bedrock response is interrupted, truncated, timed out, or rejected.
Expected behavior:
Codex should not silently stop mid-task.
If the model/API response is incomplete, Codex should report that clearly.
If the issue is caused by timeout, token budget, stream interruption, or Bedrock response lifecycle state, Codex should expose that reason.
GPT-5.5 xhigh should behave at least as reliably as GPT-5.4 xhigh for the same Bedrock provider configuration.
For editing tasks, Codex should either complete the patch safely or fail with a clear error before applying partial/incomplete changes.
Additional information
This appears to be specific to GPT-5.5 with xhigh reasoning effort through Amazon Bedrock.
Important comparison:
openai.gpt-5.5 + xhigh + Bedrock: stops automatically mid-task / incomplete.
openai.gpt-5.4 + xhigh + Bedrock: works in the same setup.
That comparison makes me think this is not primarily caused by local environment, AWS credentials, Bedrock access, or terminal configuration.
Please let me know if you want logs from a specific Codex debug mode or a specific Bedrock request/response trace format. I can reproduce and provide more details with private information redacted.
8 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
this is the issue that i was talking about , i don't think it is effort related , maybe cause the
apply_patchis being executed with empty body as seen in the logs , this happens also in opencode , so i think it is a bedrock / gpt 5.5 issue , don't know what is wrong as everything works perfectly on 5.4Confirming this is a Bedrock-side gpt-5.5 empty-output issue — with evidence ruling out context/effort/client.
Same setup:
openai.gpt-5.5via Amazon Bedrock (bedrock-mantle.us-east-2),model_reasoning_effort = high, Codex CLI 0.137.0. The turn halts silently mid-task — no error, no final message,task_completefires with nothing produced.I captured a halting turn from the rollout. The failing request:
The request sent ~44K input tokens and the model returned
output_tokens: 0— a completely empty response (HTTP 200, no error). Codex has no tool call or text to continue with, so the turn ends silently./statusat the moment of the halt:This rules out the leading theories:
highhere, and OP reportsxhigh; the failing request had 0 reasoning tokens too.Control: the exact same tasks on
openai.gpt-5.4(same provider, region, effort) complete reliably — no empty responses observed across extended use.Conclusion: this looks like an intermittent serving defect for gpt-5.5 on Bedrock Mantle that returns empty completions (
output_tokens: 0) mid-session, independent of context size or effort. It's probabilistic and correlates with longer tasks only because more requests = more chances to hit it.Direct curl to the same endpoint with a minimal prompt usually returns output fine, so it's load/context-shape dependent rather than a hard failure — which makes it hard to reproduce in isolation but very repeatable in real coding sessions.
Workaround for anyone blocked: switch to
openai.gpt-5.4.Please this requires full attention as
openai.gpt-5.5is unusable at all ! .@Mhrnqaruni @kivocsa99 if you are ok sharing the session with us, could you run
/feedbackand share the thread id with us? this would help us repro the issuehere you are,
btw today I saw new error for using gpt5.5 on Codex CLI using AWS Bedrock API, "stream disconnected before completion: The server had an error while processing your request. Sorry about that!"
and also sadly now gpt5.4 also got issue with AWS bedrock API, now gpt5.4 stop middle of work automatically also
gpt5.5 issue:
https://github.com/openai/codex/issues/new?template=3-cli.yml&steps=Uploaded%20thread:%20019eaa31-6c5f-7db3-9a83-5b0cc9c08751
019eaa31-6c5f-7db3-9a83-5b0cc9c08751
gpt5.4 issue:
https://github.com/openai/codex/issues/new?template=3-cli.yml&steps=Uploaded%20thread:%20019eaa2f-54db-75f1-b4e5-9fcb54a091f6
019eaa2f-54db-75f1-b4e5-9fcb54a091f6
Exactly same issue i am facing in codex CLI and codex Desktop app
we already let the bedrock team aware of the issue and we are working together on it. thanks for the details
Reproduction notes and proposed fix path
I took a pass at reducing this to an actionable code path before suggesting a fix.
Breakdown:
Proposed approach:
just test -p codex-core empty_response_completion_emits_error_message→ passPrecedent: #29189 Codex Desktop 26.616.41845 node_repl fails: codex/sandbox-state-meta missing sandboxPolicy
How I shaped this comment from prior successful threads:
This analysis was prepared with AI assistance.
<!-- fkst:codex-saga:engage:codex-triage:dup:openai/codex#26860 -->