codex - 💡(How to fix) Fix Hang / Application hang/ Stall / Execution stall/Unresponsive UI / UI freeze ————always thinking but no response after "git, find,searchAuto-compacting context"

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…
RAW_BUFFERClick to expand / collapse

What version of the Codex App are you using (From “About Codex” dialog)?

Mac_26.519.41501 (3044)

What subscription do you have?

Plus

What platform is your computer?

Mac M4

What issue are you seeing?

Hang / Application hang/ Stall / Execution stall/Unresponsive UI / UI freeze ————always thinking but no response after "git, find,searchAuto-compacting context"。

and i have let codex anaylse the questions: 我查了本地能读到的 rollout 和 sqlite 日志,结论比较明确:卡住的不是 shell 命令,而是工具结果返回之后,模型/会话调度没有继续生成下一步。

时间线是这样:

17:27:30:第二次“分析客观指标”任务开始。 17:27:40:我发了那句“先摸目录结构……”。 17:27:40.676 / 17:27:40.688:发起两个工具调用:pwd 和 rg --files ...。 17:27:40.855:两个工具都返回成功,Wall time: 0.0000 seconds,并且已经列出 3 个文件。 17:27:40.855 之后到 17:34:39:没有新的 assistant 消息、没有新的工具调用、没有 task_complete。 17:34:39:你手动中断。 所以实际卡点是:17:27:40 工具结果已经回来了,但我没有进入“读文件/总结指标”的下一步,也没有给 final。从工具返回到你中断,大约 6 分 59 秒;从任务开始到中断约 7 分 9 秒,体感上就是你说的 8 分钟。

我还查了全局日志:同一时间有一些无关的后台 plugin sync 警告,以及另一个 background thread 的 skill loader warning,但没有看到能证明是 rg、文件扫描、终端命令或项目目录导致的错误。read_thread_terminal 也显示这个线程没有附加终端会话。

所以我的判断是:这是 Codex 会话执行/模型采样流在“工具输出之后”挂住或丢了续跑,不是项目太大、命令卡死,也不是我在扫描。更糟的是后面 17:37 那次也有类似苗头:工具返回后没有继续给完整分析,说明这次线程状态可能当时就有点不稳。 能。按我能看到的本地日志判断:更像是 Codex 本身的会话/工具调用续跑问题,不像是网络问题,也不是你的项目或命令卡住。

关键证据是:

17:27:40 左右,两个本地命令已经成功返回

pwd 立刻返回 rg --files ...L- Object-std 也立刻返回,只列出 3 个文件 工具耗时记录是接近 0 秒 真正的空白发生在工具结果返回之后

17:27:40 工具输出已经写入日志 17:27:40 到 17:34:39 之间没有新的 assistant 输出、没有新的 shell 输出、也没有任务完成记录 直到你手动中断 同一线程后面又出现过类似现象

我调用 read_thread_terminal,它也马上返回了 但之后仍然没有继续生成,直到你再次打断 这说明不是某个 shell 命令卡死,而是“工具返回后,Codex 没有继续接上下一步” 本地网络日志没有看到明显失败

那个时间段附近能看到到 chatgpt.com:443 的连接成功、握手成功 没看到 DNS 失败、TLS 失败、timeout、断连重试这类强网络故障证据 有一个插件 marketplace sync 的警告,但它是后台插件同步,和这次本地项目分析关系不大 所以结论更准确地说是:

不是网络断了,也不是命令跑太久;更可能是 Codex app / 会话调度 / 工具调用后续生成链路在那一轮卡住了。 如果把“Codex 的原因”细分,它不一定是模型“想不出来”,而更像是:工具结果已经回来,但客户端或后端的 turn runner 没有继续触发下一段生成,或者流式响应状态丢了。

What steps can reproduce the bug?

just any prompt all can happen,long long long time thinking but no response

What is the expected behavior?

long time thinking can response

Additional information

No response

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 Hang / Application hang/ Stall / Execution stall/Unresponsive UI / UI freeze ————always thinking but no response after "git, find,searchAuto-compacting context"