Expand description
Whose pane a window command acts on, for a connection registered as an agent.
An agent acts as itself: on its own pane (or a sub-block of it) a window command runs, and the action record names the agent. It does not act as the person, and it does not act as another agent: a pane another agent runs, or one no agent runs (the person’s terminal), is refused with what to do instead. A connection that is not registered as an agent (the window, or one nothing proved) is not affected.
Functions§
- agent_
acts_ 🔒on_ own_ pane - Whether the connection
ctxmaydoingonblock_id: always, unless it is registered as an agent and the pane is not the one that agent runs.Erris the refusal, saying what the agent can do instead. - agent_
deletes_ 🔒own_ sub_ block - Whether the connection
ctxmay delete the blockblock_idas a sub-block: always, unless it is registered as an agent and the block is not a sub-block of the pane that agent runs. The pane itself is not a sub-block of anything, so an agent never deletes its own pane this way. - agent_
writes_ 🔒meta_ of - Whether the connection
ctxmay write the meta oforef(block:<id>,tab:<id>, …): always, unless it is registered as an agent. An agent writes the meta of its own pane; a tab, window, workspace or any other object holds the person’s layout, names and settings, so it is refused with what to do instead. - pane_
agent 🔒 - The slug of the agent that runs
block_id: the agent on the pane, or on the pane a sub-block hangs from.