pub enum SessionStatus {
Draft,
InProgress,
Review,
AgentReview,
Watching,
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.
Watching
The review-ready session watches its linked review request and resolves failing checks, review comments, and merge conflicts.
Question
The session is waiting for model clarification responses.
Queued
The session is waiting in Agentty’s merge queue, or its linked pull request is waiting in the forge’s 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; 12]
pub const ALL: [SessionStatus; 12]
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.
Watching is a review-ready state: it adds automatic review-request
follow-up without removing any manual review action.
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 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
impl 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 Forget for SessionStatus
impl Freeze for SessionStatus
impl Move 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.