pub struct PtyShellStopRequest {
pub shell_id: String,
pub agent_block_id: String,
}Expand description
POST /api/v1/ptyshell/stop — release the agent’s lock on the shell
now, without waiting for AGENT_LOCK_WINDOW_MS to lapse.
Does not kill the process or delete the block. The shell this API
drives is, by default, the same one a human’s composer-drawer session
uses (see META_KEY_SHELL_SUBBLOCK_ID) — it’s a shared, pane-scoped
resource with the pane’s own lifetime (“only killed when the pane
closes,” AgentShellSubblock.tsx’s own doc comment), not a private,
disposable one this tool owns outright. An earlier version of this API
(PR #3177) did delete on stop, which was correct for that version’s
model (an agent’s own throwaway shell) but would destroy a human’s live
terminal session under this one.
Fields§
§shell_id: String§agent_block_id: StringTrait Implementations§
Source§impl Clone for PtyShellStopRequest
impl Clone for PtyShellStopRequest
Source§fn clone(&self) -> PtyShellStopRequest
fn clone(&self) -> PtyShellStopRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PtyShellStopRequest
impl Debug for PtyShellStopRequest
Source§impl<'de> Deserialize<'de> for PtyShellStopRequest
impl<'de> Deserialize<'de> for PtyShellStopRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PtyShellStopRequest
impl RefUnwindSafe for PtyShellStopRequest
impl Send for PtyShellStopRequest
impl Sync for PtyShellStopRequest
impl Unpin for PtyShellStopRequest
impl UnsafeUnpin for PtyShellStopRequest
impl UnwindSafe for PtyShellStopRequest
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