Skip to content

Possible compaction/reinspection loop causing stalled multi-step work #58117

Open

Description

@dog-foot-man

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

Not recorded; report concerns a prior Codex desktop session

What subscription do you have?

Not recorded (ChatGPT subscription)

What platform is your computer?

Windows 64-bit; exact OS build not recorded

What issue are you seeing?

During a multi-step Godot game implementation task, the Codex desktop app repeatedly emitted conversation-optimization and command-execution updates while showing little or no implementation progress. The requested work covered a start-menu restructure, portrait-based dialogue UI, a Devil Lord defeat portrait, and reusable stage-dialogue data consumed by common code.

The agent later acknowledged that it had over-inspected the save system, menu flow, and dialogue files. It said the portrait had been created, but the menu and dialogue code had not yet changed. After being explicitly told to stop rechecking and proceed with implementation and validation, the same apparent cycle continued for roughly another 18 minutes.

Impact: substantial time/usage spent without proportional progress, and status reporting made it hard to determine whether changes had actually been made.

What steps can reproduce the bug?

  1. Start a staged repository task requiring multiple related code and asset changes.
  2. Let the agent inspect the project and begin work.
  3. Observe repeated conversation-optimization/compaction and command-execution updates without clear edits or milestone completion.
  4. Ask the agent why it is looping; it may acknowledge excessive inspection and commit to implementation.
  5. Observe whether it re-enters the same inspection/compaction pattern rather than applying and validating changes.

The model may have changed during the broader work from Astra to Sol. I cannot confirm the exact model active for each loop, nor can I rule out repository complexity as a contributing factor.

What is the expected behavior?

The agent should inspect relevant files in a bounded way, retain a concrete implementation checkpoint across compaction, apply incremental edits, validate meaningful milestones, and report completed work accurately. Reinspection should not repeatedly replace editing and validation.

Additional information

Possible cause: compaction/context-loss or a reinspection loop. The agent may lose its current plan, files already inspected, completed edits, or next concrete action after conversation optimization, then restart discovery instead of continuing.

Please investigate whether compaction can cause repeated file inspection, loss of an active implementation checkpoint, generic progress activity without meaningful state changes, or failure to transition from exploration to editing/validation. Potential safeguards could include retaining a structured checkpoint (plan, inspected files, completed edits, next action, pending validation) and detecting repetitive no-progress tool sequences.

No session ID, token-usage data, or exact app version was retained for this prior session.

Activity

  1. added
    app
    on Oct 29, 2026
  2. added
    bug
    context
    model-behavior
    on Oct 29, 2026
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

    appbugcontextmodel-behavior

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions