pub enum SessionSelection {
Ephemeral,
New {
dir: PathBuf,
name: Option<String>,
},
Latest,
ById {
id: 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.
Trait Implementations§
Source§impl Clone for SessionSelection
impl Clone for SessionSelection
Source§fn clone(&self) -> SessionSelection
fn clone(&self) -> SessionSelection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SessionSelection
impl RefUnwindSafe for SessionSelection
impl Send for SessionSelection
impl Sync for SessionSelection
impl Unpin for SessionSelection
impl UnsafeUnpin for SessionSelection
impl UnwindSafe for SessionSelection
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more