openai / openai/codex

Persistent capacity errors and stream disconnections — possible account-specific issue

Open
#46,265 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug CLI connectivity rate-limits
Dominant language
Rust
Stars
125k
Forks
19.4k
PR merge metrics
PR metrics pending

Description

What version of Codex CLI is running?

codex-cli 0.154.0

What subscription do you have?

Pro 20x

Which model were you using?

gpt-6-astra, gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna

What platform is your computer?

Linux 6.12.46-66.121.amzn2023.x86_64 x86_64 x86_64

What terminal emulator and version are you using (if applicable)?

No response

Codex doctor report
{
  "schemaVersion": 1,
  "generatedAt": "1789666736s since unix epoch",
  "overallStatus": "warning",
  "codexVersion": "0.154.0",
  "checks": {
    "app_server.status": {
      "id": "app_server.status",
      "category": "app-server",
      "status": "ok",
      "summary": "background server is not running",
      "details": {
        "control socket": "/root/.codex/app-server-control/app-server-control.sock",
        "daemon state dir": "/root/.codex/app-server-daemon",
        "mode": "ephemeral",
        "pid file": "/root/.codex/app-server-daemon/app-server.pid (missing)",
        "settings": "/root/.codex/app-server-daemon/settings.json (missing)",
        "status": "not running",
        "update-loop pid file": "/root/.codex/app-server-daemon/app-server-updater.pid (missing)"
      },
      "remediation": null,
      "durationMs": 0
    },
    "auth.credentials": {
      "id": "auth.credentials",
      "category": "auth",
      "status": "ok",
      "summary": "auth is configured",
      "details": {
        "auth file": "/root/.codex/auth.json",
        "auth storage mode": "File",
        "stored API key": "false",
        "stored ChatGPT tokens": "true",
        "stored agent identity": "false",
        "stored auth mode": "chatgpt"
      },
      "remediation": null,
      "durationMs": 0
    },
    "config.load": {
      "id": "config.load",
      "category": "config",
      "status": "ok",
      "summary": "config loaded",
      "details": {
        "CODEX_HOME": "/root/.codex",
        "active thread overrides": "not inspected",
        "config.toml": "/root/.codex/config.toml",
        "config.toml parse": "ok",
        "configuration load ms": "12",
        "configuration scope": "invocation config, including cloud-managed policy",
        "cwd": "/root",
        "enabled feature flags": "shell_tool, view_image, sleep_tool, unified_exec, unified_exec_tty, unified_exec_zsh_fork, shell_snapshot, content_item_kinds, code_mode_host, terminal_resize_reflow, sqlite, memories, hooks, enable_request_compression, unbounded_connection_retries, multi_agent, apps, tool_search_always_defer_mcp_tools, tool_suggest, plugins, in_app_browser, in_app_chat, in_app_dictation, in_app_local_automation, in_app_updates, browser_use, browser_use_full_cdp_access, browser_use_external, computer_use, remote_plugin, plugin_sharing, image_generation, resize_all_images, item_ids, skill_mcp_dependency_install, skill_search, mentions_v2, steer, guardian_approval, goals, collaboration_modes, tool_call_mcp_elicitation, auth_elicitation, personality, fast_mode, tui_app_server, remote_compaction_v2, compaction_image_budget, workspace_dependencies",
        "feature flag overrides": "memories=true",
        "feature flags enabled": "49",
        "log dir": "/root/.codex/log",
        "mcp servers": "0",
        "model": "gpt-6-astra",
        "model provider": "openai",
        "sqlite home": "/root/.codex"
      },
      "remediation": null,
      "durationMs": 0
    },
    "git.environment": {
      "id": "git.environment",
      "category": "git",
      "status": "ok",
      "summary": "git executable found; execution not verified",
      "details": {
        "PATH git #1": "/usr/bin/git",
        "PATH git entries": "1",
        "git execution": "not inspected (PATH helpers are not executed)",
        "repo detected": "false",
        "selected git": "/usr/bin/git"
      },
      "remediation": null,
      "durationMs": 0
    },
    "installation": {
      "id": "installation",
      "category": "install",
      "status": "ok",
      "summary": "installation looks consistent",
      "details": {
        "PATH codex #1": "/root/.local/bin/codex",
        "current executable": "/root/.codex/packages/standalone/releases/0.154.0-x86_64-unknown-linux-musl/bin/codex",
        "install context": "standalone (unix, package /root/.codex/packages/standalone/releases/0.154.0-x86_64-unknown-linux-musl, bin /root/.codex/packages/standalone/releases/0.154.0-x86_64-unknown-linux-musl/bin, resources /root/.codex/packages/standalone/releases/0.154.0-x86_64-unknown-linux-musl/codex-resources, path /root/.codex/packages/standalone/releases/0.154.0-x86_64-unknown-linux-musl/codex-path)",
        "managed by Vite+": "false",
        "managed by bun": "false",
        "managed by npm": "false",
        "managed by pnpm": "false",
        "managed package root": "not set"
      },
      "remediation": null,
      "durationMs": 0
    },
    "mcp.config": {
      "id": "mcp.config",
      "category": "mcp",
      "status": "ok",
      "summary": "no MCP servers configured",
      "details": {},
      "remediation": null,
      "durationMs": 0
    },
    "network.env": {
      "id": "network.env",
      "category": "network",
      "status": "ok",
      "summary": "network-related environment looks readable",
      "details": {
        "managed proxy": "not configured",
        "proxy env vars": "none",
        "respect system proxy": "disabled"
      },
      "remediation": null,
      "durationMs": 0
    },
    "network.provider_reachability": {
      "id": "network.provider_reachability",
      "category": "reachability",
      "status": "ok",
      "summary": "active provider endpoints are reachable over HTTP",
      "details": {
        "ChatGPT inference URL": "https://chatgpt.com/backend-api/<redacted> reachable (HTTP 405)",
        "reachability mode": "ChatGPT auth"
      },
      "remediation": null,
      "durationMs": 192
    },
    "network.websocket_reachability": {
      "id": "network.websocket_reachability",
      "category": "websocket",
      "status": "ok",
      "summary": "Responses WebSocket handshake succeeded",
      "details": {
        "DNS": "2 IPv4, 2 IPv6, first IPv4",
        "auth mode": "chatgpt",
        "connect timeout": "15000 ms",
        "endpoint": "wss://chatgpt.com/backend-api/<redacted>",
        "handshake result": "HTTP 101 Switching Protocols",
        "model provider": "openai",
        "provider name": "OpenAI",
        "proxy env vars": "none",
        "reasoning header": "false",
        "server model present": "false",
        "supports websockets": "true",
        "wire API": "responses"
      },
      "remediation": null,
      "durationMs": 447
    },
    "runtime.provenance": {
      "id": "runtime.provenance",
      "category": "runtime",
      "status": "ok",
      "summary": "running standalone on linux-x86_64",
      "details": {
        "commit": "unknown",
        "current executable": "/root/.codex/packages/standalone/releases/0.154.0-x86_64-unknown-linux-musl/bin/codex",
        "install method": "standalone (unix, package /root/.codex/packages/standalone/releases/0.154.0-x86_64-unknown-linux-musl, bin /root/.codex/packages/standalone/releases/0.154.0-x86_64-unknown-linux-musl/bin, resources /root/.codex/packages/standalone/releases/0.154.0-x86_64-unknown-linux-musl/codex-resources, path /root/.codex/packages/standalone/releases/0.154.0-x86_64-unknown-linux-musl/codex-path)",
        "platform": "linux-x86_64",
        "version": "0.154.0"
      },
      "remediation": null,
      "durationMs": 0
    },
    "runtime.search": {
      "id": "runtime.search",
      "category": "search",
      "status": "ok",
      "summary": "search command found (bundled); execution not verified",
      "details": {
        "search command": "/root/.codex/packages/standalone/releases/0.154.0-x86_64-unknown-linux-musl/codex-path/rg",
        "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": "OnRequest",
        "codex-linux-sandbox helper": "/root/.codex/tmp/arg0/codex-arg013RSq3/codex-linux-sandbox",
        "denied-read glob rules": "0",
        "denied-read rules": "0",
        "execve wrapper helper": "/root/.codex/tmp/arg0/codex-arg013RSq3/codex-execve-wrapper",
        "filesystem sandbox": "restricted",
        "glob scan max depth": "unbounded",
        "managed filesystem source": "none",
        "network sandbox": "restricted"
      },
      "remediation": null,
      "durationMs": 0
    },
    "security.endpoint": {
      "id": "security.endpoint",
      "category": "security",
      "status": "ok",
      "summary": "endpoint protection is not inspected on this platform",
      "details": {
        "endpoint products": "not inspected on this platform"
      },
      "remediation": null,
      "durationMs": 0
    },
    "state.paths": {
      "id": "state.paths",
      "category": "state",
      "status": "ok",
      "summary": "state paths and databases are inspectable",
      "details": {
        "CODEX_HOME": "/root/.codex (dir)",
        "active rollout files": "32 files, 26882150 total bytes, 840067 average bytes",
        "archived rollout files": "7 files, 19202611 total bytes, 2743230 average bytes",
        "goals DB": "/root/.codex/goals_1.sqlite (file)",
        "goals DB integrity": "ok",
        "log DB": "/root/.codex/logs_2.sqlite (file)",
        "log DB integrity": "ok",
        "log dir": "/root/.codex/log (missing)",
        "memories DB": "/root/.codex/memories_1.sqlite (file)",
        "memories DB integrity": "ok",
        "queue DB": "/root/.codex/queue_1.sqlite (file)",
        "queue DB integrity": "ok",
        "sqlite home": "/root/.codex (dir)",
        "standalone release cache": "3 entries in /root/.codex/packages/standalone/releases",
        "state DB": "/root/.codex/state_5.sqlite (file)",
        "state DB integrity": "ok",
        "thread history DB": "/root/.codex/thread_history_1.sqlite (file)",
        "thread history DB integrity": "ok"
      },
      "remediation": null,
      "durationMs": 95
    },
    "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": "openai",
        "rollout DB active files": "32",
        "rollout DB active rows": "30",
        "rollout DB archive mismatches": "0",
        "rollout DB archived files": "7",
        "rollout DB archived rows": "7",
        "rollout DB duplicate DB paths": "0",
        "rollout DB duplicate rollout thread id sample": "01a05df7-58f1-7fc0-87e5-f48d982e4557",
        "rollout DB duplicate rollout thread ids": "1",
        "rollout DB malformed file names": "0",
        "rollout DB missing active rows": "2",
        "rollout DB missing active sample": [
          "/root/.codex/sessions/2026/09/13/rollout-2026-09-13T16-00-56-01a05df7-58f1-7fc0-87e5-f48d982e4557_01a09b80-129e-7b32-b80b-d907635b5643.jsonl",
          "/root/.codex/sessions/2026/09/01/rollout-2026-09-01T17-14-46-01a05df7-58f1-7fc0-87e5-f48d982e4557.jsonl"
        ],
        "rollout DB missing archived rows": "0",
        "rollout DB model providers": "openai=37",
        "rollout DB rows": "37",
        "rollout DB scan cap reached": "false",
        "rollout DB scan errors": "0",
        "rollout DB sources": "subagent:other=28, vscode=4, subagent:thread_spawn=3, cli=2",
        "rollout DB stale rows": "0"
      },
      "issues": [
        {
          "severity": "warning",
          "cause": "rollout files are missing from the state DB",
          "measured": "2 active, 0 archived",
          "expected": "every rollout file has a matching threads row",
          "remedy": null,
          "fields": []
        },
        {
          "severity": "warning",
          "cause": "duplicate thread inventory entries found",
          "measured": "1 duplicate rollout thread ids, 0 duplicate DB paths",
          "expected": "one rollout path and thread id per thread",
          "remedy": "Attach the doctor report to a bug report so support can inspect samples.",
          "fields": []
        }
      ],
      "remediation": null,
      "durationMs": 38
    },
    "system.disk": {
      "id": "system.disk",
      "category": "disk",
      "status": "ok",
      "summary": "sufficient free disk space (10.1 GiB)",
      "details": {
        "CODEX_HOME available": "10.1 GiB",
        "failure threshold": "1.0 GiB",
        "warning threshold": "5.0 GiB",
        "worktree available": "10.1 GiB"
      },
      "remediation": null,
      "durationMs": 0
    },
    "system.environment": {
      "id": "system.environment",
      "category": "system",
      "status": "ok",
      "summary": "OS language C",
      "details": {
        "EDITOR": "not set",
        "LANG": "C.UTF-8",
        "VISUAL": "not set",
        "os": "Amazon Linux AMI 2023.0.0 [64-bit]",
        "os language": "C",
        "os type": "Amazon Linux AMI",
        "os version": "2023.0.0"
      },
      "remediation": null,
      "durationMs": 0
    },
    "terminal.env": {
      "id": "terminal.env",
      "category": "terminal",
      "status": "ok",
      "summary": "terminal metadata was detected",
      "details": {
        "SSH_CLIENT": "present",
        "SSH_CONNECTION": "present",
        "SSH_TTY": "present",
        "TERM": "gnome-256color",
        "color output": "enabled",
        "effective locale": "C.UTF-8",
        "stderr is terminal": "true",
        "stdin is terminal": "true",
        "stdout is terminal": "true",
        "terminal": "unknown",
        "terminal size": "120x30"
      },
      "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": "root",
        "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.154.0",
        "check for update on startup": "true",
        "last checked at": "2026-09-17T12:39:10.446883292Z",
        "latest version": "0.154.0",
        "latest version status": "current version is not older",
        "update action": "standalone installer",
        "version cache": "/root/.codex/version.json"
      },
      "remediation": null,
      "durationMs": 457
    }
  }
}
What issue are you seeing?

