pub struct PendingApprovalRequest {
pub tool: String,
pub subject: Option<String>,
pub raw_args: Value,
pub reply_tx: Sender<ApprovalOutcome>,
}Expand description
One Ask-tier request from the TOP-LEVEL agent’s own permissions gate
(P5-1’s crate::permissions::PermissionsApprovalHandler::ask),
waiting on Self::reply_tx for the TUI’s decision. ask blocks the
calling thread on the paired Receiver until a reply arrives (or the
sending end is dropped — see crate::tui::handlers::TuiApprovalHandler’s
doc comment for why that’s still fail-closed).
Fields§
§tool: StringThe tool being called ("bash", "write_file", …).
subject: Option<String>The canonicalized command/path subject, if any.
raw_args: ValueThe raw, model-supplied arguments.
reply_tx: Sender<ApprovalOutcome>Where to send the user’s decision.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PendingApprovalRequest
impl RefUnwindSafe for PendingApprovalRequest
impl Send for PendingApprovalRequest
impl Sync for PendingApprovalRequest
impl Unpin for PendingApprovalRequest
impl UnsafeUnpin for PendingApprovalRequest
impl UnwindSafe for PendingApprovalRequest
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