Codex Desktop App intermittently stuck on Thinking with anytls reuse=true (IpcRouter EPIPE)

Resolved 💬 0 comments Opened Feb 18, 2026 by mkfd Closed Mar 7, 2026

Summary

Codex Desktop App frequently gets stuck on Thinking when network traffic is routed through Surge with an anytls proxy using reuse=true.

Even after updating the Desktop App, the issue persists. Logs consistently show:

  • warning [IpcRouter] Socket error errorCode=EPIPE errorMessage="write EPIPE"

Environment

  • OS: macOS (Apple Silicon)
  • Codex Desktop App: 26.217.1959 (build 669)
  • Bundled agent in app: codex-cli 0.104.0-alpha.1
  • Standalone CLI installed: codex-cli 0.101.0
  • Network path: Surge enhanced mode -> LA node -> anytls with reuse=true

Reproduction

  1. Open Codex Desktop App.
  2. Ensure network goes through Surge with anytls reuse=true.
  3. Start/continue chat and send a few messages.
  4. App intermittently hangs at Thinking and does not complete normally.

Expected

Conversation should complete reliably without hanging.

Actual

Conversation intermittently stalls at Thinking, and app logs contain repeated EPIPE socket errors.

Evidence (local logs)

Recent examples (2026-02-18):

  • /Users/<redacted>/Library/Logs/com.openai.codex/2026/02/18/codex-desktop-93ba3f8e-b2aa-4053-8189-30d5e3f5527e-67959-t0-i1-213946-0.log:3221
  • /Users/<redacted>/Library/Logs/com.openai.codex/2026/02/18/codex-desktop-eb063b33-bcce-4243-8ead-642bdf93418b-79538-t0-i1-222046-0.log:69
  • /Users/<redacted>/Library/Logs/com.openai.codex/2026/02/18/codex-desktop-dbd4150e-669e-4d9b-a54e-0760a3ae9751-67089-t0-i1-213710-0.log:385

Representative log line:
warning [IpcRouter] Socket error errorCode=EPIPE errorMessage="write EPIPE"

Notes

  • This is reproducible on my machine and persisted after upgrading Desktop App.
  • CLI and Desktop App behavior differs under the same proxy setup; Desktop App is significantly more likely to hang.

View original on GitHub ↗