pub struct Session {Show 17 fields
pub created_at: i64,
pub draft_prompt: Option<String>,
pub focused_review: Option<SessionFocusedReview>,
pub graph: Option<SessionGraphSummary>,
pub graph_question_target: Option<String>,
pub id: SessionId,
pub messages: Vec<SessionMessage>,
pub progress: Option<String>,
pub published_upstream_ref: Option<String>,
pub questions: Vec<QuestionItem>,
pub queued_actions: Vec<String>,
pub queued_messages: Vec<String>,
pub review_request: Option<ReviewRequest>,
pub settings: SessionSettings,
pub status: SessionStatus,
pub title: Option<String>,
pub updated_at: i64,
}Expand description
Complete persisted session aggregate returned by the programmatic API.
Fields§
§created_at: i64Session creation timestamp in Unix seconds.
draft_prompt: Option<String>Staged draft prompt that has not entered the durable transcript.
focused_review: Option<SessionFocusedReview>Latest focused review of the session’s changes, while the host shows
it. None when there is none to show, including while a review runs:
progress then describes it.
graph: Option<SessionGraphSummary>The session’s latest graph proposal and, once approved, its graph’s
progress, as the host summarizes them beside the chat. None when
the session has no proposal.
graph_question_target: Option<String>Opaque key of the graph work that asked questions, its pending
graph proposal version or one of its graph node executions, or None
when the session’s own turn asked them. Other graph work asking the
same questions has another key. The key identifies no proposal or
node; a frontend echoes it in
AnswerQuestionsRequest::graph_question_target
so its answers reach only the work they were entered for. The host
reports graph questions only while the turn asks none, and a chat
message still answers them, so the session’s status need not be
SessionStatus::Question.
id: SessionIdStable session identifier.
messages: Vec<SessionMessage>Ordered durable transcript messages.
progress: Option<String>Live line describing the session’s current work, such as
Working... Reading files, while it works or waits. Further lines
add detail. None when the host shows no such line.
published_upstream_ref: Option<String>Published upstream branch reference, when present.
questions: Vec<QuestionItem>Structured clarification questions waiting for answers, which
crate::SessionService::answer_questions answers.
queued_actions: Vec<String>Workflow actions waiting behind the active turn, such as a queued
sync, publish, or settings change, as display labels in the order
they run. Chat messages wait in queued_messages.
queued_messages: Vec<String>Chat messages waiting behind the active turn or queued branch action.
review_request: Option<ReviewRequest>Persisted review-request linkage, when present.
settings: SessionSettingsComplete session-scoped execution settings.
status: SessionStatusCurrent lifecycle status.
title: Option<String>Optional user-visible session title.
updated_at: i64Last update timestamp in Unix seconds.
Implementations§
Trait Implementations§
impl Eq for Session
impl StructuralPartialEq for Session
Auto Trait Implementations§
impl Forget for Session
impl Freeze for Session
impl Move for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
impl UnwindSafe for Session
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.