Add session forking to codex exec - #37367
Merged
copyberry[bot] merged 1 commit intoAug 7, 2026
Merged
Conversation
## 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
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/b8f28b238a1526cc486c5beb886a63f68b8e7986
branch
from
August 7, 2026 03:40
cec96b6 to
80858a8
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/b8f28b238a1526cc486c5beb886a63f68b8e7986
branch
August 7, 2026 03:41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add session forking to
codex execWhat changed
codex exec fork <SESSION_ID> [PROMPT]for creating a new thread froman existing session ID or thread name.
with a prompt and optional images.
leaving the source session unchanged.
Testing
forks, thread naming, copied history, and unsupported promptless options.