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 “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 🔒 openofagentfor the agentwho(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 likeAgents 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).