codex icon indicating copy to clipboard operation
codex copied to clipboard

Codex repeatedly terminates implementation sessions prematurely despite unfinished tasks.

Open khalid1679 opened this issue 1 week ago • 4 comments

What version of Codex CLI is running?

0.171.0

What subscription do you have?

ChatGPT Plus

Which model were you using?

gpt-6.1-terra

What platform is your computer?

Ubuntu 26.04.1 LTS, x86_64, kernel 7.0.0-43-generic

What terminal emulator and version are you using (if applicable)?

No response

Codex doctor report


What issue are you seeing?

Codex CLI 0.171.0 repeatedly terminates implementation tasks prematurely while running GPT-6.1 Terra with medium reasoning.

There are two recurring problems:

  1. Incorrect model-verification failure: The interactive Codex footer explicitly displays "GPT-6.1 Terra medium", but Codex sometimes claims that it cannot verify its model and terminates immediately.

  2. Premature task completion: Codex reads project instructions, inspects source files, and sometimes executes existing tests, but then voluntarily ends the task despite acknowledging that substantial implementation work remains unfinished.

The behavior has occurred across numerous fresh Codex sessions, typically after approximately 14 seconds to 4 minutes.

Codex frequently reports that no genuine blocker exists, that implementation is incomplete, and that the next session should resume the same work.

The sessions appear to complete normally rather than crashing. Previously inspected session logs recorded task_complete without corresponding turn_aborted, turn_failed, or error events.

The problem persists despite explicit instructions to complete the integrated deliverable, correct failures, and continue implementation until completion or a genuine blocker.

This causes repeated source inspection, unnecessary context consumption, and little development progress.

What steps can reproduce the bug?

Uploaded thread: 01a20862-1c3d-7150-9471-b300ecaa3b67

What is the expected behavior?

Codex should honor the explicitly selected model and reasoning configuration, including operator verification through the interactive footer.

For an authorized implementation task, Codex should continue implementing the complete coherent deliverable, including integration, focused testing, failure correction, and retesting.

It should stop only when:

  • The requested deliverable is functionally complete.
  • A genuine blocker prevents further safe progress.
  • An actual execution or session limit interrupts the task.

Codex should not voluntarily terminate after preliminary inspection, an intermediate code change, or existing tests while acknowledging that the requested work remains unfinished and no blocker exists.

Additional information

Codex CLI: 0.171.0

Selected model: gpt-6.1-terra

Reasoning effort: medium

Operating system: Ubuntu 26.04.1 LTS, x86_64

Interactive footer: GPT-6.1 Terra medium

The issue has reproduced across multiple fresh sessions. Existing repository changes have been preserved.

Uploaded feedback thread: 01a20862-1c3d-7150-9471-b300ecaa3b67

At the time of the latest reproduction, approximately 40% of the five-hour usage allowance remained. The observed early termination was not explained by an exhausted usage allowance.

khalid1679 avatar Nov 23 '26 12:11 khalid1679

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #62364
  • #62053
  • #62682

Powered by Codex Action

github-actions[bot] avatar Nov 23 '26 12:11 github-actions[bot]

I had a same issue in Pi harness, it worked for like 30s then told me that it didn't do everything and returned. It does this randomly time from time, basically unusable model, didn't have any issues with Luna or Sol.

mistrjirka avatar Nov 25 '26 13:11 mistrjirka

Same.

ozergul avatar Nov 29 '26 11:11 ozergul

I have an independent incident with the same normal-completion signature, observed 26 November 2026 on a Raspberry Pi 5 (64-bit Linux), with the runtime reporting gpt-6.1-terra at high reasoning effort. Exact CLI build for this session has not been independently confirmed.

The user task explicitly required an integrated deliverable, implementation, troubleshooting, focused tests, correction and operational verification. The session began at 10:31:28 UTC and recorded task_complete at 10:34:57 UTC (3m 29s), despite explicitly acknowledging incomplete implementation. The accessible session record did not show a corresponding error, approval rejection, turn_aborted or recorded stop reason. A subsequent review did not identify an applicable mandatory gate requiring that stop.

Expected: continue the authorised actionable work within actual tool and security limits; when stopping, distinguish verified completion from an incomplete turn and report the observed reason or explicitly state that it is unavailable. A normal task_complete event must not be represented to the user as verified completion of the deliverable.

This is historical incident evidence, not a deterministic minimal reproduction or proof of a particular orchestration/model cause. Please investigate whether normal turn completion can be distinguished from goal acceptance in runtime telemetry and the UI.

Ai3Ui avatar Dec 01 '26 14:12 Ai3Ui