Codex Desktop: DNS fails with automatic approval review despite workspace-write network access enabled

Abierto
#64,216 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
macos, rust

Línea de trabajo

Start by tracing how Codex Desktop applies automatic approval review and workspace-write network access to default agent commands; the issue names no source files or tests, so locate the sandbox and resolver configuration entry points first. Compare the effective configuration in both approval modes and reproduce the reported DNS failure against the interactive terminal control. Done means the cause is identified and network behavior matches the configured permission, or any override is clearly surfaced with its source.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

app bug connectivity sandbox
Environment
  • Codex Desktop on macOS 27.2.1 (26B131), arm64. Settings showed Workspace tools version 26.1123.11515.
  • Sandbox mode: workspace-write. The Allow network access toggle was on, and user configuration contained:
[sandbox_workspace_write]
network_access = true
What happened

With automatic approval review selected, repeated read-only GitHub requests from the agent's default command tool failed before reaching GitHub. The interactive terminal in the same worktree could run the GitHub command successfully.

curl: (6) Could not resolve host: api.github.com
gh debug: no such host
error connecting to api.github.com

After the user changed the approval-review setting from automatic review to using config.toml, the agent's next gh pr view completed successfully from the same worktree using the same default command tool. The user reported that this was the only setting they changed. The failed requests were ordinary sandboxed invocations and had not requested escalation.

Steps to reproduce
  1. In Codex Desktop, select workspace-write with network_access = true and select automatic approval review.
  2. Ask the agent to run curl -sS --max-time 8 https://api.github.com/ and gh pr view PR_NUMBER --repo OWNER/REPO with a repository and PR the account can read.
  3. Run the GitHub command in the interactive terminal for the same workspace as a control.
  4. Switch the approval-review setting to use config.toml and ask the agent to repeat the same repository read.
Expected behavior

Read-only network commands use the configured workspace-write network permission in either approval-review mode. If selecting automatic review changes the effective sandbox network access, the app identifies the override and its source.

Diagnostic question

Does selecting automatic approval review change the effective sandbox or resolver configuration for default agent commands? The mode change correlated with restored access in this session. The resolver failure was confirmed, and the mechanism behind it is unverified.

Lenguaje dominante
Rust
Estrellas
136k
Forks
21.6k
Merge medio
1 min
PR fusionados (30 d)
997

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de openai/codex

Todos los issues de openai/codex

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.