Repository navigation
Description
Resumen
Informe de dos fallos observados en el mismo equipo, sin asumir una causa común:
- Windows nativo: MXC falla antes de iniciar comandos con
CreateProcessSecurityEnvironment failed (HRESULT = 0x80070020). - Agente configurado en WSL2: chats nuevos de Work muestran “Hmm...something seems to have gone wrong.” al enviar la primera instrucción. Los registros muestran rechazo repetido del catálogo interno
openai-primary-runtime.
El CLI independiente de Linux sí inicia sesión con ChatGPT y ejecuta comandos correctamente.
Privacidad: usuarios, nombre de distribución y directorios de ejemplo son ficticios. Se omiten correo, credenciales, SID, identificadores de sesión y rutas personales. No se adjuntan logs completos, bases de datos ni PML originales.
Entorno y versiones observadas
| Componente | Versión / estado |
|---|---|
| Windows | Windows 11 Pro 26H2, build 26300.9711, x64 |
| Linux | Debian GNU/Linux 13 (trixie), DEBIAN_VERSION_FULL=13.5 |
| WSL | Distribución WSL2, predeterminada y Running |
| Nombre de distribución en este informe | Debian-Lab (sustituido) |
| Desktop durante la prueba directa de MXC | OpenAI.Codex 26.1021.2667.0 |
| Desktop en registros posteriores de WSL | OpenAI.Codex 26.1021.3705.0 |
| CLI Windows probado | 0.164.0-alpha.11.1 |
| CLI Linux independiente | 0.164.0 |
| Python Linux | 3.13.5 |
| Cuenta / proveedor en CLI Linux | ChatGPT Plus / openai |
| Permisos del CLI Linux | Workspace (granular) |
Las versiones corresponden a distintos momentos de la investigación. No se atribuyen todas las pruebas a una única versión del paquete.
A. Reproducción del fallo MXC
En un proyecto local, ejecutar con el CLI Windows de la aplicación:
codex.exe -c windows.sandbox=mxc sandbox --include-managed-config --permission-profile :workspace -- cmd.exe /d /c echo MXC_OK
Esperado: MXC_OK, exit code 0.
Resultado:
MXC launcher: failed to create the process security environment:
CreateProcessSecurityEnvironment failed (HRESULT = 0x80070020)
Exit code: 1.
Se reprodujo desde PowerShell y también desde CMD abierto directamente. PowerShell no es necesario para reproducir el fallo. Solicitar un proceso nuevo y probar PowerShell sin perfil tampoco resolvió el problema. Los comandos solicitados no llegan a ejecutarse.
Permisos, procesos y servicios revisados
Consultas de solo lectura con icacls:
- Carpeta de usuario de Codex: usuario con control total; CodexSandboxUsers con lectura/ejecución.
- .sandbox: CodexSandboxUsers con modificación; permisos heredados de control total para usuario, SYSTEM y Administradores.
- Proyecto: CodexSandboxUsers con modificación y usuario con control total.
- Sin denegaciones explícitas en las salidas consultadas.
Esto no constituye auditoría de permisos efectivos completa ni validación de MXC.
CodexSandboxService.OpenAI.Codex estaba Running como LocalSystem, desde el paquete instalado. Las dos instancias activas de CLI Windows revisadas usaban el mismo ejecutable y versión. El CLI bajo AppData y el incluido en resources devolvieron 0.164.0-alpha.11.1.
net use no mostró conexiones registradas; esto no excluye toda actividad de red.
El registro del sandbox solo aportó:
MXC availability: true
Windows sandbox selection: mxc
No identificó el recurso que falla. Disponibilidad no equivale a creación exitosa.
Evidencia de Process Monitor
Se conservó captura PML y exportación CSV de una reproducción.
Relación observada, sin exponer PID reales:
- CLI padre crea otro codex.exe con
--__codex-windows-mxc. - El proceso hijo consulta entradas de raíces de varias unidades.
- Se observan CreateFile → SHARING VIOLATION en:
- C:\DumpStack.log.tmp
- C:\hiberfil.sys
- C:\swapfile.sys
- Desired Access: Read Attributes, Synchronize.
- ShareMode: Read, Write, Delete.
- También hay ACCESS DENIED sobre algunos directorios protegidos.
- El hijo termina con exit code 1 y después termina el padre con exit code 1.
Una pila de una apertura fallida muestra codex.exe → CreateFileW → NtCreateFile y componentes del sistema de archivos de Windows. Los marcos internos de codex.exe carecen de símbolos.
Límite importante: la captura identifica accesos fallidos del lanzador, pero no demuestra que esos accesos provoquen el fallo final ni identifica otro proceso culpable. No se atribuye causalidad a FLTMGR.SYS, antivirus, audio ni archivos de idioma.
Revisión del código público
expand_volume_roots enumera entradas inmediatas de raíces y usa compare_existing_filesystem_objects. El código consultado omite entradas cuya comparación no devuelve Same. Por ello los conflictos observados pueden ser probes tolerados.
No se estableció correspondencia exacta entre main y el binario instalado. No se presenta una causa raíz confirmada.
B. Fallo de chats nuevos con agente WSL
Configuración:
Agent environment: Windows Subsystem for Linux
Integrated terminal shell: WSL
Se cerró/reabrió completamente la aplicación; también se reinició Windows durante la investigación.
En un chat nuevo, enviar:
Ejecuta pwd, uname -s y python3.13 --version. No modifiques archivos.
Resultado:
Hmm...something seems to have gone wrong.
Control independiente dentro de Linux
El CLI de Linux sí ejecutó:
- pwd: directorio esperado.
- uname -s: Linux.
- python3.13 --version: Python 3.13.5.
- Listado de archivos del proyecto: correcto.
Todos finalizaron con exit code 0. /status mostró proveedor openai y cuenta ChatGPT Plus.
Shell y PATH
Una shell no interactiva inicialmente no encontraba codex porque ~/.local/bin no estaba en PATH. El binario funcionaba por ruta absoluta.
Se creó un enlace /usr/local/bin/codex hacia /home/usuario_linux/.local/bin/codex (usuario ficticio).
Después funcionaron:
/bin/sh -c 'command -v codex; codex --version'
/bin/bash -ic 'command -v codex; codex --version'
/bin/bash -lc 'command -v codex; codex --version'El error de chats de Desktop persistió. No se ha demostrado que Desktop use este CLI independiente.
Una prueba adicional bash -il mostró texto de Microsoft y volvió a PowerShell. No se investigó su causa y no se considera prueba de corrupción de Bash.
Registro relevante de Desktop
Secuencia repetida aproximadamente cada 30 segundos:
[AppServerConnection] plugin_marketplace_add_failed
marketplace `openai-primary-runtime` is reserved and cannot be added from this source
[BundledPluginsMarketplace] bundled_plugins_marketplace_add_failed
[primary-runtime-host] primary_runtime_restore_failed
Failed to sync primary runtime bundled plugin marketplace
Origen rechazado (usuario sustituido):
/mnt/c/Users/usuario_prueba/.cache/codex-runtimes/codex-primary-runtime/plugins/openai-primary-runtime
Observado, entre otros intervalos, el 2026-10-24 entre 16:31:51Z y 16:34:21Z.
También hay ResizeObserver y EPIPE durante el cierre. No se ha establecido causalidad. Los fragmentos disponibles no correlacionan de forma completa la primera instrucción con el arranque del ejecutor y el mensaje genérico.
Síntoma adicional, separado
Una conversación existente devolvió:
failed to prepare windows sandbox wrapper:
managed networking requires the elevated Windows sandbox backend
Esa solicitud seguía tomando una ruta Windows. Esto no establece qué entorno usaban los chats nuevos ni es equivalente a 0x80070020.
Reportes relacionados (no se presume causa común)
- [Windows] Codex App sandbox fails to execute commands (HRESULT 0x80070020) #55230 — MXC 0x80070020.
- Windows + WSL: dot stays offline; plugin/installed times out during local executor startup #51905 — WSL, registro del catálogo interno y arranque del ejecutor.
- Windows: new Work chats fail in WSL mode but work in Windows Native #56547 — chats nuevos Work fallan en WSL con el mismo mensaje genérico. El autor indica que corregir el catálogo no bastó para resolverlo.
Impacto
Las herramientas locales de Desktop no pueden inspeccionar archivos ni ejecutar tareas del proyecto. El CLI Linux es una alternativa funcional independiente, pero no se consiguió conectar el ejecutor de la conversación de Desktop a ese entorno.
Solicitud a mantenedores
- Identificar el objeto que causa el HRESULT de CreateProcessSecurityEnvironment.
- Confirmar si los conflictos de archivos protegidos son probes tolerados o se propagan.
- Investigar la validación del catálogo interno en rutas traducidas Windows–WSL.
- Indicar cómo consultar distribución, usuario, ejecutable, CODEX_HOME y entorno realmente usados por Desktop.
- Proporcionar diagnóstico que relacione el error genérico del chat con el fallo del ejecutor.
- Recomendar recuperación soportada conservando conversaciones, autenticación e aislamiento.
- Indicar si es preferible separar ambos fallos en incidencias enlazadas.
El PML original contiene datos locales y no se publica. Si fuera necesario, solicitamos instrucciones para una captura mínima y un canal apropiado.
No se borraron archivos protegidos, ampliaron permisos globales ni desactivaron protecciones para intentar resolver estos fallos.
Activity
github-actions commentedon Oct 24, 2026
English translation:
Summary
Report of two failures observed on the same machine, without assuming a common cause:
CreateProcessSecurityEnvironment failed (HRESULT = 0x80070020).openai-primary-runtimemarketplace.The standalone Linux CLI successfully signs in with ChatGPT and runs commands.
Privacy: usernames, the distribution name, and example directories are fictitious. Email, credentials, SIDs, session identifiers, and personal paths are omitted. No complete logs, databases, or original PML files are attached.
Environment and observed versions
The versions correspond to different points in the investigation. Not all tests are attributed to a single package version.
A. Reproducing the MXC failure
In a local project, run using the application's Windows CLI:
Expected:
MXC_OK, exit code 0.Result:
Exit code: 1.
Reproduced from PowerShell and also from CMD opened directly. PowerShell is not required to reproduce the failure. Requesting a new process and trying PowerShell without a profile did not resolve the problem either. The requested commands never run.
Permissions, processes, and services checked
Read-only queries using icacls:
This does not constitute a complete effective-permissions audit or MXC validation.
CodexSandboxService.OpenAI.Codexwas Running as LocalSystem, from the installed package. The two active Windows CLI instances checked used the same executable and version. The CLI under AppData and the one included in resources returned 0.164.0-alpha.11.1.net useshowed no registered connections; this does not rule out all network activity.The sandbox log provided only:
It did not identify the resource that fails. Availability does not imply successful creation.
Process Monitor evidence
A PML capture and CSV export of a reproduction were retained.
Observed relationship, without exposing actual PIDs:
--__codex-windows-mxc.A stack trace for one failed open shows codex.exe → CreateFileW → NtCreateFile and Windows filesystem components. The internal codex.exe frames lack symbols.
Important limitation: the capture identifies failed accesses by the launcher, but does not demonstrate that these accesses cause the final failure or identify another process responsible. No causality is attributed to FLTMGR.SYS, antivirus, audio, or language files.
Review of the public code
The following was consulted:
https://github.com/openai/codex/blob/main/codex-rs/mxc-sandbox/src/policy.rs
expand_volume_roots enumerates immediate entries at roots and uses compare_existing_filesystem_objects. The code reviewed skips entries whose comparison does not return Same. Therefore, the observed conflicts may be tolerated probes.
An exact correspondence between main and the installed binary was not established. No confirmed root cause is presented.
B. New chat failures with a WSL agent
Configuration:
The application was fully closed and reopened; Windows was also restarted during the investigation.
In a new chat, send:
Result:
Independent check within Linux
The Linux CLI successfully ran:
All completed with exit code 0. /status showed provider openai and account ChatGPT Plus.
Shell and PATH
A non-interactive shell initially could not find codex because ~/.local/bin was not in PATH. The binary worked using its absolute path.
A link was created at /usr/local/bin/codex pointing to /home/usuario_linux/.local/bin/codex (fictitious username).
Afterward, the following worked:
The Desktop chat error persisted. It has not been demonstrated that Desktop uses this standalone CLI.
An additional bash -il test displayed Microsoft text and returned to PowerShell. Its cause was not investigated, and it is not considered evidence of Bash corruption.
Relevant Desktop log
Sequence repeated approximately every 30 seconds:
Rejected source (username substituted):
Observed, among other intervals, on 2026-10-24 between 16:31:51Z and 16:34:21Z.
There are also ResizeObserver and EPIPE messages during shutdown. Causality has not been established. The available excerpts do not fully correlate the first instruction with executor startup and the generic message.
Additional, separate symptom
An existing conversation returned:
That request was still taking a Windows path. This does not establish which environment the new chats were using and is not equivalent to 0x80070020.
Related reports (no common cause assumed)
Impact
Desktop's local tools cannot inspect files or perform project tasks. The Linux CLI is a working standalone alternative, but we were unable to connect the Desktop conversation's executor to that environment.
Request to maintainers
The original PML contains local data and is not being published. If needed, we request instructions for a minimal capture and an appropriate channel.
No protected files were deleted, global permissions broadened, or protections disabled in an attempt to resolve these failures.
github-actions commentedon Oct 24, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
edwardswhiskeyblues-alt commentedon Oct 25, 2026
Follow-up: transient MXC host-session failure with 0x800705AA, recovered only by a full Windows restart
This update concerns only the native Windows MXC portion of this issue. It does not assume any relationship with the separate WSL/marketplace symptom.
Environment
Observed transition
The same restricted local execution route successfully launched PowerShell and a Python child several times, then began failing before the requested process started. Successful controls were observed at approximately 02:59, 03:16, and 03:31 UTC on 2026-10-25. The first confirmed failure was at approximately 03:48 UTC.
Exact failure:
The failure was not specific to PowerShell. The requested child process never launched.
Isolation and unsuccessful recovery
The following all reproduced the same 0x800705AA before child-process launch:
Repeated minimal source-free command controls in the existing restricted Desktop conversation.
The same source-free control in a newly created conversation using the same restricted permission profile.
An independent compatibility probe through the app-bundled CLI:
codex.exe -c windows.sandbox=mxc sandbox --include-managed-config --permission-profile :workspace -- cmd.exe /d /c echo MXC_OK
The probe exited 1 without printing MXC_OK.
These actions did not recover MXC:
At the time of diagnosis, approximately 4.6 GB of physical memory and 15.8 GB of virtual memory were available. No Windows Resource-Exhaustion-Detector Event ID 2004 was found in the checked interval. Ordinary process creation outside the failing MXC route remained functional. This does not identify the resource represented by 0x800705AA; it only argues against a simple machine-wide RAM or page-file exhaustion explanation.
No permission profile was widened, no sandbox protection was disabled, and no project content was written during these controls.
Recovery boundary
The Owner then performed a full Windows restart. The observed Windows boot time was:
Immediately after that restart:
The effective Desktop context after recovery still reported the same restricted permission profile and approval_policy=never. Therefore the successful result was not obtained by switching to a broader permission mode.
Interpretation and impact
This sequence supports a transient MXC host/session state failure rather than a defect confined to one conversation or to PowerShell:
The exact underlying resource or stale security-environment object remains unknown. Work requiring local file verification was blocked until the full OS restart. The affected workflow stopped before writing, so no project-data corruption was observed.
Request
Could MXC provide a more actionable diagnostic for CreateProcessSecurityEnvironment failures with 0x800705AA, including the specific exhausted/stale resource or security-environment object? It would also help to have a supported recovery operation that fully reinitializes MXC state without requiring a complete Windows restart, since restarting both Desktop and the sandbox service was insufficient.
InginverDracaris commentedon Nov 9, 2026
Actualización de diagnóstico — 9 de noviembre de 2026
El usuario informa una actualización reciente de la aplicación y nueva reproducción de “Hmm...something seems to have gone wrong.” al enviar una instrucción en un chat nuevo. No se obtuvo la versión exacta posterior a esa actualización ni una traza de ese chat nuevo; no se atribuye automáticamente la nueva reproducción a los errores de catálogo de octubre.
Reproducción actual en la conversación existente
Una nueva prueba de solo lectura solicitó Get-Location con PowerShell, sin inicialización de login. Falló antes de iniciar el proceso:
No se ejecutó el comando ni se modificaron archivos.
La configuración suministrada a esta conversación declara filesystem read-only, aprobación granular y solicitudes de ampliación de sandbox rechazadas automáticamente. Esto describe la sesión, no demuestra el origen de la política ni que el dispositivo pertenezca a una organización administrada.
Relación con el código público
En codex-rs/sandboxing/src/manager.rs de main se encuentra el mensaje exacto en un guard que rechaza:
Es una correspondencia con el código actual, no una identificación del commit exacto del binario instalado. El error actual corresponde a preparación/selección del backend heredado; no debe confundirse con el fallo anterior CreateProcessSecurityEnvironment 0x80070020.
Segundo hallazgo actual: capacidades internas no localizadas
La consulta de skills del ejecutor devuelve os error 2 para estas rutas, con usuario sustituido:
La consulta sí devuelve otras skills. No se comprobó si los paquetes están ausentes, fueron trasladados o las referencias quedaron obsoletas. No se estableció relación causal entre este resultado, el guard de red administrada y el error del chat nuevo.
Controles de Linux e impacto
El CLI Linux independiente había ejecutado comandos y leído el proyecto correctamente. En el intento reciente del laboratorio, pudo escribir dentro del proyecto, pero no en ~/laboratorios; el acceso a Ollama por 127.0.0.1:11434 falló con “socket: operation not permitted”. Esas restricciones no prueban un fallo de Ollama.
La instalación autorizada de Qwen3.5 y REA continúa pendiente; no se simularon instalaciones ni informes de modelo.
Solicitud concreta
No se reclama una interrupción total continua entre octubre y noviembre: son reproducciones documentadas en distintas fechas. No se publican credenciales, rutas personales, sesiones ni registros completos.
AndreIguodala9 commentedon Nov 19, 2026
Additional, separate observation from the Windows desktop MSIX package
OpenAI.Codex_26.1111.2228.0on 2026-11-19: desktop logs repeatedly containprimary_runtime_install_failed/Failed to sync primary runtime bundled plugin marketplace, withmarketplace 'openai-primary-runtime' is reserved and cannot be added from this source. The configured[plugin_marketplaces.openai-primary-runtime]entry still points into the old per-user.cache/codex-runtimes/...location, while the newer 26.1118 runtime is supplied as the MSIX framework packageOpenAI.CodexPrimaryRuntime.v26-1118-904-0.This did not prevent the app from starting in this case. I am reporting the runtime/catalog mismatch here because it resembles the reserved-marketplace errors already documented in this issue; I have not established that it causes the chat failures reported above. No personal paths or identifiers are included.