Skip to content

Windows: codex_apps initialization fails with response decoding error in 0.160.0 #50438

Open

Description

@Ante-PoDs

What version of Codex CLI is running?

0.160.0

What subscription do you have?

PRO

Which model were you using?

Astra Ultra

What platform is your computer?

Microsoft Windows NT 10.0.26300.0 x64 Windows 11

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

Shell: Windows PowerShell 5.1. Terminal emulator/version: not confirmed. Multiplexer: not reported.

Codex doctor report

{
  "schemaVersion": 1,
  "generatedAt": "1790977869s since unix epoch",
  "overallStatus": "warning",
  "codexVersion": "0.160.0",
  "checks": {
    "app_server.status": {
      "id": "app_server.status",
      "category": "app-server",
      "status": "ok",
      "summary": "background server is running",
      "details": {
        "app-server version": "0.160.0",
        "control socket": "C:\\Users\\[USER]\\.codex\\app-server-control\\app-server-control.sock",
        "daemon state dir": "C:\\Users\\[USER]\\.codex\\app-server-daemon",
        "dedicated pid file": "C:\\Users\\[USER]\\.codex\\app-server-daemon\\daemon.pid (file)",
        "dedicated update-loop pid file": "C:\\Users\\[USER]\\.codex\\app-server-daemon\\daemon-updater.pid (file)",
        "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": "running",
        "update-loop pid file": "C:\\Users\\[USER]\\.codex\\app-server-daemon\\app-server-updater.pid (missing)"
      },
      "remediation": null,
      "durationMs": 7
    },
    "auth.credentials": {
      "id": "auth.credentials",
      "category": "auth",
      "status": "ok",
      "summary": "auth is configured",
      "details": {
        "auth file": "C:\\Users\\[USER]\\.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": "C:\\Users\\[USER]\\.codex",
        "active thread overrides": "not inspected",
        "config.toml": "C:\\Users\\[USER]\\.codex\\config.toml",
        "config.toml parse": "ok",
        "configuration load ms": "5",
        "configuration scope": "invocation config, including cloud-managed policy",
        "cwd": "C:\\[PROJECT]",
        "enabled feature flags": "<redacted>",
        "feature flag overrides": "none",
        "feature flags enabled": "53",
        "log dir": "C:\\Users\\[USER]\\.codex\\log",
        "mcp servers": "1",
        "model": "gpt-6-astra",
        "model provider": "openai",
        "sqlite home": "C:\\Users\\[USER]\\.codex"
      },
      "remediation": null,
      "durationMs": 0
    },
    "desktop.app.version": {
      "id": "desktop.app.version",
      "category": "desktop",
      "status": "ok",
      "summary": "the desktop application is installed",
      "details": {
        "log directory": "$HOME\\AppData\\Local\\Codex/Logs",
        "running": "true",
        "version": "26.930.2377.0"
      },
      "remediation": null,
      "durationMs": 0
    },
    "desktop.app_server.handshake": {
      "id": "desktop.app_server.handshake",
      "category": "desktop",
      "status": "ok",
      "summary": "the desktop app-server initialized successfully",
      "details": {},
      "remediation": null,
      "durationMs": 0
    },
    "desktop.security.enforcement": {
      "id": "desktop.security.enforcement",
      "category": "desktop",
      "status": "ok",
      "summary": "no locally visible recent Codex security enforcement was found",
      "details": {},
      "remediation": null,
      "durationMs": 0
    },
    "git.environment": {
      "id": "git.environment",
      "category": "git",
      "status": "ok",
      "summary": "git executable found; execution not verified",
      "details": {
        ".git entry": "directory",
        "PATH git #1": "C:\\Program Files\\Git\\cmd\\git.exe",
        "PATH git #2": "C:\\Users\\[USER]\\.cache\\codex-runtimes\\codex-primary-runtime\\dependencies\\native\\git\\cmd\\git.exe",
        "PATH git entries": "2",
        "git execution": "not inspected (PATH helpers are not executed)",
        "repo detected": "true",
        "repo root": "C:\\[PROJECT]",
        "selected git": "C:\\Program Files\\Git\\cmd\\git.exe"
      },
      "remediation": null,
      "durationMs": 7
    },
    "git.worktree.dev_drive": {
      "id": "git.worktree.dev_drive",
      "category": "git",
      "status": "warning",
      "summary": "this worktree is not on a Windows Dev Drive; moving it to a trusted Dev Drive can significantly improve repository and filesystem performance",
      "details": {},
      "remediation": "create a trusted Windows Dev Drive for source repositories: https://learn.microsoft.com/en-us/<redacted>",
      "durationMs": 0
    },
    "installation": {
      "id": "installation",
      "category": "install",
      "status": "ok",
      "summary": "installation looks consistent",
      "details": {
        "PATH codex #1": "C:\\Users\\[USER]\\AppData\\Roaming\\npm\\codex.cmd",
        "PATH codex #2": "C:\\Users\\[USER]\\AppData\\Local\\OpenAI\\Codex\\bin\\be3fd7e5c1969ff6\\codex.exe",
        "PATH codex entries": "2",
        "current executable": "C:\\Users\\[USER]\\AppData\\Roaming\\npm\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\bin\\codex.exe",
        "install context": "npm (package C:\\Users\\[USER]\\AppData\\Roaming\\npm\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc, bin C:\\Users\\[USER]\\AppData\\Roaming\\npm\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\bin, resources C:\\Users\\[USER]\\AppData\\Roaming\\npm\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\codex-resources, path C:\\Users\\[USER]\\AppData\\Roaming\\npm\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\codex-path)",
        "managed by Vite+": "false",
        "managed by bun": "false",
        "managed by npm": "true",
        "managed by pnpm": "false",
        "managed package root": "C:\\Users\\[USER]\\AppData\\Roaming\\npm\\node_modules\\@openai\\codex",
        "npm update target": "not inspected (PATH helpers are not executed)"
      },
      "remediation": null,
      "durationMs": 5
    },
    "mcp.config": {
      "id": "mcp.config",
      "category": "mcp",
      "status": "warning",
      "summary": "MCP configuration has optional issues",
      "details": {
        "configured servers": "1",
        "disabled servers": "0",
        "node_repl": "env var CODEX_WINDOWS_REGISTERED_CORE is not set",
        "stdio servers": "1"
      },
      "remediation": "Set the missing MCP env vars or disable the affected server.",
      "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)",
        "desktop assets CDN": "https://persistent.oaistatic.com/codex-app-prod/<redacted> reachable (HTTP 200)",
        "reachability mode": "ChatGPT auth"
      },
      "remediation": null,
      "durationMs": 216
    },
    "network.websocket_reachability": {
      "id": "network.websocket_reachability",
      "category": "websocket",
      "status": "ok",
      "summary": "Responses WebSocket handshake succeeded",
      "details": {
        "DNS": "2 IPv4, 2 IPv6, first IPv6",
        "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": 519
    },
    "runtime.provenance": {
      "id": "runtime.provenance",
      "category": "runtime",
      "status": "ok",
      "summary": "running npm on windows-x86_64",
      "details": {
        "commit": "unknown",
        "current executable": "C:\\Users\\[USER]\\AppData\\Roaming\\npm\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\bin\\codex.exe",
        "install method": "npm (package C:\\Users\\[USER]\\AppData\\Roaming\\npm\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc, bin C:\\Users\\[USER]\\AppData\\Roaming\\npm\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\bin, resources C:\\Users\\[USER]\\AppData\\Roaming\\npm\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\codex-resources, path C:\\Users\\[USER]\\AppData\\Roaming\\npm\\node_modules\\@openai\\codex\\node_modules\\@openai\\codex-win32-x64\\vendor\\x86_64-pc-windows-msvc\\codex-path)",
        "platform": "windows-x86_64",
        "version": "0.160.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": "C:\\Users\\[USER]\\AppData\\Roaming\\npm\\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.filesystem_paths": {
      "id": "sandbox.filesystem_paths",
      "category": "sandbox",
      "status": "ok",
      "summary": "no explicit filesystem paths to probe",
      "details": {},
      "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": "none",
        "denied-read glob rules": "0",
        "denied-read restrictions": "false",
        "denied-read rules": "0",
        "execve wrapper helper": "none",
        "filesystem sandbox": "restricted",
        "glob scan max depth": "unbounded",
        "managed filesystem source": "none",
        "network sandbox": "restricted",
        "sandbox backend": "<redacted>"
      },
      "remediation": null,
      "durationMs": 0
    },
    "security.endpoint": {
      "id": "security.endpoint",
      "category": "security",
      "status": "ok",
      "summary": "no supported endpoint protection detected",
      "details": {
        "endpoint products": "none detected"
      },
      "remediation": null,
      "durationMs": 42
    },
    "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": "2445 files, 13598329647 total bytes, 5561689 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 (missing)",
        "memories DB": "C:\\Users\\[USER]\\.codex\\memories_1.sqlite (file)",
        "memories DB integrity": "ok",
        "memories v2 DB": "C:\\Users\\[USER]\\.codex\\memories_v2_1.sqlite (missing)",
        "memories v2 DB integrity": "skipped (missing)",
        "queue DB": "C:\\Users\\[USER]\\.codex\\queue_1.sqlite (file)",
        "queue DB integrity": "ok",
        "sqlite home": "C:\\Users\\[USER]\\.codex (dir)",
        "state DB": "C:\\Users\\[USER]\\.codex\\state_5.sqlite (file)",
        "state DB integrity": "ok",
        "thread history DB": "C:\\Users\\[USER]\\.codex\\thread_history_1.sqlite (file)",
        "thread history DB integrity": "ok"
      },
      "remediation": null,
      "durationMs": 4181
    },
    "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": "2445",
        "rollout DB active rows": "2442",
        "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 id sample": [
          "[REDACTED_UNRELATED_SESSION_1]",
          "[REDACTED_UNRELATED_SESSION_2]"
        ],
        "rollout DB duplicate rollout thread ids": "2",
        "rollout DB malformed file names": "0",
        "rollout DB missing active rows": "3",
        "rollout DB missing active sample": [
          "[REDACTED_UNRELATED_SESSION_1]",
          "[REDACTED_UNRELATED_SESSION_2]",
          "[REDACTED_UNRELATED_SESSION_3]"
        ],
        "rollout DB missing archived rows": "0",
        "rollout DB model providers": "openai=2442",
        "rollout DB rows": "2442",
        "rollout DB scan cap reached": "false",
        "rollout DB scan errors": "0",
        "rollout DB sources": "subagent:thread_spawn=1238, subagent:other=1077, vscode=122, cli=5",
        "rollout DB stale rows": "0"
      },
      "issues": [
        {
          "severity": "warning",
          "cause": "rollout files are missing from the state DB",
          "measured": "3 active, 0 archived",
          "expected": "every rollout file has a matching threads row",
          "remedy": null,
          "fields": []
        },
        {
          "severity": "warning",
          "cause": "duplicate thread inventory entries found",
          "measured": "2 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": 1162
    },
    "system.disk": {
      "id": "system.disk",
      "category": "disk",
      "status": "ok",
      "summary": "sufficient free disk space (1302.2 GiB)",
      "details": {
        "CODEX_HOME available": "1302.2 GiB",
        "failure threshold": "1.0 GiB",
        "warning threshold": "5.0 GiB",
        "worktree available": "1302.2 GiB"
      },
      "remediation": null,
      "durationMs": 0
    },
    "system.environment": {
      "id": "system.environment",
      "category": "system",
      "status": "ok",
      "summary": "OS language en-US",
      "details": {
        "EDITOR": "not set",
        "GH_PAGER": "set",
        "GIT_PAGER": "set",
        "LANG": "C.UTF-8",
        "LC_ALL": "C.UTF-8",
        "LC_CTYPE": "C.UTF-8",
        "PAGER": "set",
        "VISUAL": "not set",
        "os": "Windows 10.0.26300 (Windows 11 Professional) [64-bit]",
        "os language": "en-US",
        "os type": "Windows",
        "os version": "10.0.26300"
      },
      "remediation": null,
      "durationMs": 0
    },
    "terminal.env": {
      "id": "terminal.env",
      "category": "terminal",
      "status": "warning",
      "summary": "TERM=dumb - colors and cursor control are disabled in this non-interactive run",
      "details": {
        "COLORTERM": "present",
        "NO_COLOR": "1",
        "TERM": "dumb",
        "color output": "disabled (NO_COLOR)",
        "console input code page": "437",
        "console output code page": "65001",
        "effective locale": "C.UTF-8",
        "stderr console mode": "unavailable",
        "stderr is terminal": "false",
        "stdin is terminal": "false",
        "stdout console mode": "unavailable",
        "stdout is terminal": "false",
        "terminal": "dumb",
        "terminal size": "120x30"
      },
      "issues": [
        {
          "severity": "warning",
          "cause": "TERM=dumb - colors and cursor control are disabled in this non-interactive run",
          "measured": "TERM=dumb",
          "expected": null,
          "remedy": null,
          "fields": [
            "TERM"
          ]
        }
      ],
      "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": "git repo root",
        "terminal title project value": "[PROJECT]",
        "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.160.0",
        "check for update on startup": "true",
        "last checked at": "2026-10-02T01:39:33.183685500Z",
        "latest version": "0.160.0",
        "latest version status": "current version is not older",
        "npm update target": "not inspected (PATH helpers are not executed)",
        "update action": "npm install -g @openai/codex",
        "version cache": "C:\\Users\\[USER]\\.codex\\version.json"
      },
      "remediation": null,
      "durationMs": 1172
    }
  }
}