Summary

I am experiencing frequent capacity errors and stream disconnections in Codex CLI on an AWS server in Tokyo. These failures repeatedly interrupt my work.

My previous Pro 20x account worked reliably without these recurring problems, whereas my current account has been experiencing persistent failures.

This comparison is based on usage at different times, not a controlled same-time A/B test. I am reporting a possible account-specific issue, not claiming that the cause has been confirmed.

Observed errors

  • Capacity-related errors
  • "Falling back from WebSockets to HTTPS transport"
  • "stream disconnected before completion"
  • "An error occurred while processing your request"

Uploaded diagnostics

I successfully submitted diagnostics through /feedback.

Uploaded thread: 01a05df7-58f1-7fc0-87e5-f48d982e4557

Previous request IDs:

  • ecd3c794-1472-4709-8f4a-5b2c87661b26
  • 96efc479-a901-4673-b24d-216f92023c56

Investigation requested

Please review the uploaded diagnostics and correlate the request IDs with the relevant server-side logs.

In particular, please investigate whether subscription entitlements, unexpected quota/rate-limit conditions, or account-related backend routing/capacity allocation could explain the repeated failures.

Please also determine whether the capacity errors and stream disconnections share an underlying cause or are separate issues.

If additional diagnostics or a specific reproduction test are required, please provide instructions.

What steps can reproduce the bug?

Uploaded thread: 01a05df7-58f1-7fc0-87e5-f48d982e4557

What is the expected behavior?

No response

Additional information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the supplied Codex doctor report and reproduce the capacity errors and stream disconnections on Linux with the listed models. Compare those failures with the successful HTTP and WebSocket reachability checks; done means determining whether the behavior is account-specific and documenting a confirmed cause or actionable reproduction.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, rust
Domain
cli, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.