pub struct ThreadMetadata {Show 22 fields
pub id: String,
pub rollout_path: Option<PathBuf>,
pub preview: String,
pub ephemeral: bool,
pub model_provider: String,
pub created_at: i64,
pub updated_at: i64,
pub status: ThreadStatus,
pub path: Option<PathBuf>,
pub cwd: PathBuf,
pub cli_version: String,
pub source: SessionSource,
pub name: Option<String>,
pub sandbox_policy: Option<String>,
pub approval_mode: Option<String>,
pub archived: bool,
pub archived_at: Option<i64>,
pub git_sha: Option<String>,
pub git_branch: Option<String>,
pub git_origin_url: Option<String>,
pub memory_mode: Option<String>,
pub current_leaf_id: Option<i64>,
}Expand description
Metadata for a persisted conversation thread.
Each thread represents a single conversation session and stores its configuration, git context, and current status.
Fields§
§id: StringUnique identifier for this thread.
rollout_path: Option<PathBuf>Optional filesystem path to the rollout (JSONL transcript) file.
preview: StringShort preview or summary of the thread content.
ephemeral: boolWhether this thread is ephemeral (not persisted long-term).
model_provider: StringIdentifier of the model provider used for this thread (e.g. "openai").
created_at: i64Unix timestamp (seconds) when the thread was created.
updated_at: i64Unix timestamp (seconds) of the most recent update to the thread.
status: ThreadStatusCurrent lifecycle status of the thread.
path: Option<PathBuf>Optional filesystem path associated with the thread working context.
cwd: PathBufWorking directory that was active when the thread was created.
cli_version: StringVersion of the CLI that created this thread.
source: SessionSourceHow this session was initiated.
name: Option<String>User-assigned display name for the thread.
sandbox_policy: Option<String>Serialized sandbox policy applied to this thread, if any.
approval_mode: Option<String>Approval mode configured for tool calls in this thread.
archived: boolWhether the thread has been archived.
archived_at: Option<i64>Unix timestamp (seconds) when the thread was archived, or None if not archived.
git_sha: Option<String>Git commit SHA of the working tree when the thread was created.
git_branch: Option<String>Git branch checked out when the thread was created.
git_origin_url: Option<String>URL of the git remote origin, if available.
memory_mode: Option<String>Memory mode configured for this thread (e.g. "local", "remote").
current_leaf_id: Option<i64>ID of the current leaf message in the conversation tree.
Trait Implementations§
Source§impl Clone for ThreadMetadata
impl Clone for ThreadMetadata
Source§fn clone(&self) -> ThreadMetadata
fn clone(&self) -> ThreadMetadata
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more