Skip to main content

SessionRow

Struct SessionRow 

Source
pub struct SessionRow {
Show 13 fields pub session_id: String, pub tool: String, pub path: String, pub project: String, pub title: String, pub started: Option<String>, pub msg_count: i64, pub kind: String, pub preview: Option<String>, pub summary: Option<String>, pub tags: Option<String>, pub archived: bool, pub account: Option<String>,
}
Expand description

Serializes to the agent-facing JSON contract: snake_case keys matching the web API (id, msgs, tags as an array). The absolute path is never serialized verbatim - only the tool’s own native_id (the codex rollout / claude transcript UUID extracted from the filename) is exposed, so an agent can join a harness “tower” row (which knows only the native id) back to a session without the local path ever leaking.

Fields§

§session_id: String§tool: String§path: String

The NATIVE session file path. Never serialized as-is; it is surfaced only as the extracted native_id UUID (or null when the filename carries no UUID) via [ser_native_id].

§project: String§title: String§started: Option<String>§msg_count: i64§kind: String§preview: Option<String>

Tail of the conversation (last assistant message), so a list can show how the session ended without opening it.

§summary: Option<String>

Cached LLM synopsis, if summarize has been run for this session.

§tags: Option<String>

Comma-joined user tags, if any. Serialized as a string array (or null).

§archived: bool

True if the tool deleted the original and we kept the indexed copy.

§account: Option<String>

The swapdex account profile active when this session started, when a swapdex switch timeline exists on the machine. Null otherwise - a missing badge, never a guess.

Trait Implementations§

Source§

impl Serialize for SessionRow

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.