pub struct ReplState {
pub mode: OperationMode,
pub autonomy_level: AutonomyLevel,
pub running: bool,
pub last_prompt: String,
pub last_operation_summary: String,
pub last_error: Option<String>,
pub last_latency_ms: Option<u64>,
pub pending_plan_request: bool,
pub messages_cleared: bool,
pub compact_requested: bool,
pub init_prompt: Option<String>,
}Expand description
State shared across the REPL session.
Fields§
§mode: OperationModeCurrent operation mode.
autonomy_level: AutonomyLevelCurrent autonomy level.
running: boolWhether the REPL is running.
last_prompt: StringLast user prompt (for context display).
last_operation_summary: StringLast operation summary.
last_error: Option<String>Last error message (if any).
last_latency_ms: Option<u64>Last LLM latency in milliseconds.
pending_plan_request: boolWhether a plan-mode query is pending (via Shift+Tab toggle).
messages_cleared: boolFlag set by /clear command; REPL loop consumes and clears session messages.
compact_requested: boolFlag set by /compact command; REPL loop consumes and triggers compaction.
init_prompt: Option<String>Prompt set by /init command; REPL loop consumes and processes it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReplState
impl RefUnwindSafe for ReplState
impl Send for ReplState
impl Sync for ReplState
impl Unpin for ReplState
impl UnsafeUnpin for ReplState
impl UnwindSafe for ReplState
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