pub struct LocalShellTaskState {Show 22 fields
pub id: String,
pub task_type: String,
pub status: TaskStatus,
pub description: String,
pub tool_use_id: Option<String>,
pub start_time: u64,
pub end_time: Option<u64>,
pub total_paused_ms: Option<u64>,
pub output_file: String,
pub output_offset: u64,
pub notified: bool,
pub type: String,
pub command: String,
pub result: Option<ShellCommandResult>,
pub completion_status_sent_in_attachment: bool,
pub shell_command: Option<Box<dyn ShellCommandTrait>>,
pub unregister_cleanup: Option<Box<dyn FnOnce()>>,
pub cleanup_timeout_id: Option<u64>,
pub last_reported_total_lines: usize,
pub is_backgrounded: Option<bool>,
pub agent_id: Option<AgentId>,
pub kind: Option<BashTaskKind>,
}Expand description
State for a local shell (bash) task. Extracted from LocalShellTask.tsx so non-React consumers (stopTask.ts via print.rs) don’t pull React/ink into the module graph.
Fields§
§id: String§task_type: String§status: TaskStatus§description: String§tool_use_id: Option<String>§start_time: u64§end_time: Option<u64>§total_paused_ms: Option<u64>§output_file: String§output_offset: u64§notified: bool§type: StringKeep as ‘local_bash’ for backward compatibility with persisted session state
command: String§result: Option<ShellCommandResult>§completion_status_sent_in_attachment: bool§shell_command: Option<Box<dyn ShellCommandTrait>>§unregister_cleanup: Option<Box<dyn FnOnce()>>§cleanup_timeout_id: Option<u64>§last_reported_total_lines: usizeTrack what we last reported for computing deltas (total lines from TaskOutput)
is_backgrounded: Option<bool>Whether the task has been backgrounded (false = foreground running, true = backgrounded)
agent_id: Option<AgentId>Agent that spawned this task. Used to kill orphaned bash tasks when the agent exits (see kill_shell_tasks_for_agent). None = main thread.
kind: Option<BashTaskKind>UI display variant. ‘monitor’ shows description instead of command, ‘Monitor details’ dialog title, distinct status bar pill.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LocalShellTaskState
impl !RefUnwindSafe for LocalShellTaskState
impl !Send for LocalShellTaskState
impl !Sync for LocalShellTaskState
impl Unpin for LocalShellTaskState
impl UnsafeUnpin for LocalShellTaskState
impl !UnwindSafe for LocalShellTaskState
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