Expand description
A question srv asks the person in the pane it is about, as a modal that covers only that pane (docs/specs/SPEC_AGENT_SPAWN_NOTICE_IN_THE_PANE_2026_11_08.md §6 rows 3 and 6): add a host to the ssh config, remove or install AgentMux’s helper, end a durable session, run a system tool’s install command. Each is the confirmation of the person’s own click in a pane (Remotes, Toolchain, a terminal), so the question belongs to that pane. It used to open an approval window over the whole AgentMux window.
Unlike an agent’s notice (agent_notice), nothing goes ahead by itself: only
an answered yes does. No answer in ASK_FOR, a closed pane, or no window
connected all leave the thing undone.
The person’s answer comes only through pane.confirm.decide, accepted only
from the proven AgentMux window (operator_only), and the modal is drawn
where an agent’s UI tool can neither read nor press it. So an agent that
calls one of these commands with srv’s key still can’t answer its own
question, which is what the approval window was for.
Structs§
- Answer
- The person’s answer.
answeredis false when the time ran out, the pane was closed, or the caller went away. - Command
Pane Confirm Decide Data - Data for
pane.confirm.decide: the question’sid(frompane:confirm). - Ending 🔒
- Entry 🔒
- Pane
Confirm Decide Result - How the answer came out:
too_latewhen srv had stopped waiting. - Pane
Confirm View - A question as the pane draws it:
pending, or its end (cleared). - Question
- What the person is asked. Built by srv from its own record, never from an agent’s words.
Constants§
- ASK_FOR
- How long the person has to answer.
- COMMAND_
PANE_ CONFIRM_ DECIDE - The person’s answer to a question.
- EVENT_
PANE_ CONFIRM - KEEP_
FINISHED_ 🔒MS - A settled question stays answerable (as “too late”) this long.
- REPLAY_
EVENTS 🔒 - How many events are kept for a window that opens while a question waits.
Statics§
- ENTRIES 🔒
Functions§
- ask
- Ask
questionin paneblock_idand wait for the person’s answer.Errwhen there is no window connected to ask in: whatever needed the answer must not happen, nor wait. - ask_for
askthat waitswindowfor the answer.- decide
- The person’s answer to question
id. - entries 🔒
- pending
- The questions still waiting.
- register
pane.confirm.decide, accepted only from the proven AgentMux window (operator_only), never from an agent: the answer is the person’s own.- settle 🔒
- End question
idwith the person’s answer if they gave one, else unanswered. After this it answers “too late”.