Skip to main content

Module state

Module state 

Source
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 lookup
  • profile_defs — named profile constants
  • slash_commands/command constant table
  • input_cursor — cursor movement and text editing
  • slash_suggest — slash autocomplete suggestion methods
  • scroll — chat scroll sentinel scheme and tool-preview scroll
  • session_nav — session list filtering and selection
  • worker_bridge — A2A worker connection state
  • history — command history ↑/↓ navigation
  • model_picker — async model refresh from providers
  • model_picker_nav — synchronous model picker navigation
  • timing — request latency tracking
  • steering — queued steering messages
  • settings_nav — settings selection and view-mode switching
  • message_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.

Structs§

App
AppState