Skip to content

Option to edit an earlier prompt in place instead of always forking (config toggle and/or per-edit prompt) #35005

Description

@Yan233th

What variant of Codex are you using?

CLI

What feature would you like to see?

Since 0.145.0 (#33201), editing an earlier prompt always creates a fork/branch. I'd like the ability to choose between forking and editing in place.

1. A config toggle (e.g. in config.toml):

[tui]
edit_earlier_prompt_mode = "fork"   # "fork" | "in_place" | "ask"
  • fork — current behavior (branch, preserve original). Keep as default.
  • in_place — edit the message in the current session without creating a new one.
  • ask — prompt at edit time (see below).

2. An interactive prompt when confirming an edit: after Esc-Esc → TRANSCRIPT → select a message → press Enter to edit, show a choice:

Editing an earlier message:
  [Fork]          Create a new branched session (preserves original)
  [Edit in place] Modify in the current session

I'm not asking to revert #33201 — preserving history on fork is good. Just make it a configurable default rather than the only option.

Additional information

Motivation — the always-fork default has real costs for workflows that just want to fix a typo or rephrase a previous prompt without spawning a new session:

Related: #33201 (the change), #35003 (timestamp side effect), #31902 (prior overwrite complaint — the pendulum this would balance).

The config key name is just a suggestion; happy with whatever fits the existing schema.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLITUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displayconfigIssues involving config.toml, config keys, config merging, or config updatesenhancementNew feature or requestsessionIssues involving session (thread) management, resuming, forking, naming, archiving

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions