Skip to content

Codex repeatedly terminates implementation sessions prematurely despite unfinished tasks. #63325

Open

Description

@khalid1679

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.

Activity

  1. added
    bug
    on Nov 23, 2026
  2. added
    CLI
    model-behavior
    on Nov 23, 2026
  3. mistrjirka commented on Nov 25, 2026

    @mistrjirka

    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.

  4. ozergul commented on Nov 29, 2026

    @ozergul

    Same.

  5. Ai3Ui commented on Dec 1, 2026

    @Ai3Ui

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIbugmodel-behavior

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions