Skip to content

Codex confuses cwd with target worktree #12232

Closed

Description

@budivoogt

Model often trips over the wd in which the Codex CLI thread has been started, and any new worktree it may have created in which it begins shipping new code. Later, as context fills, it regularly regresses to using the origin wd in which the convo was started, despite having (received direction to) worked in a new worktree.

Guardrails in agents.md don't appear to solve the issue.

Activity

  1. etraut-openai commented on Feb 19, 2026

    @etraut-openai
    Contributor

    If you're able to repro this, please use the /feedback slash command to upload logs and session details, then post the thread ID here. Without this additional information, there's not much we can do to diagnose the problem.

  2. etraut-openai commented on May 14, 2026

    @etraut-openai
    Contributor

    Closing because of no response.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions