pub struct AgentApp {
pub dashboard: Dashboard,
pub task_tree: TaskTree,
pub diff_viewer: DiffViewer,
pub review_modal: ReviewModal,
pub action_sender: Option<ActionSender>,
pub active_tab: ActiveTab,
pub pending_request_id: Option<String>,
pub review_state: NodeReviewState,
pub should_quit: bool,
pub paused: bool,
}Expand description
Agent app state
Fields§
§dashboard: DashboardDashboard component
task_tree: TaskTreeTask tree component
diff_viewer: DiffViewerDiff viewer component
review_modal: ReviewModalReview modal component
action_sender: Option<ActionSender>Sender for action feedback to orchestrator
active_tab: ActiveTabActive tab
pending_request_id: Option<String>Pending approval request ID
review_state: NodeReviewStatePSP-5 Phase 7: Aggregated review state for the active approval
should_quit: boolShould quit
paused: boolIs paused
Implementations§
Source§impl AgentApp
impl AgentApp
Sourcepub fn set_action_sender(&mut self, sender: ActionSender)
pub fn set_action_sender(&mut self, sender: ActionSender)
Set action sender
Sourcepub fn prepopulate_from_store(&mut self, session_id: &str)
pub fn prepopulate_from_store(&mut self, session_id: &str)
PSP-5 Phase 8: Prepopulate task tree from persisted node states.
Called before resuming so the TUI shows completed nodes immediately instead of waiting for orchestrator events (which skip terminal nodes).
Sourcepub fn run(&mut self, terminal: &mut DefaultTerminal) -> Result<()>
pub fn run(&mut self, terminal: &mut DefaultTerminal) -> Result<()>
Run the app main loop
Sourcepub fn handle_app_event(&mut self, event: AppEvent)
pub fn handle_app_event(&mut self, event: AppEvent)
Handle logical app events
pub fn handle_terminal_event(&mut self, event: Event) -> bool
pub fn render(&mut self, frame: &mut Frame<'_>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AgentApp
impl RefUnwindSafe for AgentApp
impl Send for AgentApp
impl Sync for AgentApp
impl Unpin for AgentApp
impl UnsafeUnpin for AgentApp
impl UnwindSafe for AgentApp
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> 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 more