claux 20260416.0.1

Terminal AI coding assistant with tool execution
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Screen abstraction for the TUI.
//!
//! Each screen is a self-contained unit with its own state, drawing, and key handling.
//! Screens return an action that the top-level loop uses to decide what to do next.

/// Action returned by any screen to the top-level loop.
#[derive(Debug)]
pub enum Action {
    /// Switch to the chat screen with the given session ID
    Chat { session_id: String },
    /// Return to the home screen
    Home,
    /// Quit the application
    Quit,
}