Repository navigation
Description
Summary
In the Windows Codex desktop app, long-running coding sessions that previously inspected images continue producing very large model request bodies after new image inspection has stopped. Client compression logs and a read-only local proxy traffic sample corroborate repeated tens-of-megabytes upstream requests. Connection failures/retries amplify the bandwidth cost.
Please investigate image/context reuse, incremental transport, and bandwidth-aware retry behavior. This report separates observed measurements from the suspected root cause; no payload decryption or fresh reproduction was performed.
Environment
- Windows 11 Pro, 10.0.26200, x64
- Installed desktop package: OpenAI.Codex 26.1007.9446.0
- Bundled executable reports: codex-cli 0.162.0-alpha.17.2
- Model reported in client logs: gpt-6.1-sol
- Existing long-running local coding workflow with multiple agent contexts and earlier local-image inspection
- HTTP Responses transport; local Proxifier → v2rayN/sing-box proxy chain. Network failures are present, so the proxy/network is a confounding factor for retry frequency.
- Observation date: 2026-10-16, times below UTC+08:00
Observed client request sizes
Read-only analysis of codex_http_client::request entries containing Compressed request body with zstd:
| Anonymized context | Observed interval | Encoded request bodies | Median compressed size | Sum of encoded compressed bodies |
|---|---|---|---|---|
| A | 09:56–10:55 | 73 | 43.62 MiB | 2966.7 MiB |
| B | 10:41–11:31 | 70 | 35.37 MiB | 2476.4 MiB |
| Coordinator | 10:56–11:31 | 53 | 6.16 MiB | 327.0 MiB |
| C | 10:43–10:46 | 7 | 15.61 MiB | 100.5 MiB |
The total logged compressed body size in this available sample is 5870.4 MiB. This is encoded/prepared request volume, not a claim that every byte was successfully transmitted; some requests failed.
Representative sanitized lines from context B:
11:29:06 pre_compression_bytes=50307725 post_compression_bytes=37235458
11:29:48 pre_compression_bytes=50317761 post_compression_bytes=37241443
11:30:16 pre_compression_bytes=50321159 post_compression_bytes=37243494
11:31:03 pre_compression_bytes=50331169 post_compression_bytes=37250681
11:31:47 pre_compression_bytes=50348346 post_compression_bytes=37260222
Transport/client logs identify POST https://chatgpt.com/backend-api/codex/responses.
Independent network corroboration
A ~20.07-second read-only sample of the existing local proxy connection counters measured:
- Total upstream delta: 37,388,714 bytes
- One
chatgpt.comTCP connection accounted for 37,312,985 upstream bytes and only 2,981 downstream bytes during that interval - That connection began at 11:29:48, closely matching the timestamp and compressed size of the model request logged above
This corroborates actual large transfers rather than merely large local log files. The user reports sustained upstream traffic around 1–2 MB/s over hours; the sample is consistent with repeated large requests, but is not itself a full multi-hour packet trace.
Evidence pointing to retained image context
Context B's session log contains 11 image entries totaling 48,680,818 bytes of image data-URL text. Its last new image entry is timestamped 10:19:45. Later requests from 10:41 through 11:31 still have ~50.3 MB pre-compression / ~37.3 MB post-compression bodies.
Context A's image data-URL text totals 63,337,916 bytes; later request bodies reach ~65.5 MB before compression / ~48.8 MB afterward.
The size correspondence and the absence of new images for over an hour in B strongly suggest retained images are repeatedly carried in subsequent model context. We have not decrypted or compared actual request bodies byte-for-byte, so the precise serialization/cache mechanism remains a hypothesis, not a confirmed source-level defect.
Retries / failures
- Context B has 46 logged POST
/codex/responsessend-failure entries in the observed interval. - Logs include
stream connection failed; waiting to retry ... retry_delay=5sand retry exhaustion / timeout messages. - Failed attempts may have transmitted only part of a request; the encoded-byte totals must not be treated as exact billed/network totals.
Expected behavior / requested improvements
- Reuse already-uploaded image content via an appropriate reference/session mechanism where possible; avoid resending full historical image data for each text/code sampling step.
- Prevent full image-history duplication when handing off to another agent/context, or make that cost visible and controllable.
- Expose outbound request size / accumulated upload volume so users can identify a large-context bandwidth loop.
- Make retries bandwidth-aware, with backoff/circuit-breaking and a clear way to halt repeated multi-megabyte uploads.
- Provide a supported way to retain textual findings while dropping old image payloads from subsequent context.
No images, raw transcripts, project code, credentials, account identifiers, local usernames, private IP addresses, or proxy configuration are attached. This summary was generated from existing local logs and counters without interrupting the running coding task.
Follow-up observation
The abnormal transfer persisted after diagnosis without a fresh image inspection in this side conversation. A second read-only sample at ~12:25 measured 12,440,409 upstream bytes in 5.03 seconds (~2.47 MB/s); 12,273,988 bytes belonged to one chatgpt.com connection. Context B still logged large bodies at 12:24:20, 12:24:52, and 12:25:31, with the latest pre_compression_bytes=51632195 post_compression_bytes=38104670. This supports investigating the retained context and ongoing retry/sampling path rather than only the frequency of new image-tool calls. The running main task was not paused or modified by this diagnostic side conversation.
Observed workflow (not a minimal deterministic reproducer)
- Use the Windows desktop app for a long-running local coding task, including agent work and earlier local-image inspection.
- Continue code/text work after the last image inspection.
- Inspect existing
codex_http_client::requestcompression telemetry and independently sample existing proxy byte counters. - Observe recurring tens-of-megabytes model requests and substantial upstream traffic; some connections fail and are retried.
Related reports
- Codex Windows app saturates upload bandwidth and causes severe network latency / disconnects #49738: Windows app upload saturation and network latency.
- Codex Windows app-server saturates upload bandwidth and causes packet loss #29854: Windows app-server uplink saturation.
- macOS: chats develop repeated WebSocket Broken pipe failures during media work, despite reinstall #51889: image/media-heavy history, transport failures, and large HTTP fallback bodies on macOS.
This report adds Windows client compression-byte measurements, a matching live connection-counter sample, and continued large requests long after the last new image entry. It does not claim the exact same underlying cause as those reports.
Submitted by an assistant at the user's explicit request, using sanitized measured diagnostics; no raw files or private session identifiers are included.
Activity
github-actions commentedon Oct 16, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
LukaDoncicY77 commentedon Oct 20, 2026
Windows Codex Desktop: 5.79 GiB uploaded in one hour, with large historical image payloads retained after compaction
Adding another Windows Desktop data point. Read-only local measurements show substantial upload traffic alongside large retained image histories. Please investigate whether unnecessary historical-image retransmission or context inheritance contributes to this behavior.
Environment
model_context_window = 500000;model_auto_compact_token_limit = 400000.compaction_image_budget: stable, true.enable_request_compression: stable, true.unified_image_budget: under development, false.Measured upload traffic
Local proxy-counter increments between 22:22:35 and 23:22:35:
Several Codex tasks were active concurrently. These measurements cover all proxy connections attributed to
codex.exe; they cannot be assigned entirely to one task and are not the proxy provider’s final billing figures.Separately, one recorded
codex.execonnection tochatgpt.comaccumulated 94,163,718 uploaded bytes. This is a connection-level counter, not a measured individual request size.Historical images retained after compaction
A metadata-only scan of one image-heavy task found:
replacement_historyat 21:25:12The completed compaction retained approximately 90.6 MB of encoded image data. Continued work subsequently increased that amount to approximately 125.5 MB.
These are stored encoding lengths, not decoded image sizes, captured request-body sizes, or transferred bytes. The earlier compaction snapshot also predates the one-hour network measurement window.
We have not captured or decrypted request bodies, so we cannot establish that every request retransmitted all retained images, that those images caused all measured traffic, or that HTTP fallback or retries amplified this particular case.
Observed workflow
This is an observation from an existing workload, not a minimal deterministic reproduction:
On a metered proxy connection, this creates a significant practical cost. Existing process-level measurements do not make it easy to identify which task or content category is responsible.
Requested investigation and improvements
Please advise which additional sanitized, metadata-only diagnostics would help.
Related reports
These are related observations, not proof of an identical root cause.
No images, screenshots, conversation contents, raw transcripts, session identifiers, local paths, credentials, or unredacted logs are attached.
chipfighter commentedon Oct 29, 2026
@jinfence-sudo The old images still following ordinary coding steps long after you stopped inspecting new ones are the part I built Context Attachment Manager to address. I ran into the same kind of image pile-up while revising characters for a short film.
I'm the author. It's free and open source, now v0.9.1 with 560 GitHub Stars. People facing similar image-history problems are using it and sharing feedback. Install it and restart Codex, and automatic selection is on by default: the assistant retrieves originals when needed, including after compaction, instead of carrying every historical image into each turn. Codex subagents and side chats are covered too.
You can browse thumbnails, search by remembered visual details, zoom previews, and choose references to keep selected. Original quality and chat records are preserved. The plugin manages them locally without separately collecting or uploading your pictures or chats.
https://github.com/chipfighter/context-attachment-manager
The page has setup steps. Once you're comfortable with it, you can ask Codex or Claude Code to install it for you. It supports Codex Desktop and the local Code tab in Claude Desktop.
If you're still seeing this during image-assisted work, I'd welcome a try and feedback on whether it reduces the repeated image traffic in your case.
LikeDreamwalker commentedon Nov 8, 2026
Is there anyone working on this? This issue is very confusing and bring into GBs traffic, which will almost bring one long chat dead due to the network processing. And I feel this is even worse on Windows rather than MacOS, no idea if this is related.