GPTMap

/fork

The slash command to fork the current chat; supports inline args.

Codex commandsopenaicodexclituislash-commandsession

Specs

Verified:

Kind
Slash command (inside TUI session)
Syntax
/fork [optional args]
First seen
—
unverified
Inline args
Supported

The official description of /fork is "fork the current chat"; it supports inline args and is one of the commands whose dispatch requires thread-state validation (alongside /review). Since 0.166.0, resume/fork preserve approvals, permissions, and reasoning-token accounting (#57227/#57839). First-seen version is unverified.

Timeline

  1. 0.166.0: resume/fork preserve approvals, permissions, and reasoning-token accounting (#57227/#57839)

Key features

  • Fork the current session to explore a variant
  • Original session stays untouched
  • Approvals and permission state preserved since 0.166.0

Use cases

Fork when you want to try two approaches from the same starting point — cleaner than re-pasting history.

Install

`/fork` in the TUI; the CLI counterpart is `codex fork` (picker / --last).

Caveats

Fork is a branch, not a backup — use /resume to continue the original.

Added

Updated

Verified

Related entries