Skip to main content

Module app

Module app 

Source

Structs§

App
BlockCache
Cached rendered lines for a block. Stores a version counter so the cache is only recomputed when the block content actually changes.
ChatMessage
ChatViewport
Single owner of all chat layout state: scroll, per-message heights, and prefix sums.
FocusManager
Focus claim manager: latest valid claim wins; invalid claims are dropped during normalization.
IncrementalMarkdown
Paragraph-level incremental markdown cache.
InlinePermission
Permission state stored inline on a ToolCallInfo, so the permission controls render inside the tool call block (unified edit/permission UX).
InputState
LoginHint
Login hint displayed when authentication is required during connection. Rendered as a banner above the input field.
ModeInfo
ModeState
SelectionPoint
SelectionState
TodoItem
A single todo item from Claude’s TodoWrite tool call.
ToolCallInfo
WelcomeBlock

Enums§

AppStatus
FocusOwner
Effective owner of directional/navigation keys.
FocusTarget
Logical focus target that can claim directional key navigation.
HelpView
MessageBlock
Ordered content block - text and tool calls interleaved as they arrive.
MessageRole
SelectionKind
TodoStatus

Functions§

create_app
Create the App struct in Connecting state. No I/O - returns immediately.
handle_acp_event
handle_terminal_event
run_tui
start_connection
Spawn the background connection task. Uses spawn_local so it runs on the same LocalSet as the TUI - Rc<Connection> stays on one thread.
start_update_check