pub struct SessionMeta {Show 16 fields
pub id: String,
pub timestamp: String,
pub cwd: PathBuf,
pub originator: String,
pub cli_version: String,
pub source: String,
pub forked_from_id: Option<String>,
pub agent_nickname: Option<String>,
pub agent_role: Option<String>,
pub agent_path: Option<String>,
pub model_provider: Option<String>,
pub base_instructions: Option<BaseInstructions>,
pub dynamic_tools: Option<Value>,
pub memory_mode: Option<String>,
pub git: Option<GitInfo>,
pub extra: HashMap<String, Value>,
}Expand description
First line of every rollout file; session_meta payload.
Matches SessionMeta (+ git denormalization) from
codex-rs/protocol/src/protocol.rs.
Fields§
§id: StringUUIDv7 session id.
timestamp: StringISO-8601 timestamp for session creation (distinct from the outer line timestamp, which is the write time).
cwd: PathBufWorking directory at session creation.
originator: StringWho launched Codex (codex-tui, codex-exec, IDE plugins).
cli_version: String§source: StringEntry point: cli, vscode, etc.
forked_from_id: Option<String>Parent session if this was forked (multi-agent).
agent_nickname: Option<String>§agent_role: Option<String>§agent_path: Option<String>§model_provider: Option<String>§base_instructions: Option<BaseInstructions>Embedded system prompt for the session. Typically large (~20 KB).
dynamic_tools: Option<Value>§memory_mode: Option<String>§git: Option<GitInfo>Git state at session start. Populated when cwd is inside a repo.
extra: HashMap<String, Value>Forward-compat catch-all.
Trait Implementations§
Source§impl Clone for SessionMeta
impl Clone for SessionMeta
Source§fn clone(&self) -> SessionMeta
fn clone(&self) -> SessionMeta
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionMeta
impl Debug for SessionMeta
Source§impl<'de> Deserialize<'de> for SessionMeta
impl<'de> Deserialize<'de> for SessionMeta
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SessionMeta
impl RefUnwindSafe for SessionMeta
impl Send for SessionMeta
impl Sync for SessionMeta
impl Unpin for SessionMeta
impl UnsafeUnpin for SessionMeta
impl UnwindSafe for SessionMeta
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