pub struct AppState {Show 32 fields
pub input_state: InputState,
pub messages_scrolling_state: MessagesScrollingState,
pub loading_state: LoadingState,
pub shell_popup_state: ShellPopupState,
pub tool_call_state: ToolCallState,
pub dialog_approval_state: DialogApprovalState,
pub sessions_state: SessionsState,
pub session_tool_calls_state: SessionToolCallsState,
pub profile_switcher_state: ProfileSwitcherState,
pub rulebook_switcher_state: RulebookSwitcherState,
pub model_switcher_state: ModelSwitcherState,
pub command_palette_state: CommandPaletteState,
pub shortcuts_panel_state: ShortcutsPanelState,
pub file_changes_popup_state: FileChangesPopupState,
pub usage_tracking_state: UsageTrackingState,
pub configuration_state: ConfigurationState,
pub quit_intent_state: QuitIntentState,
pub terminal_ui_state: TerminalUiState,
pub shell_runtime_state: ShellRuntimeState,
pub shell_session_state: ShellSessionState,
pub banner_state: BannerState,
pub toast: Option<Toast>,
pub message_interaction_state: MessageInteractionState,
pub side_panel_state: SidePanelState,
pub user_message_queue_state: UserMessageQueueState,
pub message_revert_state: MessageRevertState,
pub plan_mode_state: PlanModeState,
pub plan_review_state: PlanReviewState,
pub ask_user_state: AskUserState,
pub tool_approval_popup_state: AutoApprovePopupState,
pub approval_settings_persistence_state: ApprovalSettingsPersistenceModal,
pub background_tasks_state: BackgroundTasksState,
}Fields§
§input_state: InputState§messages_scrolling_state: MessagesScrollingState§loading_state: LoadingState§shell_popup_state: ShellPopupState§tool_call_state: ToolCallState§dialog_approval_state: DialogApprovalState§sessions_state: SessionsState§session_tool_calls_state: SessionToolCallsState§profile_switcher_state: ProfileSwitcherState§rulebook_switcher_state: RulebookSwitcherState§model_switcher_state: ModelSwitcherState§command_palette_state: CommandPaletteState§shortcuts_panel_state: ShortcutsPanelState§file_changes_popup_state: FileChangesPopupState§usage_tracking_state: UsageTrackingState§configuration_state: ConfigurationState§quit_intent_state: QuitIntentState§terminal_ui_state: TerminalUiState§shell_runtime_state: ShellRuntimeState§shell_session_state: ShellSessionState§toast: Option<Toast>§message_interaction_state: MessageInteractionState§side_panel_state: SidePanelState§user_message_queue_state: UserMessageQueueState§message_revert_state: MessageRevertState§plan_mode_state: PlanModeState§plan_review_state: PlanReviewState§ask_user_state: AskUserState§tool_approval_popup_state: AutoApprovePopupState§approval_settings_persistence_state: ApprovalSettingsPersistenceModal§background_tasks_state: BackgroundTasksStateImplementations§
Source§impl AppState
impl AppState
pub fn get_helper_commands() -> Vec<HelperCommand>
pub fn new(options: AppStateOptions<'_>) -> Self
pub fn update_session_empty_status(&mut self)
Sourcepub fn poll_plan_file(&mut self) -> Option<(Option<PlanStatus>, PlanStatus)>
pub fn poll_plan_file(&mut self) -> Option<(Option<PlanStatus>, PlanStatus)>
Poll .stakpak/session/plan.md for changes and update cached metadata.
Called on each spinner tick (~100 ms) while plan mode is active.
Uses SHA-256 content hashing to avoid unnecessary re-parsing.
Returns Some((old_status, new_status)) when a status transition is detected.
pub fn input(&self) -> &str
pub fn cursor_position(&self) -> usize
pub fn set_input(&mut self, input: &str)
pub fn set_cursor_position(&mut self, pos: usize)
pub fn insert_char(&mut self, c: char)
pub fn insert_str(&mut self, s: &str)
pub fn clear_input(&mut self)
Sourcepub fn is_input_blocked(&self) -> bool
pub fn is_input_blocked(&self) -> bool
Check if user input should be blocked (during profile switch)
pub fn run_shell_command( &mut self, command: String, input_tx: &Sender<InputEvent>, )
pub fn poll_file_search_results(&mut self)
pub fn auto_show_side_panel(&mut self)
Auto Trait Implementations§
impl !Freeze for AppState
impl !RefUnwindSafe for AppState
impl !Sync for AppState
impl !UnwindSafe for AppState
impl Send for AppState
impl Unpin for AppState
impl UnsafeUnpin for AppState
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request