pub enum SessionStatus {
Draft,
InProgress,
Review,
AgentReview,
Question,
Queued,
Rebasing,
Merging,
Merged,
Done,
Canceled,
}Expand description
High-level lifecycle state for one session.
Variants§
Draft
Session has been created but has not started its first agent turn yet.
InProgress
An agent turn or its post-processing workflow is running.
Review
The session is ready for user review and follow-up work.
AgentReview
The session is generating focused-review output.
Question
The session is waiting for model clarification responses.
Queued
The session is waiting in the merge queue.
Rebasing
The session branch is being rebased.
Merging
The session branch is being merged.
Merged
A remote merge awaits local target-branch synchronization.
Done
The session completed successfully.
Canceled
The session was canceled before completion.
Implementations§
Source§impl SessionStatus
impl SessionStatus
Sourcepub const ALL: [SessionStatus; 11]
pub const ALL: [SessionStatus; 11]
Ordered list of all session statuses.
Sourcepub fn allows_chat_composer(self) -> bool
pub fn allows_chat_composer(self) -> bool
Returns whether this status permits opening the chat composer.
Sourcepub fn allows_session_actions(self) -> bool
pub fn allows_session_actions(self) -> bool
Returns whether this status permits idle session actions.
Sourcepub fn allows_diff_view(self) -> bool
pub fn allows_diff_view(self) -> bool
Returns whether this status permits opening the session diff.
Sourcepub fn allows_rebase_action(self) -> bool
pub fn allows_rebase_action(self) -> bool
Returns whether this status permits starting or queueing session sync.
Sourcepub fn allows_review_actions(self) -> bool
pub fn allows_review_actions(self) -> bool
Returns whether this status keeps review actions enabled.
Sourcepub fn allows_terminal_continuation(self) -> bool
pub fn allows_terminal_continuation(self) -> bool
Returns whether this status can seed a follow-on continuation session.
Sourcepub fn is_read_only(self) -> bool
pub fn is_read_only(self) -> bool
Returns whether this lifecycle state permits only local inspection.
Sourcepub fn allows_stacked_child_start(self) -> bool
pub fn allows_stacked_child_start(self) -> bool
Returns whether this status is stable enough to start a stacked child.
Sourcepub fn is_stack_branch_mutating(self) -> bool
pub fn is_stack_branch_mutating(self) -> bool
Returns whether this status represents branch-mutating stack work.
Sourcepub fn can_transition_to(self, next: SessionStatus) -> bool
pub fn can_transition_to(self, next: SessionStatus) -> bool
Returns whether a transition to next is valid.
Trait Implementations§
Source§impl Clone for SessionStatus
impl Clone for SessionStatus
Source§fn clone(&self) -> SessionStatus
fn clone(&self) -> SessionStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SessionStatus
Source§impl Debug for SessionStatus
impl Debug for SessionStatus
Source§impl Display for SessionStatus
impl Display for SessionStatus
impl Eq for SessionStatus
Source§impl FromStr for SessionStatus
impl FromStr for SessionStatus
Source§impl PartialEq for SessionStatus
impl PartialEq for SessionStatus
impl StructuralPartialEq for SessionStatus
Auto Trait Implementations§
impl Freeze for SessionStatus
impl RefUnwindSafe for SessionStatus
impl Send for SessionStatus
impl Sync for SessionStatus
impl Unpin for SessionStatus
impl UnsafeUnpin for SessionStatus
impl UnwindSafe for SessionStatus
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.