pub enum UiEvent {
Show 15 variants
AgentTurnStarted,
AgentThinking,
AgentTextDelta(String),
AgentMessageComplete(String),
ToolCallStarted {
id: String,
name: String,
args: Value,
},
ToolCallProgress {
id: String,
chunk: ProgressChunk,
},
ToolCallCompleted {
id: String,
result: UiToolResult,
},
AgentTurnComplete,
PermissionRequested {
tool: String,
args: Value,
resolver: Sender<Decision>,
},
InlineBashOutput {
command: String,
output: String,
},
SessionReplaced(Vec<Message>),
ModelSwitched(ModelId),
ForkCandidates(Vec<(String, String)>),
BranchTree(BranchTree),
Error(String),
}Variants§
AgentTurnStarted
AgentThinking
AgentTextDelta(String)
AgentMessageComplete(String)
ToolCallStarted
ToolCallProgress
ToolCallCompleted
AgentTurnComplete
PermissionRequested
InlineBashOutput
Output of a !!cmd inline-bash run, for transcript display.
SessionReplaced(Vec<Message>)
The session was replaced (/new cleared it, or /resume loaded a
stored one). Carries the new transcript so the TUI can rebuild
state.messages. Empty Vec = a fresh session.
ModelSwitched(ModelId)
The active model changed successfully.
ForkCandidates(Vec<(String, String)>)
Refreshed /fork candidate list (active-branch user messages,
newest first) — (EntryId, preview) pairs. The binary emits this
at startup and after every turn so the picker is never stale.
BranchTree(BranchTree)
Refreshed session branch tree — the binary emits this at startup
and after every turn so the /tree view is never stale.
Error(String)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UiEvent
impl !RefUnwindSafe for UiEvent
impl Send for UiEvent
impl Sync for UiEvent
impl Unpin for UiEvent
impl UnsafeUnpin for UiEvent
impl !UnwindSafe for UiEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more