Skip to content

Codex in experimental plan mode create the plan file twice #10121

Closed

Description

@ranqn

Description

Codex models are equipped with the apply_patch tool, not able to use the write tool, and when in the experimental plan mode, it will first create the plan file using apply_patch but found itself violated instructions to mandate the write tool, then delete and recreate the same plan file.

Its thinking often shows something like:

Thinking: Correcting file creation to use write tool

The initial plan file was created with apply_patch, but instructions mandate using the write tool in plan mode, so I'll rewrite the file with the write tool.
Thinking: Confirming only patch-based file writes

The available tools lack a direct write or edit command, so file modifications must use apply_patch despite system reminders mentioning write. I'll continue using apply_patch for file changes.

Plugins

No response

OpenCode version

1.1.32

Steps to reproduce

  1. Enable the experimental plan mode.
  2. Select GPT Codex 5.2 with plan mode.
  3. Ask to create a plan.
  4. Observe the agent try to create the plan file twice.

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Windows Terminal

Activity

  1. github-actions commented on Jan 23, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. github-actions commented on Mar 26, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingzenRelates to Zen

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions