Codex replied; git status stayed clean

A Codex reply is not success. The file landed when git diff shows it.

Codex CLI answered, and git status is still clean. That edit did not land. To walk the diff that actually hit disk, open a browser room on figmeet and show the command plus git diff.

People searching Codex CLI first file edit have usually already watched the terminal reply. The chat is not the outcome. The official starter is Tell me about this project. That explains. A write needs a relative path and a sandbox that can change the workspace.

Install and sign in Allow workspace writes git diff shows the file

The run that actually writes

  1. 1

    Start Codex at the repo root

    Official macOS / Linux install: curl -fsSL https://chatgpt.com/codex/install.sh | sh. Change into the project, then run codex. Sign in with ChatGPT on first launch. The docs' explain prompt does not edit files.

  2. 2

    Switch the sandbox to writable

    Interactive: codex --sandbox workspace-write --ask-for-approval on-request. Scripted: codex exec --sandbox workspace-write --ask-for-approval never. Sandbox values are read-only, workspace-write, and danger-full-access. Use /permissions to see writable roots. Do not use --yolo for a first trial.

  3. 3

    Name the file, then check git

    Put a relative path in the prompt, such as README.md, and tell Codex to apply the edit, not only explain. The internal apply_patch tool accepts relative paths only. Proof is git status and git diff. No diff means it did not land.

Why the chat looks finished

01

Explain prompts do not write

The documented starter talks about the project. Codex can read files and type. The working tree can stay clean.

02

read-only blocks the patch

read-only limits model-generated commands. An on-request write that you skip also never lands. Paths outside the workspace need --add-dir.

03

Review leaves the tree alone

codex review reports on uncommitted changes, a commit, or a base branch and does not modify the working tree. --output-last-message only stores the last assistant reply.

cd ~/code/my-app
codex exec --sandbox workspace-write --ask-for-approval never \
  "Add a one-line summary at the top of README.md. Apply the edit; do not only explain."
git status
git diff
Command What it does Repo files
codex “tell me about this project” Reads code, writes a reply No diff required
read-only sandbox Limits model commands Cannot write the workspace
workspace-write + named file apply_patch on a relative path git diff shows the edit

Once the diff exists, open a room on figmeet and show the relative path plus git diff. Join steps live in create and join. A few minutes of alignment does not need a heavy client; see when not to use heavy meeting apps.

Easy to think it already landed

Codex already answered. Why is git status clean?

The reply can be an explanation only. If the sandbox is read-only, or an on-request write was not approved, apply_patch never reaches the workspace. Trust git diff.

Does codex review edit files?

No. The docs say it reports findings and does not modify the working tree. To land an edit, use a writable sandbox in the TUI or codex exec.

Is --output-last-message the file edit?

No. It writes the assistant's last message to a path you pass. That is a chat archive. Source files still need apply_patch or an equivalent write.

Can I run outside a Git repo?

Yes, with --skip-git-repo-check. Without git, check directory listings and timestamps. Do not stop at the terminal reply.

Start a free meeting