codex - 💡(How to fix) Fix Codex prompt submission can trigger local network latency spikes and packet loss on macOS

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Root Cause

It also occurs regardless of whether a VPN is enabled, so the VPN does not appear to be the root cause.

RAW_BUFFERClick to expand / collapse

What version of Codex is running?

Codex App: 26.519.22136 (3003) VS Code Extension: 26.513.21555 Codex CLI: 0.133.0

Which model were you using?

gpt-5.5 medium

What platform is your computer?

macOS 26.5 on a laptop Connection: Wi-Fi Local router/gateway: private LAN IP, redacted as <local-router-ip>

What issue are you seeing?

When submitting prompts to Codex, especially in longer conversations, my local network appears to experience a latency spike / packet loss event.

This affects other real-time traffic on the same network at the same time:

  • A game client's latency jumps from normal low double-digit milliseconds to 2000+ ms.
  • Streaming video on another device buffers.
  • A local monitoring script shows packet loss / severe latency to both public internet targets and my local router gateway.

The issue is a recent regression in my environment and appears to reproduce across Codex clients:

  • Codex macOS app
  • VS Code integration
  • Codex CLI

It also occurs regardless of whether a VPN is enabled, so the VPN does not appear to be the root cause.

Evidence from local network monitor

I ran a local network monitor that pings public targets and the local router gateway every ~2 seconds while also logging DNS timing and process network snapshots.

During a Codex prompt submission, the monitor captured this:

[2026-05-21 19:29:18] PACKET_LOSS target=8.8.8.8 status=fail
[2026-05-21 19:29:28] LATENCY_SPIKE target=1.1.1.1 status=ok latency_ms=212.500
[2026-05-21 19:29:28] PACKET_LOSS target=8.8.8.8 status=fail ... round-trip ... 1649.964 ms
[2026-05-21 19:29:28] PACKET_LOSS target=<local-router-ip> status=fail ... round-trip ... 1942.024 ms
[2026-05-21 19:29:49] PACKET_LOSS target=1.1.1.1 status=fail
[2026-05-21 19:29:49] PACKET_LOSS target=8.8.8.8 status=fail
[2026-05-21 19:29:49] PACKET_LOSS target=<local-router-ip> status=fail
[2026-05-21 19:30:15] ping target=<local-router-ip> status=ok latency_ms=4.460

Before the event, baseline latency was roughly:

1.1.1.1             ~17-26 ms
8.8.8.8             ~100-125 ms
<local-router-ip>   ~4-8 ms

The important detail is that the local router gateway spikes/losses too, so this appears to be a local network disruption triggered around Codex prompt submission, not just a remote service response delay.

Process/network snapshot around the spike

At the same time, the local process network snapshot showed Codex outbound traffic increasing during the event:

19:29:21 codex ... bytes_out=3623840
19:29:35 codex ... bytes_out=9098429
19:29:42 codex ... bytes_out=13801601
19:29:51 codex ... bytes_out=21807722
19:30:08 codex ... bytes_out=29932453

This suggests a relatively large or bursty upload during prompt submission.

Steps to reproduce

  1. Use Codex on macOS over Wi-Fi.
  2. Work in a longer Codex conversation.
  3. Keep latency-sensitive traffic running, such as a game or streaming video.
  4. Run a local monitor pinging both public targets and the local router gateway.
  5. Submit a prompt to Codex, especially after the conversation has grown.
  6. Observe:
    • Codex prompt submission occurs.
    • Other network traffic stalls or buffers.
    • Router gateway ping can spike from ~5 ms to ~1900 ms or packet loss.
    • Public pings also spike/loss.
    • Network recovers afterward.

Expected behaviour

Submitting a Codex prompt should not create a network burst large enough to disrupt local network latency, packet delivery to the router, games, or streaming traffic.

Actual behaviour

Codex prompt submission appears to create a burst of outbound traffic during longer sessions, causing local network latency spikes and packet loss that affect the whole network.

Additional notes

I searched existing issues and found related performance reports around long sessions / submit path / large local session history, but did not find one specifically about local network latency spikes:

  • #18495
  • #22283
  • #12709
  • #21326
  • #19278

This may be related to longer session context, large local session history, or prompt submission batching. A client-side upload throttle, compression change, or less bursty submit behaviour may help.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Codex prompt submission can trigger local network latency spikes and packet loss on macOS