codetether_agent/tui/app/autochat/state.rs
1//! Autochat state fields for AppState.
2
3use tokio::sync::mpsc::UnboundedReceiver;
4
5use super::events::AutochatUiEvent;
6
7/// Autochat state attached to AppState.
8pub struct AutochatState {
9 /// Whether the autochat relay is currently running.
10 pub running: bool,
11 /// Channel receiving events from the relay worker.
12 pub rx: Option<UnboundedReceiver<AutochatUiEvent>>,
13}
14
15impl Default for AutochatState {
16 fn default() -> Self {
17 Self {
18 running: false,
19 rx: None,
20 }
21 }
22}