What issue are you seeing?

Codex CLI 0.160.0 fails to initialize the built-in codex_apps MCP connection. Apps are enabled, but their callable tools cannot load. The failure persists after restarting Codex. The desktop app logs also contain the same initialization error.

Full startup error:

MCP client for codex_apps failed to start: MCP startup failed: handshaking with MCP server failed: Send message error Transport [codex_rmcp_client::event_notification_transport::EventNotificationTransport<rmcp::transport::worker::WorkerTransport<rmcp::transport::streamable_http_client::StreamableHttpClientWorker<codex_rmcp_client::http_client_adapter::StreamableHttpClientAdapter>>>] error: Client error: HTTP request failed: error decoding response body, when send initialize request: Send message error Transport [codex_rmcp_client::event_notification_transport::EventNotificationTransport<rmcp::transport::worker::WorkerTransport<rmcp::transport::streamable_http_client::StreamableHttpClientWorker<codex_rmcp_client::http_client_adapter::StreamableHttpClientAdapter>>>] error: Client error: HTTP request failed: error decoding response body, when send initialize request

MCP startup incomplete (failed: codex_apps)

An independent initialization-only HTTP diagnostic also encounters a response-body framing error on the apps endpoint. Details are provided under Additional information.

What steps can reproduce the bug?

  1. Sign in to Codex CLI using ChatGPT authentication.

  2. Leave the apps integration enabled.

  3. Start Codex from Windows PowerShell 5.1:

    codex --cd "C:\path\to\project" --sandbox read-only --ask-for-approval on-request

    The project path is redacted; substitute an existing local folder.

  4. Observe the codex_apps initialization error during startup, before sending a model prompt.

  5. Exit and restart Codex with the same command. The error persists.

