Skip to content

GPT-5.6 Terra/Luna prematurely calls final during incomplete long-running tasks until Logout/Login #43864

Open

Description

@mpeelym

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

Version 26.825.51511

What subscription do you have?

Business

What platform is your computer?

Win 11

What issue are you seeing?

I've been experiencing intermittent premature task termination in the Codex desktop app for approximately the past two weeks.
During long-running agent tasks, Codex sometimes stops execution before the requested work is actually complete. When I ask why it stopped, the model reports that it called final by mistake.

I've observed this with multiple GPT-5.6 configurations:
GPT-5.6 Terra — Medium / Standard
GPT-5.6 Luna — Extra High / Fast

One example - When I said 'continue', the task seems starting but within 1 second, it stopped. So it may be somehow cache/ression related issue. It doesn't seem like it was even connecting to the server when it stopped. That's why it seems like cache related. Most of times, during the executing, it stopped so this may not be a cache issue.

I first noticed the problem after turning my computer back on and asking Codex to resume a task from where it had left off. The task resumed successfully, but then repeatedly stopped in the middle of execution. After several occurrences, I logged out of Codex and logged back in, and the repeated stopping behavior appeared to go away.

However, I've also occasionally observed the same premature termination during normal daytime sessions without a computer restart/resume. This makes me wonder whether there may be some session/context/execution state that accumulates or becomes stale, causing the model or agent loop to incorrectly determine that execution should terminate. Logging out and back in may be resetting that state.

What steps can reproduce the bug?

Actual behavior:
Codex intermittently invokes final while work is still incomplete, causing the agent loop to stop prematurely. Asking it to continue allows execution to resume, indicating that there was still outstanding work.

Reproduction pattern observed

  1. Start a substantial multi-step task in the Codex desktop app.
  2. Allow Codex to execute for an extended period.
  3. In some cases, resume an existing task after the computer/session has been inactive.
  4. Codex continues working normally.
  5. Before all work is complete, execution suddenly stops.
  6. When asked why it stopped, Codex says that it called final by mistake.
  7. Asking it to continue resumes the unfinished work.
  8. The premature stopping may happen repeatedly within the same session.
  9. Logging out and logging back in appeared to clear the repeated behavior in at least one instance.

Frequency

Intermittent, but I've encountered it multiple times over approximately the last two weeks. It appeared particularly reproducible in a resumed session, although I've also seen it during normal active sessions.

What is the expected behavior?

Codex should not invoke final or terminate the agent loop until the requested task and its remaining execution steps are actually complete.
If the agent believes it is finished, there should ideally be a completion check against the active plan/task state before final is allowed to terminate a long-running execution.

Additional information

Possibly related

This appears similar to #32389 — "GPT-5.6 Terra intermittently returns an empty successful final response after tool use, prematurely ending agent loops."

However, I'm filing this separately because my observations include:
GPT-5.6 Luna as well as Terra
Codex desktop app

  • A possible relationship with session/computer resume
  • Repeated premature termination within the same session
  • Behavior apparently improving after logout/login
  • A concrete long-running case that terminated after 30m 11s at 99% progress

I'm not able to confirm whether the underlying response in my case is the same empty successful final response described in #32389, so this may be the same underlying issue or a related session/orchestration issue.

Activity

  1. added
    app
    on Sep 8, 2026
  2. added
    bug
    model-behavior
    session
    on Sep 8, 2026
  3. github-actions commented on Sep 8, 2026

    @github-actions
    Contributor
  4. changed the title [-]GPT-5.6 Terra/Luna prematurely calls final during incomplete long-running tasks, especially after session resume[/-] [+]GPT-5.6 Terra/Luna prematurely calls final during incomplete long-running tasks until Logout/Login[/+] on Sep 8, 2026
  5. Hossam-T commented on Sep 13, 2026

    @Hossam-T

    Having the same issue with GPT-5.6 Terra Xhigh

  6. mpeelym commented on Sep 17, 2026

    @mpeelym
    Author

    Starting yesterday, the issue began happening again with GPT-5.6 Terra (Medium). It repeatedly stops during execution and, when I ask why, says that it called final when it should not have.

    I explicitly instructed it not to stop until the task was completed, but the premature termination continued. I had to manually ask it to continue multiple times. For example, individual execution periods lasted approximately 1m50s, 4m40s, 17m30s, 2m05s, 2m20s, 30s, 48s, and 14s before stopping again. Eventually, I gave up on Terra.

    I then switched the same work to GPT-5.6 Luna(Extra High). Luna initially stopped after approximately 9m56s, but after I asked it to continue, it ran for approximately 44m05s and was still continuing without another interruption at the time I checked.

    This continues to appear to be a GPT-5.6 reliability issue involving premature final calls, although the frequency seems significantly worse with Terra in my experience.

    I never experienced this behavior with GPT-5.4, which worked very reliably for my long-running Codex tasks (for months). Since GPT-5.4 is no longer available, I cannot roll back for comparison. Based on my usage, GPT-5.6 Terra Medium has not been an improvement in long-running execution reliability compared with GPT-5.4.

    The most disruptive part is that the agent may still have substantial work remaining, yet final terminates the execution loop and requires repeated manual intervention. This makes unattended or long-running agentic workflows difficult to rely on.

  7. mpeelym commented on Sep 17, 2026

    @mpeelym
    Author

    This happened again in a separate session while using GPT-5.6 Terra (Medium). Terra repeatedly stopped execution prematurely, but after I switched the same work to GPT-5.6 Luna (Extra High), it continued normally without the same repeated interruptions.

    Based on what I have observed across multiple sessions, I believe the premature final issue exists in GPT-5.6 generally, since I have experienced it with both Terra and Luna. However, it appears to occur much more frequently and consistently with GPT-5.6 Terra than with GPT-5.6 Luna.

    This is becoming reproducible enough that switching from Terra to Luna has, on multiple occasions, allowed me to continue work that was repeatedly being interrupted by premature final calls in Terra.

  8. shmakovdima commented on Oct 25, 2026

    @shmakovdima

    Additional reproduction from macOS (Asia/Yerevan), Codex CLI/TUI session, GPT-5.6 Terra with high reasoning.

    The failure repeats in the same active session, not only after resume:

    1. Give an unfinished multi-step implementation task and explicitly require continuous execution, e.g. "continue" / "do not stop".
    2. The agent performs successful tool calls and reports progress in commentary.
    3. It then emits an empty successful final response while work remains.
    4. When told that this violates the instruction, it resumes work, performs more successful tool calls, then emits another empty final.

    Observed dozens of times in one session. The user-visible result is an empty assistant completion repeatedly interrupting execution. This was not caused by a Git hook or Moshi: those were separately investigated and rolled back.

    Expected: when the active instruction forbids termination before task completion, the agent loop should reject an empty final and continue or require an explicit user stop.

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

    appbugmodel-behaviorsession

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions