Skip to main content

Module agent_open_remote

Module agent_open_remote 

Source
Expand description

agents.open for an agent on another machine (remote_ops::agent_ops, spec §4.3): it opens the named agent into a tab of its own for the caller, “Team (slug@machine)”, made the first time and reused after, the way a leader’s workers open in “ team” (agent_spawn::team). The tab is made and the agent opened without focus, so the person’s view stays where it is: nothing is brought forward and no tab but this one changes. With no window open the tab goes in a workspace of its own, and the agent runs there until a window shows it.

Statics§

TAB_LOCK 🔒
One caller’s find-or-make of its tab at a time, so two opens together make one tab.

Functions§

callers_tab 🔒
The caller’s tab, made (not shown) if it isn’t there yet: its id and name.
open_status 🔒
The status for agent.open’s own error vocabulary (the HTTP route’s, http_open), plus a live instance elsewhere, which is a conflict.
run_remote 🔒
open of agent for the agent who (slug@machine) on another machine. Opening an agent that already runs is not a start, so it does not use the sender’s minute; one that has to start counts against the sender’s start limit like Agents start.
tab_name 🔒
The tab who’s agents open in.
workspace_for_new_tab 🔒
The workspace a new tab goes in: a window’s, the main one first, else any that has tabs, else a workspace made for it (no window is opened onto it).