last-agent
Copy pageSwitches to the pane you were in before your last jump from workrex dashboard or last-agent. Run it again to switch back, so it toggles between two panes.
This is a hidden command (not shown in --help), typically bound to a key.
History is scoped to the current Rex server. Use the dashboard to navigate to agents on a remote server.
workrex last-agentWhat happens
Section titled “What happens”- Reads the pane that workrex last recorded.
- If that pane no longer exists, prints
Last pane no longer existsand exits. - If you are already in that pane, prints
Already at last agentand exits. - Switches to the pane, then records the pane you came from, so the next run switches back.
If no earlier agent is recorded, it prints No previous agent to switch to.
Under Rex
Section titled “Under Rex”Under Rex, last-agent moves Rex.app to the target. It asks the Rex.app client that owns your pane, and it needs Remote Control, which you turn on in Rex Settings. Without it, last-agent prints Rex.app did not switch: Remote Control is off. Turn it on in Rex Settings. and then Failed to switch to last agent.
Related
Section titled “Related”last-doneto jump to the agent that finished most recently- Status tracking