pub(crate) async fn ask_then_click(
state: &AppState,
block_id: &str,
agent: &str,
route: &str,
ask: &Value,
approved_body: Value,
log: impl Fn() -> Note,
) -> ResponseExpand description
The tail of a committing click that wasn’t let through: ask the person about
ask, then make the click the same way once they approve (approved_body,
sent to the host’s route, carries what they were shown). Used by act and
by Enter and Space taken as a click.
If the person hasn’t answered within the grace, the call returns “waiting” with the request’s id and
the agent ends its turn (super::browser_waiting); a task of srv’s makes the click on their approval
and tells the agent how it went.