The `/diff` command under the Windows sandbox

Open 💬 1 comment Opened Jun 17, 2026 by ofek

What version of Codex CLI is running?

0.140.0

What subscription do you have?

Plus

Which model were you using?

gpt-5.5

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

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

Windows Terminal Preview v1.25.1322.0, Nushell v0.113.1

Codex doctor report

{
  "schemaVersion": 1,
  "generatedAt": "1781664974s since unix epoch",
  "overallStatus": "warning",
  "codexVersion": "0.140.0",
  "checks": {
    "app_server.status": {
      "id": "app_server.status",
      "category": "app-server",
      "status": "ok",
      "summary": "background server is not running",
      "details": {
        "control socket": "C:\\Users\\ofek\\.codex\\app-server-control\\app-server-control.sock",
        "daemon state dir": "C:\\Users\\ofek\\.codex\\app-server-daemon",
        "mode": "ephemeral",
        "pid file": "C:\\Users\\ofek\\.codex\\app-server-daemon\\app-server.pid (missing)",
        "settings": "C:\\Users\\ofek\\.codex\\app-server-daemon\\settings.json (missing)",
        "status": "not running",
        "update-loop pid file": "C:\\Users\\ofek\\.codex\\app-server-daemon\\app-server-updater.pid (missing)"
      },
      "remediation": null,
      "durationMs": 0
    },
    "auth.credentials": {
      "id": "auth.credentials",
      "category": "auth",
      "status": "ok",
      "summary": "auth is configured",
      "details": {
        "auth file": "C:\\Users\\ofek\\.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\\ofek\\.codex",
        "config.toml": "C:\\Users\\ofek\\.codex\\config.toml",
        "config.toml parse": "ok",
        "cwd": "C:\\Users\\ofek\\Desktop\\code\\msgspec",
        "enabled feature flags": "<redacted>",
        "feature flag overrides": "unified_exec=true, remote_models=true",
        "feature flags enabled": "31",
        "log dir": "C:\\Users\\ofek\\.codex\\log",
        "mcp servers": "1",
        "model": "gpt-5.5",
        "model provider": "openai",
        "sqlite home": "C:\\Users\\ofek\\.codex"
      },
      "remediation": null,
      "durationMs": 0
    },
    "git.environment": {
      "id": "git.environment",
      "category": "git",
      "status": "ok",
      "summary": "git version 2.54.0.windows.1",
      "details": {
        ".git entry": "directory",
        "PATH git #1": "C:\\Users\\ofek\\scoop\\apps\\git\\current\\cmd\\git.exe",
        "PATH git #2": "C:\\Users\\ofek\\scoop\\shims\\git.exe",
        "PATH git entries": "2",
        "git branch": "ofek/pyemscripten",
        "git build options": "git version 2.54.0.windows.1; cpu: x86_64; built from commit: 2b8a3ab140826ac423c2845ef81d4c6ac4f7bf3c; sizeof-long: 4; sizeof-size_t: 8; shell-path: D:/git-sdk-64-build-installers/usr/bin/sh; rust: disabled; feature: fsmonitor--daemon; gettext: enabled; libcurl: 8.19.0; OpenSSL: OpenSSL 3.5.6 7 Apr 2026; zlib: 1.3.2; SHA-1: SHA1_DC; SHA-256: SHA256_BLK; default-ref-format: files; default-hash: sha1",
        "git exec path": "C:/Users/ofek/scoop/apps/git/2.54.0/mingw64/libexec/git-core",
        "git version": "git version 2.54.0.windows.1",
        "repo detected": "true",
        "repo root": "C:\\Users\\ofek\\Desktop\\code\\msgspec",
        "selected git": "C:\\Users\\ofek\\scoop\\apps\\git\\current\\cmd\\git.exe"
      },
      "remediation": null,
      "durationMs": 90
    },
    "installation": {
      "id": "installation",
      "category": "install",
      "status": "ok",
      "summary": "installation looks consistent",
      "details": {
        "PATH codex #1": "C:\\Users\\ofek\\scoop\\shims\\codex.exe",
        "current executable": "C:\\Users\\ofek\\scoop\\apps\\codex\\current\\codex.exe",
        "install context": "other",
        "managed by bun": "false",
        "managed by npm": "false",
        "managed package root": "not set"
      },
      "remediation": null,
      "durationMs": 86
    },
    "mcp.config": {
      "id": "mcp.config",
      "category": "mcp",
      "status": "ok",
      "summary": "MCP configuration is locally consistent",
      "details": {
        "configured servers": "1",
        "disabled servers": "0",
        "stdio servers": "1"
      },
      "remediation": null,
      "durationMs": 0
    },
    "network.env": {
      "id": "network.env",
      "category": "network",
      "status": "ok",
      "summary": "network-related environment looks readable",
      "details": {
        "proxy env vars": "none"
      },
      "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 base URL": "https://chatgpt.com/backend-api/ reachable (HTTP 403)",
        "reachability mode": "ChatGPT auth"
      },
      "remediation": null,
      "durationMs": 101
    },
    "network.websocket_reachability": {
      "id": "network.websocket_reachability",
      "category": "websocket",
      "status": "ok",
      "summary": "Responses WebSocket handshake succeeded",
      "details": {
        "DNS": "2 IPv4, 0 IPv6, first IPv4",
        "auth mode": "chatgpt",
        "connect timeout": "15000 ms",
        "endpoint": "wss://chatgpt.com/backend-api/<redacted>",
        "handshake result": "HTTP 101 Switching Protocols",
        "model provider": "openai",
        "models etag present": "true",
        "provider name": "OpenAI",
        "proxy env vars": "none",
        "reasoning header": "false",
        "server model present": "false",
        "supports websockets": "true",
        "wire API": "responses"
      },
      "remediation": null,
      "durationMs": 672
    },
    "runtime.provenance": {
      "id": "runtime.provenance",
      "category": "runtime",
      "status": "ok",
      "summary": "running local build on windows-x86_64",
      "details": {
        "commit": "unknown",
        "current executable": "C:\\Users\\ofek\\scoop\\apps\\codex\\current\\codex.exe",
        "install method": "other",
        "platform": "windows-x86_64",
        "version": "0.140.0"
      },
      "remediation": null,
      "durationMs": 0
    },
    "runtime.search": {
      "id": "runtime.search",
      "category": "search",
      "status": "ok",
      "summary": "search is OK (system)",
      "details": {
        "search command": "rg.exe",
        "search command readiness": "ripgrep 15.1.0 (rev af60c2de9d)",
        "search provider": "system"
      },
      "remediation": null,
      "durationMs": 33
    },
    "sandbox.helpers": {
      "id": "sandbox.helpers",
      "category": "sandbox",
      "status": "ok",
      "summary": "sandbox configuration is readable",
      "details": {
        "approval policy": "OnRequest",
        "codex-linux-sandbox helper": "none",
        "execve wrapper helper": "none",
        "filesystem sandbox": "restricted",
        "network sandbox": "enabled"
      },
      "remediation": null,
      "durationMs": 0
    },
    "state.paths": {
      "id": "state.paths",
      "category": "state",
      "status": "ok",
      "summary": "state paths and databases are inspectable",
      "details": {
        "CODEX_HOME": "C:\\Users\\ofek\\.codex (dir)",
        "active rollout files": "98 files, 76637346 total bytes, 782013 average bytes",
        "archived rollout files": "7 files, 4227122 total bytes, 603874 average bytes",
        "goals DB": "C:\\Users\\ofek\\.codex\\goals_1.sqlite (file)",
        "goals DB integrity": "ok",
        "log DB": "C:\\Users\\ofek\\.codex\\logs_2.sqlite (file)",
        "log DB integrity": "ok",
        "log dir": "C:\\Users\\ofek\\.codex\\log (dir)",
        "memories DB": "C:\\Users\\ofek\\.codex\\memories_1.sqlite (file)",
        "memories DB integrity": "ok",
        "sqlite home": "C:\\Users\\ofek\\.codex (dir)",
        "state DB": "C:\\Users\\ofek\\.codex\\state_5.sqlite (file)",
        "state DB integrity": "ok"
      },
      "remediation": null,
      "durationMs": 598
    },
    "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": "98",
        "rollout DB active rows": "80",
        "rollout DB archive mismatches": "0",
        "rollout DB archived files": "7",
        "rollout DB archived rows": "7",
        "rollout DB duplicate DB paths": "0",
        "rollout DB duplicate rollout thread ids": "0",
        "rollout DB malformed file names": "0",
        "rollout DB missing active rows": "18",
        "rollout DB missing active sample": [
          "C:\\Users\\ofek\\.codex\\sessions\\2026\\06\\14\\rollout-2026-06-14T00-08-32-019ec451-2577-7541-8c1c-116f491cacbb.jsonl",
          "C:\\Users\\ofek\\.codex\\sessions\\2026\\06\\14\\rollout-2026-06-14T00-12-20-019ec454-a030-7aa2-861a-1974d4703b83.jsonl",
          "C:\\Users\\ofek\\.codex\\sessions\\2026\\06\\14\\rollout-2026-06-14T00-27-52-019ec462-d8a0-7bc0-9b0c-b26a72890568.jsonl",
          "C:\\Users\\ofek\\.codex\\sessions\\2026\\06\\14\\rollout-2026-06-14T00-51-04-019ec478-0056-7861-88fa-ad58facbabb3.jsonl",
          "C:\\Users\\ofek\\.codex\\sessions\\2026\\06\\14\\rollout-2026-06-14T10-29-36-019ec689-abca-7492-b0f5-d37b32cb22d6.jsonl"
        ],
        "rollout DB missing archived rows": "0",
        "rollout DB model providers": "openai=87",
        "rollout DB rows": "87",
        "rollout DB scan cap reached": "false",
        "rollout DB scan errors": "0",
        "rollout DB sources": "cli=46, vscode=36, subagent:other=4, subagent:review=1",
        "rollout DB stale rows": "0"
      },
      "issues": [
        {
          "severity": "warning",
          "cause": "rollout files are missing from the state DB",
          "measured": "18 active, 0 archived",
          "expected": "every rollout file has a matching threads row",
          "remedy": null,
          "fields": []
        }
      ],
      "remediation": null,
      "durationMs": 1135
    },
    "system.environment": {
      "id": "system.environment",
      "category": "system",
      "status": "ok",
      "summary": "OS language en-US",
      "details": {
        "EDITOR": "not set",
        "VISUAL": "not set",
        "os": "Windows 10.0.26200 (Windows 11 Professional) [64-bit]",
        "os language": "en-US",
        "os type": "Windows",
        "os version": "10.0.26200"
      },
      "remediation": null,
      "durationMs": 0
    },
    "terminal.env": {
      "id": "terminal.env",
      "category": "terminal",
      "status": "ok",
      "summary": "terminal metadata was detected",
      "details": {
        "WT_SESSION": "present",
        "color output": "disabled (stdout is not a terminal)",
        "console input code page": "437",
        "console output code page": "65001",
        "stderr console mode": "0x00000007 (VT processing: true)",
        "stderr is terminal": "true",
        "stdin is terminal": "true",
        "stdout console mode": "unavailable",
        "stdout is terminal": "false",
        "terminal": "Windows Terminal",
        "terminal size": "199x42"
      },
      "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": "msgspec",
        "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.140.0",
        "check for update on startup": "true",
        "last checked at": "2026-06-16T12:20:11.388262300Z",
        "latest version": "0.140.0",
        "latest version status": "current version is not older",
        "update action": "manual or unknown",
        "version cache": "C:\\Users\\ofek\\.codex\\version.json"
      },
      "remediation": null,
      "durationMs": 103
    }
  }
}

What issue are you seeing?

The /diff command fails in a Windows sandbox session before Git output is shown because its internal command/exec request appears to pass a custom outputBytesCap, which the Windows sandbox backend rejects with the following error even though manual git diff commands all succeed.

Failed to compute diff: command/exec failed: custom outputBytesCap is not supported with windows sandbox (code -32600)

<img width="2341" height="1591" alt="Image" src="https://github.com/user-attachments/assets/efb3e2b0-a5c7-46d5-890f-a06266a701cf" />

What steps can reproduce the bug?

The behavior occurs with the following config:

[windows]
sandbox = "elevated"

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