Skip to content

Cleanup step used over-broad workspace move and dismantled repository boundaries #16625

Closed

Description

@j32097072

What version of Codex CLI is running?

0.118.0

What subscription do you have?

api call

Which model were you using?

gpt-4o-mini

What platform is your computer?

No response

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

WSL2 (Ubuntu 22.04.5 LTS)

What issue are you seeing?

During cleanup, Codex executed an overbroad workspace-level move operation that treated repository content as disposable intermediate files, causing large-scale boundary overreach and repository structure damage.

What steps can reproduce the bug?

  1. Open a repository-backed workspace.
  2. Ask Codex CLI to perform the requested edit, repair, or cleanup workflow reflected by this report.
  3. Observe whether it reproduces the failure described above.

What is the expected behavior?

Codex CLI should either apply a valid change or fail cleanly.
It should not corrupt repository state, write invalid syntax, or perform over-broad filesystem actions.

Additional information

Attached full execution traces from the original run directory

["unexpected file changes: ['.editorconfig', '.gitignore', '.pre-commit-config.yaml', '.readthedocs.yaml', 'CHANGES.rst', 'FETCH_HEAD', 'HEAD', 'LICENSE.txt', 'README', 'README.md']"]

full_trace_bundle.json

Activity

  1. added
    bug
    on Apr 2, 2026
  2. added
    CLI
    sandbox
    on Apr 2, 2026
  3. github-actions commented on Apr 2, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  4. added
    model-behavior
    and removed
    sandbox
    CLI
    on Apr 2, 2026
  5. etraut-openai commented on Apr 2, 2026

    @etraut-openai
    Contributor

    Thanks for the bug report. We'll share the feedback with the team responsible for training our codex models. If you see other model behavior that you'd like to report, please use the /feedback command. That will provide us with additional details including logs and conversation text.

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

    bugmodel-behavior

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions