Skip to content

Windows desktop: codex_apps MCP discovery fails with "error decoding response body", removing Sites tools #53169

Open

Description

@ariochspa

Summary

Sites works for my account on the web, but its tools become unavailable in Codex desktop on Windows. Selecting the installed plugin and starting new chats does not resolve this. Local logs show that the built-in codex_apps MCP client fails during discovery; the tool catalog then omits that server because it has no ready client. This blocks publishing through Sites.

Environment

  • Codex desktop: 26.1007.21434, build 13901, production channel.
  • Desktop update check: up_to_date.
  • Local engine: codex-cli 0.162.0-alpha.17.2.
  • Dependency runtime: 26.1009.11318.
  • Sites plugin: 1.0.1, installed and enabled.
  • Windows 11, native Windows agent (not WSL).
  • Observed on October 10–11, 2026.

Steps to reproduce

  1. Open Codex desktop on Windows and start a local chat, including a chat without a repository.
  2. Select the Sites plugin.
  3. Ask to use the Sites publishing/management tools.
  4. The tools are unavailable. Inspect the desktop logs: codex_apps startup repeatedly fails during discovery.

Expected behavior

The built-in codex_apps MCP connection initializes successfully and exposes the installed Sites tools, as it does on the web.

Actual behavior and log excerpts

MCP client for `codex_apps` failed to start:
MCP startup failed: handshaking with MCP server failed:
Client error: HTTP request failed: error decoding response body,
when send discover request

Apps MCP startup reconnect failed; continuing with cached tools

omitting MCP server without an exact ready client server_name=codex_apps

The failure persists through retries. Other local servers (codex_app, cua_repl, node_repl, code-review) reach ready.

Checks already performed

  • Restarting and selecting the plugin again did not resolve the problem.
  • Reproduces in new chats and in a local chat without a project; not limited to a particular Site.
  • Sites manifests are readable, valid JSON and include their connector reference; the plugin is enabled in config.toml.
  • No WinHTTP proxy or proxy environment variables were found in the diagnostic environment.
  • codex doctor reports a consistent installation, configured authentication, healthy databases, reachable HTTP endpoints and a successful WebSocket handshake (101).
  • A separate app-server diagnostic process, without model inference, reproduces the MCP response-decoding failure, while app/list returns successfully.
  • A temporary process-level test enabling codex_apps_mcp_2026_07_28 and mcp_2026_07_28 did not fix the error. These flags were not persisted.
  • No configuration, authentication, plugin or chat data was changed during diagnosis.

Investigation requested

Please investigate the response to codex_apps discovery and its handling by the Windows MCP client in this engine version, and provide a corrected release or a verified recovery procedure. We do not have the failing response body, HTTP status or headers, so the root cause is not established and this report does not claim a particular encoding or server-side error.

The OpenAI Help Center assistant directed me to file this issue. A feedback-generated remote session ID is not currently available; local chat IDs and private Site identifiers have intentionally been omitted.

Activity

  1. added
    bug
    app
    windows-os
    mcp
    connectivity
    on Oct 11, 2026
  2. github-actions commented on Oct 11, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. thefrugalfind commented on Oct 18, 2026

    @thefrugalfind

    I can reproduce this on Windows. Local Codex desktop logs confirm:

    MCP client for codex_apps failed to start:
    MCP startup failed: handshaking with MCP server failed
    Client error: HTTP request failed: error decoding response body,
    when send discover request

    The log records server=codex_apps status=failed.
    Latest confirmed occurrence: 2026-10-18T20:00:58.303Z.
    The current app startup log reports buildNumber=20770.

    Sites appears in the sidebar, and I accepted its terms.
    Restarting Codex and starting a new chat through Sites did not resolve it.

    Calls to sites.get_site and
    sites.create_source_repository_write_credential return
    “not available to the model.”

    This blocks publishing a prepared release to an existing
    owner-only Sites project.

    Feedback ID: 01a15091-fa0e-7ba1-b3a2-f5be3543dce0

    The logs confirm the discovery failure; its underlying cause
    has not been established.

  4. thefrugalfind commented on Oct 19, 2026

    @thefrugalfind

    Following up: Sites tools remain unavailable, blocking publication to my existing owner-only project. Local development and verification work. Is there a supported workaround or a fix available?

  5. Maitre-Shiny commented on Oct 28, 2026

    @Maitre-Shiny

    Additional reproduction on 2026-10-28 (Codex desktop on Windows): Sites is installed and enabled (plugin version 1.1.2), and it worked in this same chat about two days earlier. Calling sites.list_sites or sites.get_site now immediately returns "MCP tool codex_apps/sites.list_sites is not available to the model" (respectively sites.get_site). Selecting @sites, restarting the desktop app, and testing in a new chat do not restore access. A plugin-management tool also returns "not available to the model", suggesting this is not limited to Sites. No Site or user data was changed. I have not verified the underlying discovery/response-decoding cause in this reproduction.

  6. tonyrr01 commented on Oct 28, 2026

    @tonyrr01

    Seguimiento: Sites no puede inicializar sus herramientas con inspección HTTPS de Norton activa

    Entorno comprobado el 28 de octubre de 2026:

    • Codex desktop: versión interna 26.1023.51421, build 22530, canal prod.
    • Paquete de Windows: OpenAI.Codex 26.1023.6621.0.
    • Cliente oficial integrado: codex-cli 0.165.0-alpha.1.2.
    • Sites 1.1.2, instalado y habilitado.
    • Norton 360 for Gamers, aplicación 26.10.11201.0.
    • El actualizador de Codex devuelve up_to_date. Norton LiveUpdate terminó sin encontrar actualizaciones.

    Problema reproducido:

    1. Con Norton y su inspección HTTPS activos, un reinicio completo de Codex volvió a dejar indisponibles las herramientas de Sites.
    2. La lectura sites.get_site devuelve: MCP tool codex_apps/sites.get_site is not available to the model.
    3. Los registros técnicos posteriores al reinicio muestran fallo del handshake de codex_apps, error decoding response body durante discover, y continuing with cached tools.

    Pruebas acotadas y restauración:

    • Una pausa anterior, expresamente autorizada, de únicamente HTTPS scanning durante aproximadamente 29 segundos permitió recuperar Sites. El interruptor se reactivó y una conexión TLS nueva volvió a recibir el certificado de Norton. El antivirus y firewall permanecieron activos.
    • Tras reactivar la protección, la conexión ya inicializada siguió funcionando, pero el siguiente reinicio completo reprodujo el fallo.
    • Se intentó después una excepción únicamente para https://chatgpt.com/backend-api/ps/mcp. Norton la guardó automáticamente como https://chatgpt.com/*.
    • La ampliación de alcance no se aceptó. La regla se retiró unos 51 segundos después y se comprobó visualmente No exclusions added. No se conserva ninguna excepción de esta prueba.
    • Las conexiones TLS de control mantuvieron activa la validación de certificados. Con la inspección activa, el emisor observado fue Norton Web/Mail Shield Root; durante la pausa anterior fue WE1, Google Trust Services.

    Prueba con un proceso oficial nuevo, sin crear chats ni iniciar modelos:

    • Se inició codex app-server --listen stdio:// con el cliente integrado 0.165.0-alpha.1.2.
    • initialize respondió correctamente.
    • app/installed con forceRefresh=true devolvió -32603: failed to refresh installed connector runtime state: failed to refresh tools for MCP server 'codex_apps'.
    • El proceso emitió nueve apariciones de error decoding response body y una caída a herramientas en caché.
    • Esta prueba comenzó a las 21:01:06 UTC y terminó a las 21:01:09 UTC. El proceso de diagnóstico quedó cerrado.
    • La sesión existente puede volver a leer Sites, mientras una conexión nueva no consigue inicializar el servicio. Esto no se presenta como una solución permanente.

    Solicitud técnica:
    Investigar la compatibilidad del transporte HTTP/MCP de codex_apps con la inspección HTTPS de Norton y proporcionar una corrección o recuperación soportada que conserve la validación TLS y la protección HTTPS. La excepción por ruta no se pudo conservar con el alcance solicitado. No se ha establecido qué componente introduce el defecto interno de transporte.

    Privacidad y alcance:
    Este reporte no incluye credenciales, cookies, tokens, datos de cuentas, identificadores de usuarios o Sites, rutas del proyecto, código de la aplicación ni registros completos. No se cambiaron permisos de cuenta, no se añadió un proxy y no se conserva ninguna protección desactivada. No se han subido diagnósticos completos.

    Referencias públicas:
    #53169
    #48504
    https://learn.chatgpt.com/docs/app-server
    https://support.norton.com/sp/en/us/home/current/solutions/v20250131135259243

  7. scottobobscotto commented on Oct 29, 2026

    @scottobobscotto

    Controlled reproduction on Windows, 29 October 2026, isolating HTTPS inspection during codex_apps startup.

    Environment:

    • Codex desktop 26.1023.51421, build 22530; bundled CLI 0.165.0-alpha.1.2.
    • Avast Premium Security 26.10.11201.3859; AvastUI 26.10.11201.0.
    • Sites 1.1.2, enabled. Windows native.

    Using the same fresh official codex app-server --listen stdio:// diagnostic, without a chat or model turn:

    HTTPS scanning Validated TLS issuer for chatgpt.com Fresh app/installed(forceRefresh=true)
    Enabled Avast Web/Mail Shield Root Fails -32603; seven response-decoding errors
    Briefly disabled manually WE1 / Google Trust Services Succeeds; Sites enabled=true, callable=true; zero decoding errors
    Re-enabled Avast Web/Mail Shield Root Fails again; seven decoding errors and cached-tools fallback

    A real native sites.list_sites call succeeded during the pause and continues to work through the already-established connection after scanning is restored. Plugin Management reads also work in that running session. Fresh connector startup remains broken, so a retained working connection is not a permanent fix.

    Disabling only hardware network acceleration beforehand did not resolve the issue. HTTPS scanning is restored. Normal TLS validation was retained throughout; no broad antivirus exception was added.

    Please investigate compatibility between codex_apps discovery response handling and Avast HTTPS inspection, and provide a fix that preserves protection. This evidence does not identify which internal component is faulty.

  8. burioka2025 commented on Nov 15, 2026

    @burioka2025

    Additional observation on 15 November 2026 (JST), using Codex desktop on Windows with Norton 360.

    ChatGPT Space page reads and a Google Calendar color-palette read both failed during the shared codex_apps startup/discovery step. The returned error included:

    Could not start MCP server `codex_apps`
    MCP startup failed: handshaking with MCP server failed
    HTTP request failed: error decoding response body
    when send discover request
    

    Norton's HTTPS scanning setting was subsequently observed enabled. After protection was changed, the same Space page could be read successfully several times. The confirmed successful configuration was Safe Web enabled with HTTPS scanning disabled. Safe Web as a whole had also been disabled during an earlier successful test.

    The user explicitly clarified that HTTPS scanning remained OFF for the successful reads. There is no verified successful read after HTTPS scanning was re-enabled, and no fresh-process restart comparison was performed in this test. The exact Codex and Norton build versions were not recorded.

    These observations support investigating compatibility between Norton HTTPS inspection and codex_apps discovery, while leaving the underlying transport defect and fresh-connection behavior unresolved. Please provide a supported fix that allows app connectors to work with HTTPS scanning enabled. This affects Space access as well as the shared connector initialization path.

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

    appbugconnectivitymcpwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions