Skip to content

Conversation

@apanasenko-oai
Copy link
Collaborator

Summary

  • add codex fork subcommand and /fork slash command mirroring resume
  • extend session picker to support fork/resume actions with dynamic labels in tui/tui2
  • wire fork selection flow through tui bootstraps and add fork-related tests

session_id: Option<String>,

/// Fork the most recent session without showing the picker.
#[arg(long = "last", default_value_t = false, conflicts_with = "session_id")]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really want this? How is the last session defined? Last one closed? Last turn started? Last turn finished?
I guess this will create more confusion

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It basically mirrors resume and use same logic.

/// Load thread file paths from disk using directory traversal.
///
/// Directory layout: `~/.codex/sessions/YYYY/MM/DD/rollout-YYYY-MM-DDThh-mm-ss-<uuid>.jsonl`
/// Returned newest (latest) first.

we will need to clean up it at some point or define better.

all: bool,

#[clap(flatten)]
config_overrides: TuiCli,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is cool but it seems to add quite some complexity for low value

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here, I followed resume here.

@apanasenko-oai apanasenko-oai merged commit 4223948 into main Jan 12, 2026
32 checks passed
@apanasenko-oai apanasenko-oai deleted the anton_panasenko_exec_fork branch January 12, 2026 18:09
@github-actions github-actions bot locked and limited conversation to collaborators Jan 12, 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.

3 participants