Skip to main content

Module helper_consent

Module helper_consent 

Source
Expand description

Asking before AgentMux’s helper is installed on a host (SPEC_REMOTES_PANE_2026_10_05.md §4.9).

The helper is software put on someone’s machine, so nothing is uploaded until the user says so: in a modal over the pane that needs it (sagas::pane_confirm; with no pane, the approval window), which agents can neither read nor answer. conn:helper for the host, else the global conn:helper, says ask (the default), always or never. An install an agent’s pane sets off is always asked about, whatever the setting: letting an agent use a host is not letting it install software there.

The server installs the window and the settings (install) once srv is up; until then (and in tests) there is no one to ask, so nothing installs.

Structs§

AgentOpening
An agent’s pane.open on a host is in flight while this lives.
Answer
The user’s answer to the question.
Deps
What allow_install needs from the server.

Enums§

Need
What needs the helper on a host: it decides what an answer given earlier for the host (since srv started) means now.
Policy
What the settings say for a host.
Step
What to do before installing.

Functions§

allow_install
Whether the helper may be installed on connection now, for the pane block_id (None: no pane, which counts as an agent’s doing). Err says why not, for the pane to show.
begin_agent_open
Call before an agent’s pane.open on connection; hold the guard until the pane is noted (note_agent_pane).
forget_answers
The helper was removed from connection’s host: what was answered for it since srv started (Install, Not now, a failed try) no longer holds, and its next need asks again. A stored Always or Never is a setting, and stays.
install
Called once, when srv is up.
not_installed
Whether connection’s helper didn’t get installed for a terminal durable by default, since srv started.
note_agent_pane
block_id was opened by agent (a verified agent’s pane.open on a host).
note_not_installed
connection’s helper didn’t get installed for a terminal durable by default.
note_unsupported
connection’s host can’t run the helper (a Windows host, spec §6.4 of the remote-terminals spec): its durable panes run as plain SSH terminals.
outcome
What an answer does: install or not, and what to store for the host.
plain_instead
Whether a durable pane on connection runs as a plain SSH terminal instead, because the user doesn’t want the helper there (§4.9: “Not now, or Never: the pane falls back”): the host is set to Never, or the user answered “Not now” for it since srv started. Set to Always, never. Also a host the helper can’t run on (a Windows host), whatever the setting.
question
The question (§4.9).
step
Always installs and Never refuses without asking, for the user’s own panes only; an agent’s always asks.
unsupported_host
Whether connection’s host was found to be one the helper can’t run on.