pub enum SessionSelection {
Ephemeral,
New {
dir: PathBuf,
name: Option<String>,
},
Latest,
ById {
id: String,
},
ByExactId {
id: String,
},
Fork {
source: String,
},
}Expand description
How the user asked to select a session. v1 honors NoSession (ephemeral
InMemorySessionStorage), New (a fresh JSONL file), and — new this pass —
Latest / ById, which restore an existing JSONL session on launch
(--continue/-c, --resume/-r, --session <id|path>). The restored
transcript renders into the TUI on startup and the run continues appending
to the same file.
Variants§
Ephemeral
--no-session: ephemeral, in-memory, nothing persisted.
New
Fresh durable JSONL session under --session-dir (or the default dir).
Latest
-c / -r: restore the most recent session in the default dir.
ById
--session <id|path>: restore the session whose id matches, or whose
file name contains the id.
ByExactId
--session-id <id>: use the EXACT session id, creating it if missing.
Fork
--fork <path|id>: fork the given session into a new one and start in
the fork.
Trait Implementations§
Source§impl Clone for SessionSelection
impl Clone for SessionSelection
Source§fn clone(&self) -> SessionSelection
fn clone(&self) -> SessionSelection
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more