Observed failure logs include approximately 06:48–06:58 on 3 October 2026, Australia/Sydney (UTC+10), corresponding to 20:48–20:58 UTC on 2 October.

Affected CLI thread ID found in local logs:
01a0fe65-9aac-7842-9b64-b9560b696f85

This is a log-derived thread ID, not a session ID displayed after a successful feedback submission.

What is the expected behavior?

The codex_apps MCP connection should complete initialization and expose tools for enabled, authorized app integrations without a startup error.

Additional information

Environment and checks:

  • Codex CLI and background app server both report version 0.160.0.

  • The update check reports that the installed CLI is current.

  • Desktop app version: 26.930.2377.0.

  • Configuration loads successfully.

  • ChatGPT authentication is configured.

  • An authenticated Responses WebSocket handshake succeeds.

  • Normal provider HTTP reachability checks pass.

  • A fresh app/list request succeeds and reports enabled, accessible apps.

  • app/installed with forceRefresh fails with:

    "failed to refresh installed connector runtime state:
    failed to refresh tools for MCP server 'codex_apps'"

  • The runtime-refresh failure also occurs in a fresh diagnostic app-server process without starting a model turn or calling app tools.

  • No configuration changes were made during the investigation.

Independent HTTP diagnostic:
An authenticated MCP initialize request using protocol version 2025-06-18 was sent to:

