Expand description
TUI application state — the central AppState struct and its methods.
Methods are split into focused submodules by concern:
agent_profile— spawned agent types and profile lookupprofile_defs— named profile constantsslash_commands—/commandconstant tableinput_cursor— cursor movement and text editingslash_suggest— slash autocomplete suggestion methodsscroll— chat scroll sentinel scheme and tool-preview scrollsession_nav— session list filtering and selectionworker_bridge— A2A worker connection statehistory— command history ↑/↓ navigationmodel_picker— async model refresh from providersmodel_picker_nav— synchronous model picker navigationtiming— request latency trackingsteering— queued steering messagessettings_nav— settings selection and view-mode switchingmessage_cache— render-line cache for performance
Re-exports§
pub use agent_profile::SpawnedAgent;pub use agent_profile::agent_profile;pub use profile_defs::AgentProfile;pub use slash_commands::SLASH_COMMANDS;pub use crate::session::SessionEvent;
Modules§
- agent_
profile - Agent identity profile lookup.
- default_
impl - Default implementation for
AppState. - history
- Command history navigation (↑/↓ recall).
- input_
cursor - Input cursor movement methods.
- input_
edit - Input text editing methods (insert, delete, clear).
- message_
cache - Message line cache for render performance.
- model_
picker - Async model list refresh from the provider registry.
- model_
picker_ nav - Synchronous model picker navigation and filter methods.
- profile_
defs - Named agent profiles for swarm/spawn identity.
- scroll
- Chat and tool-preview scroll methods.
- session_
nav - Session list navigation and filtering methods.
- settings_
nav - Settings UI navigation methods.
- slash_
commands - Slash command constants used for autocomplete suggestions.
- slash_
suggest - Slash autocomplete suggestion methods.
- steering
- Steering queue methods.
- timing
- Request timing / latency tracking methods.
- worker_
bridge - Worker bridge state operations.