pub enum Action {
Show 27 variants
Event(Box<EventEnvelope>),
SnapshotLoaded(Box<SessionSnapshot>),
SnapshotLoadFailed(String),
Reconnected,
Resize {
width: u16,
height: u16,
},
SetEditor(String),
AddAttachment(ComposerAttachment),
RemoveAttachment {
index: usize,
},
ClearAttachments,
ShowPendingUserPrompt(String),
StartRunActivity,
AdvanceRunElapsed(u64),
FinishRunActivity,
SetPendingReasoningEffort(Option<ReasoningEffort>),
ScrollTranscriptUp {
rows: usize,
},
ScrollTranscriptDown {
rows: usize,
},
FollowTranscriptTail,
SelectApproval(ApprovalChoice),
SetApprovalSubmitting(bool),
ToggleThinking,
ToggleTool(ToolCallId),
ToggleAllTools,
QueueSteering(String),
QueueFollowUp(String),
SetOverlay(Option<Overlay>),
Notify(String),
SetMcpHealth(Vec<String>),
}Expand description
Typed inputs reduced into TuiState.
Variants§
Event(Box<EventEnvelope>)
One ordered canonical runtime event.
SnapshotLoaded(Box<SessionSnapshot>)
A fresh canonical snapshot returned by an effect.
SnapshotLoadFailed(String)
A snapshot query failed with a safe diagnostic.
Reconnected
The subscriber reconnected and requires authoritative rebuild.
Resize
Terminal dimensions changed.
SetEditor(String)
Replace local editor contents.
AddAttachment(ComposerAttachment)
Add one validated image to the active session composer.
RemoveAttachment
Remove one image by its one-based composer index.
ClearAttachments
Remove every image from the active session composer.
ShowPendingUserPrompt(String)
Show an accepted prompt until its canonical user message is durable.
StartRunActivity
Begin the local activity projection once a prompt is accepted by the service.
AdvanceRunElapsed(u64)
Advance the active-run elapsed counter by one or more whole seconds.
FinishRunActivity
Stop local activity without discarding its measured elapsed time.
SetPendingReasoningEffort(Option<ReasoningEffort>)
Replace the queued next-turn reasoning selection.
ScrollTranscriptUp
Browse older transcript content without changing canonical state.
ScrollTranscriptDown
Browse newer transcript content without changing canonical state.
FollowTranscriptTail
Return the transcript to the live tail and clear unread state.
SelectApproval(ApprovalChoice)
Select one supported resolution for the pending approval.
SetApprovalSubmitting(bool)
Mark whether an approval command has been accepted by the service.
ToggleThinking
Toggle all reasoning blocks.
ToggleTool(ToolCallId)
Toggle one tool’s detail view.
ToggleAllTools
Toggle every currently visible tool detail.
QueueSteering(String)
Project one queued steering message.
QueueFollowUp(String)
Project one queued follow-up message.
SetOverlay(Option<Overlay>)
Replace the active local interaction overlay.
Notify(String)
Add one bounded local notification.
SetMcpHealth(Vec<String>)
Replace safe MCP lifecycle rows from a host projection.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more