pub struct SessionSummary {
pub id: String,
pub path: PathBuf,
pub cwd: PathBuf,
pub harness: String,
pub model: String,
pub branch: Option<String>,
pub last_active: SystemTime,
}Expand description
One row of the session picker (ADR-0029): everything a chooser needs, read from the rollout’s line-1 header plus its mtime — never the whole file.
The conversation title is deliberately absent: it lives in the first user
message, which costs a second read of a few records, so the picker paints from
these and fills titles in afterwards (codex’s lazy-preview pattern,
tui/src/resume_picker.rs:772, minus the preview pane).
Fields§
§id: StringThe session id, as it appears in the filename and the header.
path: PathBufThe rollout to resume.
cwd: PathBufThe session’s start cwd (the directory key).
harness: StringThe harness pack that wrote it. Rows are not filtered by it: resuming switches the pack from here, so a session started under another harness is still listed and still resumable (ADR-0029 resolution 1).
model: StringThe model at session start.
branch: Option<String>The git branch at session start, when the session began inside a repo.
last_active: SystemTimeFile mtime — the session’s last activity, and the sort key.
Trait Implementations§
Source§impl Clone for SessionSummary
impl Clone for SessionSummary
Source§fn clone(&self) -> SessionSummary
fn clone(&self) -> SessionSummary
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more