Skip to content

Add session forking to codex exec - #37367

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/b8f28b238a1526cc486c5beb886a63f68b8e7986
Aug 7, 2026
Merged

Add session forking to codex exec#37367
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/b8f28b238a1526cc486c5beb886a63f68b8e7986

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 7, 2026

Copy link
Copy Markdown

Add session forking to codex exec

What changed

  • Add codex exec fork <SESSION_ID> [PROMPT] for creating a new thread from
    an existing session ID or thread name.
  • Allow creating the fork without starting a turn, or immediately continue it
    with a prompt and optional images.
  • Preserve the source thread ID in the emitted session configuration while
    leaving the source session unchanged.

Testing

  • Add CLI parsing coverage and an end-to-end test for promptless and prompted
    forks, thread naming, copied history, and unsupported promptless options.

## What changed

- Add `codex exec fork <SESSION_ID> [PROMPT]` for creating a new thread from
  an existing session ID or thread name.
- Allow creating the fork without starting a turn, or immediately continue it
  with a prompt and optional images.
- Preserve the source thread ID in the emitted session configuration while
  leaving the source session unchanged.

## Testing

- Add CLI parsing coverage and an end-to-end test for promptless and prompted
  forks, thread naming, copied history, and unsupported promptless options.

GitOrigin-RevId: b8f28b238a1526cc486c5beb886a63f68b8e7986
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/b8f28b238a1526cc486c5beb886a63f68b8e7986 branch from cec96b6 to 80858a8 Compare August 7, 2026 03:40
@copyberry
copyberry Bot merged commit 80858a8 into main Aug 7, 2026
30 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/b8f28b238a1526cc486c5beb886a63f68b8e7986 branch August 7, 2026 03:41
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant