Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

hide resume until it's complete (#3218)

Ahmed Ibrahimc11696f6b12b
diff --git a/codex-rs/tui/src/cli.rs b/codex-rs/tui/src/cli.rs
index f419274af0..cb5f8ac778 100644
--- a/codex-rs/tui/src/cli.rs
+++ b/codex-rs/tui/src/cli.rs
@@ -20,7 +20,12 @@ pub struct Cli {
/// - Mutually exclusive with `--continue`.
/// - The picker displays recent sessions and a preview of the first real user
/// message to help you select the right one.
- #[arg(long = "resume", default_value_t = false, conflicts_with = "continue")]
+ #[arg(
+ long = "resume",
+ default_value_t = false,
+ conflicts_with = "continue",
+ hide = true
+ )]
pub resume: bool,
/// Continue the most recent conversation without showing the picker.
@@ -33,7 +38,8 @@ pub struct Cli {
id = "continue",
long = "continue",
default_value_t = false,
- conflicts_with = "resume"
+ conflicts_with = "resume",
+ hide = true
)]
pub r#continue: bool,
diff --git a/docs/getting-started.md b/docs/getting-started.md
index cb9fc736ac..3f7473fd33 100644
--- a/docs/getting-started.md
+++ b/docs/getting-started.md
@@ -10,6 +10,7 @@
Key flags: `--model/-m`, `--ask-for-approval/-a`.
+<!--
Resume options:
- `--resume`: open an interactive picker of recent sessions (shows a preview of the first real user message). Conflicts with `--continue`.
@@ -21,6 +22,7 @@ Examples:
codex --resume
codex --continue
```
+-->
### Running with a prompt as input