pub struct TmuxSupervisor;Expand description
Portable supervisor: one detached tmux session per agent.
Trait Implementations§
Source§impl Supervisor for TmuxSupervisor
impl Supervisor for TmuxSupervisor
Source§fn drain(&self, spec: &AgentSpec, timeout: Duration) -> Result<DrainOutcome>
fn drain(&self, spec: &AgentSpec, timeout: Duration) -> Result<DrainOutcome>
Send Ctrl-C to the pane (kernel delivers SIGINT to the
foreground process), then poll for Stopped up to timeout.
Falls through to kill-session if the agent doesn’t exit in
time. Used by reload so in-flight tool calls and partial
assistant responses get a chance to flush instead of being
SIGKILL’d by the prior down().
fn up(&self, spec: &AgentSpec) -> Result<()>
fn down(&self, spec: &AgentSpec) -> Result<()>
fn state(&self, spec: &AgentSpec) -> Result<AgentState>
Source§fn drain_poll_interval(&self) -> Duration
fn drain_poll_interval(&self) -> Duration
Cadence at which
drain polls for Stopped after the
graceful-stop signal is sent. Default 250ms — fine on every
host we’ve tested. The hook exists so tests can inject a
shorter cadence (no real-time waits) without going through
the OS, and so a future slow-tmux host has an escape valve
without forking the orchestration.Auto Trait Implementations§
impl Freeze for TmuxSupervisor
impl RefUnwindSafe for TmuxSupervisor
impl Send for TmuxSupervisor
impl Sync for TmuxSupervisor
impl Unpin for TmuxSupervisor
impl UnsafeUnpin for TmuxSupervisor
impl UnwindSafe for TmuxSupervisor
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