pub struct QuitSelfRequest {
pub auth: UiAutomationAuth,
pub reason: String,
pub user_instruction: String,
}Expand description
POST /api/v1/agent/pane/close — backs the ClosePane MCP tool.
See docs/specs/SPEC_AGENT_PANE_LIFECYCLE_CONTROL_2026_09_10.md.
auth is reused unchanged from UiAutomationAuth (the same signed
per-agent identity verified_block_id already checks for UI automation)
— it is what resolves the caller’s OWN pane when block_id is omitted,
and what supplies a verified source_agent for the audit log when
block_id targets another agent’s pane (§5.2 of that spec).
QuitSelf — an agent ends its own session on the user’s direct
instruction (docs/specs/SPEC_AGENT_SELF_QUIT_2026_09_24.md §6). There is
no target field: the caller’s own block, from auth, is the only one it
can name.
Fields§
§auth: UiAutomationAuth§reason: StringOne line: why. Shown to the user and audited.
user_instruction: StringThe user’s own words telling the agent to quit, verbatim. Checked against the message that started the current turn (§6.3).
Trait Implementations§
Source§impl Clone for QuitSelfRequest
impl Clone for QuitSelfRequest
Source§fn clone(&self) -> QuitSelfRequest
fn clone(&self) -> QuitSelfRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more