<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Compaction</title><link>https://blog.ast.moe/en/tags/compaction/</link><description>Recent posts: Gorimuchu</description><generator>Hugo</generator><item><title>What does Codex’s “Error running remote compact task: {"detail":"Bad Request"}” mean?</title><link>https://blog.ast.moe/en/blog/2026-09-17/</link><pubDate>Thu, 17 Sep 2026 11:53:02 +0900</pubDate><guid>https://blog.ast.moe/en/blog/2026-09-17/</guid><description>&lt;p&gt;When you have been working on Codex for a long time, &lt;code&gt;remote compact&lt;/code&gt; may be triggered. At that point, the following error can appear:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Error running remote compact task: {&amp;#34;detail&amp;#34;:&amp;#34;Bad Request&amp;#34;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This indicates that Codex’s context‑compression process did not complete successfully.&lt;/p&gt;
&lt;p&gt;However, &lt;code&gt;{&amp;quot;detail&amp;quot;:&amp;quot;Bad Request&amp;quot;}&lt;/code&gt; is not a specific cause name. From just this display alone, you cannot tell whether the context was too large, there were too many images, the history entries were invalid, or it was a temporary server‑side issue.&lt;/p&gt;</description></item><item><title>We recovered from a remote compact failure in a long-running Codex session that contained a large number of uncompressed PNGs.</title><link>https://blog.ast.moe/en/blog/2026-09-11-2/</link><pubDate>Fri, 11 Sep 2026 21:25:17 +0900</pubDate><guid>https://blog.ast.moe/en/blog/2026-09-11-2/</guid><description>&lt;p&gt;The thread that had been running for a long time on Codex suddenly stopped working.&lt;/p&gt;
&lt;p&gt;The error that was displayed is as follows.&lt;/p&gt;
&lt;p&gt;If you only want to understand the meaning of this error, it is explained in “What does Codex’s ‘Error running remote compact task: {&amp;ldquo;detail&amp;rdquo;:&amp;ldquo;Bad Request&amp;rdquo;}’ mean?” (&lt;a href="https://blog.ast.moe/en/blog/2026-09-17/"&gt;source&lt;/a&gt;). In this article, I will describe the steps we took to investigate the history and restore the thread.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Error running remote compact task: {&amp;#34;detail&amp;#34;:&amp;#34;Bad Request&amp;#34;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;If it had failed only once, a simple retry would have worked, but in this thread every time we tried a compact we received the same HTTP 400 error, and eventually even the normal responses began to fail.&lt;/p&gt;</description></item></channel></rss>