tui: add branch to 'codex resume', filter by cwd (#6232)

By default, show only sessions that shared a cwd with the current cwd.
`--all` shows all sessions in all cwds. Also, show the branch name from
the rollout metadata.

<img width="1091" height="638" alt="Screenshot 2025-11-04 at 3 30 47 PM"
src="https://github.com/user-attachments/assets/aae90308-6115-455f-aff7-22da5f1d9681"
/>
This commit is contained in:
Jeremy Rose
2025-11-18 16:47:37 -08:00
committed by GitHub
parent b952bd2649
commit 526eb3ff82
6 changed files with 227 additions and 50 deletions

View File

@@ -28,6 +28,10 @@ pub struct Cli {
#[clap(skip)]
pub resume_session_id: Option<String>,
/// Internal: show all sessions (disables cwd filtering and shows CWD column).
#[clap(skip)]
pub resume_show_all: bool,
/// Model the agent should use.
#[arg(long, short = 'm')]
pub model: Option<String>,