Skip to main content

Module moves

Module moves 

Source
Expand description

“Move these agents to another signed-in account” (docs/specs/SPEC_UNRESPONSIVE_AGENTS_2026_10_23.md §6.3): agent.account.switch (switch::switch_to) for each agent of the episode, so an agent in a turn is queued.

Structs§

AccountMoveFailure
A pane whose agent couldn’t be moved, and why.
IdentityAccountMoveAgentsReq
identity.account.move_agents: move these panes’ agents from one account to another of the same provider.
IdentityAccountMoveAgentsResult
identity.account.move_agents: what moved, what was left because it is in a turn, and what failed.

Functions§

busy 🔒
Whether the pane is in a turn: it isn’t moved under it.
can_receive 🔒
Whether a queued move may still land on the account: what the strip offered (signed in, or not checked yet), so a move it reported as queued isn’t dropped when the turn ends.
candidates 🔒
Where from’s agents can go (spec §6.3): the channel’s other accounts of the same canonical provider that nothing blocks (account_blocks: signed out, or a pane on it out of quota). Signed-in ones first, so the picker’s first entry is the one to preselect (spec §13, decision 2).
move_agents 🔒
identity.account.move_agents. BLOCKING (store reads, link writes, restarts).
relink 🔒
Link agent_id to to for provider: unlink its rows stored under an alias of the provider first (one would otherwise silently win at the next spawn), then link, then clear the failures its old account caused. Returns the panes among them whose turn failed on the login: they are told they are signed in once restarted on to, not here (super::resume::start).
restart 🔒
Restart block’s process on the new link, keeping its conversation (ControllerResync with forcerestart). A parked block, one in no tab, restarts with no tab (an empty id, as everywhere a block is parked): its agent runs with no pane showing it.
signed_in 🔒