pub enum ActivityState {
Idle,
Planning,
PreparingFreshExecutionThread,
RestoringApprovedPlan,
Building,
StartingBuild,
Recovery,
Blocked,
}Variants§
Idle
Planning
The agent is working inside the plan workflow (research/synthesis).
PreparingFreshExecutionThread
RestoringApprovedPlan
Building
The agent is executing an approved plan.
StartingBuild
Recovery
A bounded tool-free recovery pass is running after blocked tool calls. Tools are disabled for this pass; input stays enabled.
Blocked
The turn is blocked and waiting for user guidance (continue, new
instructions, or vtcode --resume). Distinct from Idle so the TUI
can keep a persistent blocked hint visible.
Implementations§
Source§impl ActivityState
impl ActivityState
Sourcepub const fn is_busy(self) -> bool
pub const fn is_busy(self) -> bool
Transient handoff states that must block input and mode switches.
Sourcepub const fn locks_mode_switch(self) -> bool
pub const fn locks_mode_switch(self) -> bool
Whether primary-agent/mode switching must be rejected while this state is visible. Long-lived Build, Recovery, and Blocked states keep input enabled, but their active turn state still owns the mode boundary.
Sourcepub const fn is_stage(self) -> bool
pub const fn is_stage(self) -> bool
Long-lived display stages that keep input enabled between turns.
pub const fn status(self) -> Option<&'static str>
Trait Implementations§
Source§impl Clone for ActivityState
impl Clone for ActivityState
Source§fn clone(&self) -> ActivityState
fn clone(&self) -> ActivityState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ActivityState
Source§impl Debug for ActivityState
impl Debug for ActivityState
Source§impl Default for ActivityState
impl Default for ActivityState
Source§fn default() -> ActivityState
fn default() -> ActivityState
Returns the “default value” for a type. Read more
impl Eq for ActivityState
Source§impl PartialEq for ActivityState
impl PartialEq for ActivityState
impl StructuralPartialEq for ActivityState
Auto Trait Implementations§
impl Freeze for ActivityState
impl RefUnwindSafe for ActivityState
impl Send for ActivityState
impl Sync for ActivityState
impl Unpin for ActivityState
impl UnsafeUnpin for ActivityState
impl UnwindSafe for ActivityState
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.