#14499·paperclip

Codex ACPX network flag lost in released codex-acp 1.13.1 (patch targets 1.6.2)

Author: agilerdevCreated Sep 29, 2026Updated Sep 29, 2026

Summary

The codex_local ACPX lane can run with runner network enabled while Codex still receives a workspace sandbox with network disabled. This prevents the agent from resolving or reaching its configured private API endpoint. The issue appears to be a packaging/version mismatch in the released runtime.

Verified on installed runtime

  • Paperclip adapter version: @paperclipai/[email protected]
  • Installed @agentclientprotocol/codex-acp: 1.13.1
  • Runner flags: PAPERCLIP_RUNNER_NETWORK_ACCESS=enabled, PAPERCLIP_CODEX_ACP_NETWORK_ACCESS=true
  • Agent environment: CODEX_SANDBOX=seatbelt, CODEX_SANDBOX_NETWORK_DISABLED=1
  • DNS resolution fails inside the agent; a direct TCP connection to the same endpoint also fails before TLS. The endpoint is reachable from the host outside the sandbox. No endpoint, TLS, or auth change was needed for the host check.

The installed codex-acp/dist/index.js has workspace-write mode defaults with networkAccess: false and sends agentMode.sandboxPolicy unchanged to the turn. It has no paperclipSandboxPolicy or PAPERCLIP_CODEX_ACP_NETWORK_ACCESS reference.

The source repository already contains a Codex ACP patch for version 1.6.2 that injects paperclipSandboxPolicy() at the turn call. The root patch mapping targets exactly @agentclientprotocol/[email protected], while the adapter dependency permits newer versions (^1.6.2). The released installation has 1.13.1, where that patch is absent.

Requested fix

Please align the released ACP package version with the patch mapping, or port the existing turn-level sandbox-policy patch to the installed version and package it. A turn-level fix is preferable to writing a shared Codex home because mode presets can override config.toml on every turn. Keep execution-target network denial authoritative and preserve the configured endpoint, TLS, and authentication.

A focused regression should cover network enabled/disabled at the effective Codex turn and prove DNS, HTTPS health, authenticated read, and an authenticated write from a sandboxed run. No private endpoint or credentials are included here.