https://chatgpt.com/backend-api/ps/mcp

Response:

  • HTTP 200
  • Content-Type: application/json
  • Transfer-Encoding: chunked

Python's HTTP client fails while reading the response with IncompleteRead. The exception chain includes an invalid hexadecimal chunk-length error, apparently encountering JSON where a chunk-size line is expected.

Diagnostic HTTP request ID:
be89f408-4b2d-4ccd-95f5-619d1a40c11b

This suggests inconsistent HTTP response framing on the observed request path. It does not establish whether the origin service or an intermediary is responsible, or whether other users are affected.

Feedback submission problem:
At approximately 07:25 on 3 October 2026, Australia/Sydney (UTC+10), attempting /feedback displayed:

"Failed to upload feedback: feedback/upload failed in TUI"

Local logs report:

  • Missing session-history file: Os error 2 / NotFound.
  • Feedback attachment upload failed.
  • Feedback event uploaded to Sentry.
  • uploaded_attachments=7
  • attachments_failed=true

Feedback thread ID from those logs:
01a0fe65-9aac-7842-9b64-b9560b696f85

No successful-submission session ID was displayed. The logs suggest a partial upload; they do not confirm a complete feedback submission. The feedback failure has not been shown to share the cause of the MCP failure.

Doctor report context:
The attached doctor report was collected in a noninteractive diagnostic process outside the execution sandbox. Its TERM=dumb warning reflects that process, not the terminal emulator used for the failing interactive session. Identifying paths and unrelated session identifiers were redacted; diagnostic statuses and counts were preserved.

