Skip to main content

raise_approval

Function raise_approval 

Source
pub(crate) fn raise_approval(
    state: &AppState,
    block_id: &str,
    agent: &str,
    ask: &Value,
) -> Result<(Raised, Asked), ClickRefused>
Expand description

Put the approval of the committing click ask describes up in its pane’s banner (spec §5.4) without waiting for the answer. The summary is shown, not the fingerprint of everything the click sends (hidden controls included): that stays in ask, for the host’s check before the approved click.