Structs§
- App
- Block
Cache - Cached rendered lines for a block. Stores a version counter so the cache is only recomputed when the block content actually changes.
- Chat
Message - Chat
Viewport - Single owner of all chat layout state: scroll, per-message heights, and prefix sums.
- Focus
Manager - Focus claim manager: latest valid claim wins; invalid claims are dropped during normalization.
- Incremental
Markdown - Paragraph-level incremental markdown cache.
- Inline
Permission - Permission state stored inline on a
ToolCallInfo, so the permission controls render inside the tool call block (unified edit/permission UX). - Input
State - Login
Hint - Login hint displayed when authentication is required during connection. Rendered as a banner above the input field.
- Mode
Info - Mode
State - Selection
Point - Selection
State - Todo
Item - A single todo item from Claude’s
TodoWritetool call. - Tool
Call Info - Welcome
Block
Enums§
- AppStatus
- Focus
Owner - Effective owner of directional/navigation keys.
- Focus
Target - Logical focus target that can claim directional key navigation.
- Help
View - Message
Block - Ordered content block - text and tool calls interleaved as they arrive.
- Message
Role - Selection
Kind - Todo
Status
Functions§
- create_
app - Create the
Appstruct inConnectingstate. No I/O - returns immediately. - handle_
acp_ event - handle_
terminal_ event - run_tui
- start_
connection - Spawn the background connection task. Uses
spawn_localso it runs on the sameLocalSetas the TUI -Rc<Connection>stays on one thread. - start_
update_ check