Codex IDE Extension: unexpected status 413 Payload Too Large

Resolved 💬 1 comment Opened Dec 7, 2025 by metaxasa Closed Mar 2, 2026

What version of Codex is running?

0.5.49

What subscription do you have?

Pro

Which model were you using?

GPT-5.1-High

What platform is your computer?

Darwin 24.6.0 arm64 arm

What issue are you seeing?

On long running threads where I've been attaching images, intermittently (I assume where a size limit is breached by the number of attached images) I get the following error:

Failed:
unexpected status 413 Payload Too Large: <html> <head><title>413 Request Entity Too Large</title></head> <body> <center><h1>413 Request Entity Too Large</h1></center> <hr><center>cloudflare</center> <script>(function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'9aa2deccbf11efe0',t:'<redacted>'};var a=document.createElement('script');a.nonce='';a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script></body> </html> , request id: 9aa2deccbf11efe0-LHR

What steps can reproduce the bug?

Uploaded thread: 019ae907-ac3b-74e3-bb48-1f1dc59874e5

What is the expected behavior?

Perhaps trim or compress older images in the current context to keep the request payload below the limit.

Additional information

_No response_

View original on GitHub ↗

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