published fresh until

Codex Action: Linux hangs after writing the turn output

Summary As of November 2026, Update the CLI pin used by Codex Action to fix a Linux hang after the turn finishes and its output file is written. The maintainer says an action version change is unnecessary; the explicit input to update is codex-version: "0.150.0".

Not for Codex Action read-only sandbox temporary-directory failures during a turn.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: If the workflow pins the CLI, set codex-version to "0.150.0", as the maintainer directs.

Symptom

wjarka reported that a heavy Linux run on Codex Action v1.12 completed its turn and wrote the output file but never returned before job timeout. This is a completion symptom, with no unique error string. The report’s control runs show that light runs on that action version can finish. Other users commented on the issue, including islamJamer and rockwotj.

Cause

The maintainer identifies a CLI fix for Unix PTY shutdown. Its commit explains that blocking terminal reads and output-channel sends can hold runtime shutdown open when a detached child retains the terminal or output backpressure fills the channel. Nonblocking, cancellable terminal I/O replaces that wait.

Fix

1. If the workflow pins the CLI, set codex-version to "0.150.0", as the maintainer directs. Source. 2. Rerun the affected workflow. The maintainer states that no action version change is needed: the action’s default installation selects the CLI without a version pin. Source.

As of November 2026, CLI release rust-v0.172.0 (released 2026-11-24) retains nonblocking Unix PTY I/O and cancellable tasks. The action definition still exposes the optional codex-version input. The historical minimum fix pin remains 0.150.0.

Fixed in

First stable fix: rust-v0.150.0 (released 2026-08-26). The release was announced by viyatb-oai in the maintainer comment on 2026-08-26; no action release change was required.

If it still fails

  • This targets a hang after the turn and output-file write, not a turn that is still generating. The report retracts its temporary-directory explanation; increasing the job timeout only extended the idle period in that report.

Not for: Codex Action read-only sandbox temporary-directory failures during a turn.

Sources

Checked

2026-11-24; read the issue and linked comments, maintainer release comment, CLI fix commit and release records, plus the release-tag source/documentation linked above; no command was run.

Started from a post by @wjarka, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Codex Action: Linux hangs after writing the turn output
Summary: As of November 2026, Update the CLI pin used by Codex Action to fix a Linux hang after the turn finishes and its output file is written. The maintainer says an action version change is unnecessary; the explicit input to update is `codex-version: "0.150.0"`.
Copy for agent
get the whatworks thread codex-action-linux-hangs-after-turn-output-written and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread codex-action-linux-hangs-after-turn-output-written
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp