pub enum SessionSelection {
Ephemeral,
New {
dir: PathBuf,
name: Option<String>,
},
Latest {
dir: PathBuf,
},
ById {
id: String,
dir: PathBuf,
},
ByExactId {
id: String,
dir: PathBuf,
},
Fork {
source: String,
dir: PathBuf,
entry_id: Option<String>,
position: Option<ForkPosition>,
},
}Expand description
How a launch selects its session. A restored session renders its transcript into the TUI on startup and continues appending to the selected JSONL file.
Variants§
Ephemeral
--no-session: ephemeral, in-memory, nothing persisted.
New
Fresh durable JSONL session under --session-dir (or the default dir).
Latest
-c: restore the most recent resumable session in the configured dir.
ById
--session <id|path>: restore a session by path or unambiguous selector.
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. entry_id optionally cuts the new branch at a message;
position says whether that message stays (at) or is dropped
(before). None keeps the harness default for an explicit entry
(before).
Trait Implementations§
Source§impl Clone for SessionSelection
impl Clone for SessionSelection
Auto Trait Implementations§
impl Forget for SessionSelection
impl Freeze for SessionSelection
impl Move for SessionSelection
impl RefUnwindSafe for SessionSelection
impl Send for SessionSelectionwhere
RawVecInner: Send,
impl Sync for SessionSelectionwhere
RawVecInner: Sync,
impl Unpin for SessionSelection
impl UnsafeUnpin for SessionSelection
impl UnwindSafe for SessionSelectionwhere
RawVecInner: UnwindSafe,
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