Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

docs(grid): document own-login in onRetargetAgent's docblock

Dev jacob90d0b9e9f864
diff --git a/cli/src/backendSocket.ts b/cli/src/backendSocket.ts
index 8550f49a4..20700c861 100644
--- a/cli/src/backendSocket.ts
+++ b/cli/src/backendSocket.ts
@@ -304,7 +304,8 @@ export class BackendSocket {
}) =>
Promise<{ ok: true; session: RegisteredSession } | { ok: false; error: string; detail?: string }>) | null = null
/**
- * Called on `agent_retarget` — cli.ts re-execs an EXISTING agent's pane against a different grid.
+ * Called on `agent_retarget` — cli.ts re-execs an EXISTING agent's pane against a different grid,
+ * or, when `grid` is null, back onto its own login.
*
* Separate from `onCreateAgent` because it is a different promise: the pane, its id and its
* scrollback survive, and only the process is replaced. A running process's environment cannot be