Codex hangs for 5 minutes before applying patch

Resolved 💬 4 comments Opened Dec 2, 2025 by alborzdev Closed Dec 2, 2025

What version of Codex is running?

codex-cli 0.63.0

What subscription do you have?

Plus

Which model were you using?

gpt-5.1-codex-max

What platform is your computer?

Linux 5.15.148-tegra aarch64 aarch64

What issue are you seeing?

Since the release of gpt-5.1-codex (a few weeks ago), I have been running into this hanging issue where anytime codex wants to change code, apply a patch, or anything related to code changes, it will wait exactly 5 minutes before applying those changes and moving on.

Codex is able to read and investigate the codebase just fine, and answer questions regarding it. But as soon as I ask it to implement the changes, it will always just wait 5 minutes before doing anything. I notice that after 20 seconds of asking it to do a code change, if I hit escape, I will see the code changes diff:

• Edited vss/processing/inference_queue.py (+21 -0)
512 try:
522 + logger.info(
523 + "✅ Postprocess done | stream=%s depth=%d duration=%.2fs",
524 + task.request.stream_id,
525 + self._postprocess_queue.qsize(),
526 + duration,
527 + )
528 except asyncio.CancelledError:

716 self._postprocess_queue.put_nowait(PostprocessTask(request=request, result=result))
717 + depth = self._postprocess_queue.qsize()
718 + if depth > 50:
719 + logger.warning(
720 + "📥 Postprocess backlog growing | depth=%d stream=%s",
721 + depth,
722 + request.stream_id,
723 + )
724 except Exception as exc:

■ Conversation interrupted - tell the model what to do differently. Something went wrong? Hit /feedback to report the issue.

It's like it has the change ready, but always just waits 5 minutes before doing it.

This happens with every single model, it's been happening since ~v0.58 of codex, have already tried giving it full access, used the --sandbox command. No idea what's causing this hang, it's very time consuming to code with Codex now.

What steps can reproduce the bug?

Anytime I ask Codex to implement a code change, it will wait 5 minutes.

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