Skip to main content

Module state

Module state 

Source

Structs§

ActiveToolBatch
Per-batch state for an active ToolBatchStarted. Tracks how many children have completed so the UI can emit the final · N/M ok summary on ToolBatchCompleted.
ContextSnapshot
Snapshot of the agent’s context budget, cached from AgentEvent::ContextStats and surfaced by the /context command.
QueuedMessage
One entry in message_queue. Replaces the prior String-only representation so queued messages can carry their pasted images + markers — otherwise queueing a message during streaming silently drops attachments.
UiState

Enums§

AgentMode
Plan vs Build execution mode. Plan is read-only exploration (no file writes, no shell commands); Build is full execution with all tools. Toggled by the Tab key (when the input buffer is empty) or the /plan and /build slash commands.
UiPhase

Constants§

DONE_LABELS
Rotating pool of turn-completion phrases — CC-vibe playful verbs.
THINKING_LABELS
Rotating pool of “thinking” labels — CC-style playful verbs. Advances once per turn so consecutive turns vary.