Activity

  1. added
    bug
    on Oct 2, 2026
  2. added
    CLI
    windows-os
    mcp
    connectivity
    on Oct 2, 2026
  3. h3r1ckpl commented on Oct 5, 2026

    @h3r1ckpl

    I am experiencing a similar codex_apps initialization failure on Windows, with “error decoding response body” and “Transport channel closed”. My latest attempt to restore a connector-dependent workflow was still unsuccessful on October 5; I do not have new local logs for that attempt. The issue is not limited to Drive: Outlook Calendar is also affected, and manually reconnecting the connectors has not resolved the problem in my attempts. The cloud fallback has also been unreliable: GPT-5.6 Sol showed repeated model-capacity errors, and I experienced connector-dependent workflow failures with GPT-6.1. A Drive read did succeed in one attempt, so I am not claiming all cloud connectors failed or that these problems share a cause. Repeated retries and environment changes are preventing reliable work. Is there a supported recovery path or a minimal diagnostic that would help?

    Additional impact: I have also observed substantially slower Excel-related work. Tasks I previously expected to complete in minutes have recently taken more than an hour, with some attempts taking around two hours. This is my observed experience, not a controlled like-for-like benchmark; some runs also included validation and repair work. I noticed the deterioration over roughly the past week, after recent updates, but I cannot establish which update or whether updates caused it. Please include spreadsheet/workflow performance alongside the connector failures in the investigation, and advise what minimal timing/version evidence would help separate the issues.

    October 7 update: After updating the Windows ChatGPT app (Powered by Codex & OWL), my reported version was 26.930.51102; About showed "Released 4/10/2026". In an October 6 test I describe as local Work, the screenshot shows GPT-6.1 Sol with Medium reasoning and a completed run of 1m 46s. The displayed result reports Outlook Email, Google Drive, Outlook Calendar and Google Calendar as unavailable, with no API calls executed.

    The visible assistant response attributes this to "Removed deferred tool namespaces". The capture contains no independent technical trace and does not show the app version, machine or environment selector, so the version and local-session description remain reported context. This documents tool unavailability in that run, not a demonstrated API/authentication error or fresh proof of the earlier HTTP/codex_apps decoding error. The cause and workflow recovery remain unverified.

    Update — October 9:

    In the same Work conversation using GPT-6.1 Sol Extra High, Google Drive tools were reported unavailable at approximately 19:43 UTC. At 19:46 UTC, with Norton HTTPS scanning visibly OFF and the other visible protection toggles ON, the conversation showed Google Drive integration activity and reported a successful document read.

    My last reported app version was 26.1002.52244. This strengthens the observed correlation with HTTPS inspection, but does not establish causation: there are no raw transport logs or controlled restart results, and the protection state immediately before the failure was not captured. Scheduled execution and all write operations are not yet verified. Leaving HTTPS inspection disabled is not a satisfactory permanent solution.

  4. darkdhamon commented on Oct 7, 2026

    @darkdhamon

    I reproduced the response-framing mismatch on Windows with a local Codex runtime reporting 0.160.1, and have now verified a temporary local workaround with actual Gmail tools in a running Codex desktop chat.

    Additional finding: an authenticated initialization request to https://chatgpt.com/backend-api/ps/mcp returned HTTP 200, Content-Type: application/json, and Transfer-Encoding: chunked, but the first wire-body bytes were ordinary JSON rather than a hexadecimal chunk-size line. Reading those bytes without HTTP chunk decoding produced a valid JSON-RPC initialize result with protocol version 2025-06-18. This establishes that initialization data was returned on the observed path; a conforming client's body decoder can fail before it exposes that data. It does not identify whether the origin or an intermediary introduced the mismatch.

    Workaround implemented: a local Python stdio MCP server forwards MCP requests to the existing hosted apps endpoint over verified HTTPS. It recognizes only the specific combination of a chunked response header and a body beginning with bare JSON or SSE. For that combination it reads the buffered body directly and parses JSON/SSE; genuinely chunked responses and normal Content-Length responses use the standard decoder. It then exposes the discovered Gmail tools through an ordinary local MCP server binding, preserving the upstream JSON-RPC payloads, schemas, annotations, and results.

    The relevant transport selection is:

    prefix = response.fp.peek(1).lstrip()
    repair = response.chunked and (
        prefix[:1] in (b"{", b"[")
        or prefix.startswith((b"event:", b"data:", b":"))
    )
    reader = response.fp.read1 if repair else response.read1

    This is an excerpt, not a complete adapter. The surrounding implementation validates allowed content types, parses a complete JSON document or matching JSON-RPC SSE event, fails explicitly on truncation, and enforces a 32 MiB response limit and 30-second socket timeout. No failed tool call is automatically retried, to avoid repeating a mailbox mutation.

    The adapter was registered as a separate stdio server; for example, with user-specific paths substituted:

    [mcp_servers.gmail_framing_adapter]
    command = "C:\\path\\to\\python.exe"
    args = ["C:\\path\\to\\adapter.py"]
    enabled = true
    startup_timeout_sec = 45
    tool_timeout_sec = 90

    The existing Gmail integration remained enabled. The server reads the current existing Codex credentials in memory for each request, without copying tokens to the adapter folder, opening a local HTTP listener, or disabling TLS verification. It restricts discovery/calls to Gmail, respects existing Gmail/tool disablement, and the reversible installer backs up configuration and mirrors existing Gmail tool approval overrides. Reloading the MCP bindings was necessary before the running chat could call it; registration alone was not treated as proof of success.

    Verified October 6, 2026:

    • 13 automated tests passed, including defective versus genuine chunk framing, JSON/SSE, Unicode boundaries, truncated responses, no-retry behavior, disablement, and reversible configuration/approval preservation.
    • MCP initialization and discovery exposed 21 Gmail tools.
    • In the actual desktop chat, profile lookup, inbox search, full MIME reads, conversation reads, labeling, starring, and archiving succeeded.
    • A read-back verified the intended mailbox changes and preservation of unread state.

    This restored my Gmail workflow locally. It is a temporary workaround for this observed response path, not an upstream fix or a tested solution for other connectors. Codex still owns credential renewal; server-initiated callbacks are not implemented. No credentials, account identifiers, mailbox contents, or private filesystem paths are included in this comment.

    Backend correlation IDs from the redacted initialization diagnostics:

    • 976d1d6a-1882-4e2a-885c-4854bfeb1d8b (JSON/SSE accepted)
    • 125395fe-c566-45c6-aa7d-d0e6138cafde (JSON accepted)

    User instructions and manual activation steps

    The relevant commands were conversational instructions given to Codex, not shell commands. In order, they were:

    1. “I need you to run the inbox management workflow.”
    2. “Fix the issue.”
    3. “Restarting is not going to fix this issue. I have restarted several times and even reinstalled the application.”
    4. “so... this issue is the response type does not match? but is the data returned?”
    5. “Okay does the existing bug report you found include this finding?”
    6. “Can you write an middleware adapter that will convert the returned data into what the connecter expects as a temporary work around?”
    7. “Load the new tool binding.”
    8. “try again”

    The agent's diagnosis identified valid returned JSON-RPC data beneath the HTTP framing mismatch. The adapter request led to implementing, testing, and registering the separate stdio server. Registration/discovery in an isolated diagnostic process succeeded, but the active chat still lacked a callable binding. The user had to perform the settings operations below; the agent did not complete them itself. After the user activated the server and asked to retry, the active chat exposed the adapter's tools and verified real Gmail calls.

    Correction to the agent's earlier restart guidance: the activation was more involved than “restart the MCP server.” The user reports this exact successful sequence in the Windows desktop app:

    1. Open Settings → Plugins → MCPs tab.
    2. Toggle gmail_framing_adapter off.
    3. Click the refresh-shaped icon to restart/reload MCP servers.
    4. Toggle gmail_framing_adapter on.
    5. Click the refresh-shaped icon again to restart/reload MCP servers.
    6. Return to the chat and retry loading/calling the tool binding.

    The icon does not visibly say “Restart.” The user reports that the restart/reload control does not appear until a server toggle is changed; it was not a readily discoverable, always-visible Restart button. The supplied screenshot shows the Servers list, the adapter's toggle, and the refresh-shaped control. This sequence documents what the user actually had to do in this installation, rather than a universal UI guarantee.

    The earlier full application restarts and reinstall did not fix the hosted response-framing defect. The later off → refresh → on → refresh sequence activated the newly registered local workaround; these are distinct steps with different purposes. The user, rather than the agent, supplied the final UI activation and clarified the misleading restart instructions.

  5. yld20250111-spec commented on Oct 16, 2026

    @yld20250111-spec

    I'm experiencing a related but distinct codex_apps MCP transport failure on Codex for Windows.

    Feedback ID: 01a13d6d-7d68-71d1-9c0d-eed2eb75da96

    • Windows 11, build 26200
    • Codex CLI: 0.162.0-alpha.17.2
    • Affected tools: codex_apps/github.fetch and codex_apps/github.fetch_pr
    • Endpoint: https://chatgpt.com/backend-api/ps/mcp
    • Error: Transport send error / http/request failed: error sending request
    • Reproducible after a full Codex Desktop restart
    • Occurring repeatedly since October 14, 2026

    Unlike the response decoding failure in this issue, my failure occurs while sending the HTTP request, before a GitHub API response is received.

    The local proxy TCP connection is available and HTTPS CONNECT succeeds, but the actual cause remains unknown.

    I have submitted an in-app diagnostic feedback report under the ID above. Could the maintainers check whether this is related to the same hosted MCP transport issue?

    No repository modifications or GitHub write operations occurred during the failed calls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIbugconnectivitymcpwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions