You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 56f7b2e
Browse filesBrowse the repository at this point in the historyBrowse files
|`sessions`| Patch visible session settings and manage the global session-group catalog|
16
+
|`sessions`| Patch, reset, or delete visible sessions and manage session groups |
17
17
|`sessions_list`| List sessions with optional filters (kind, label, agent, archive, preview) |
18
18
|`sessions_search`| Search visible session transcripts and return matching excerpts |
19
19
|`sessions_history`| Read the transcript of a specific session |
@@ -58,11 +58,15 @@ Use [`sessions_search`](/concepts/session-search) for exact full-text recall acr
58
58
59
59
## Managing session settings and groups
60
60
61
-
The owner-gated `sessions` tool exposes two bounded self-service surfaces:
61
+
The owner-gated `sessions` tool exposes bounded self-service surfaces:
62
62
63
-
-`action: "patch"` changes the current session by default, or another visible session selected by `sessionKey`. It can set the label, sidebar icon, pin/archive state, model, and thinking level. It does not expose reset, delete, or compact actions.
63
+
-`action: "patch"` changes the current session by default, or another visible session selected by `sessionKey`. It can set the label, sidebar icon, pin/archive state, model, and thinking level.
64
+
-`action: "reset"` resets another visible session selected by `sessionKey`.
65
+
-`action: "delete"` first archives and then deletes the exact same generation of another visible session selected by `sessionKey`. By default its transcript is retained as a deleted archive; pass `deleteTranscript: false` to leave the transcript state untouched. Resetting or deleting the session currently running the tool is rejected.
64
66
-`group_list`, `group_set`, `group_rename`, and `group_delete` manage the global ordered session-group catalog. `group_set` replaces the ordered name list rather than patching one entry.
65
67
68
+
Use `sessions_spawn` with `visible: true` to create a persistent dashboard session. This keeps session creation on the controlled spawn path, which enforces the parent's tool policy, sandbox, concurrency limits, and run timeout.
69
+
66
70
An agent-selected model patch stays reversible until that selection completes a successful run. If the selected model is definitively unusable because of authentication, billing, or model-not-found failure, OpenClaw restores the previous model and writes a visible system note. Transient rate-limit, overload, timeout, network, and server failures do not undo the selection.
67
71
68
72
## Sessions versus conversations
@@ -120,6 +124,7 @@ Key options:
120
124
121
125
-`runtime: "subagent"` (default) or `"acp"` for external harness agents.
122
126
-`model` and `thinking` overrides for the child session.
127
+
-`runTimeoutSeconds` to override the configured child-run timeout; `0` disables it.
123
128
-`thread: true` to bind the spawn to a chat thread (Discord, Slack, etc.).
124
129
-`sandbox: "require"` to enforce sandboxing on the child.
125
130
-`context: "fork"` for native sub-agents when the child needs the current requester transcript; omit it or use `context: "isolated"` for a clean child. `context: "fork"` is only valid with `runtime: "subagent"`. Thread-bound native sub-agents default to `context: "fork"` unless `threadBindings.defaultSpawnContext` says otherwise.
Copy file name to clipboardExpand all lines: docs/tools/subagents.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -147,7 +147,7 @@ session to confirm the effective tool list.
147
147
148
148
-**Model:** native sub-agents inherit the caller unless you set `agents.defaults.subagents.model` (or per-agent `agents.entries.*.subagents.model`). ACP runtime spawns use the same configured subagent model when present; otherwise the ACP harness keeps its own default. An explicit `sessions_spawn.model` still wins.
149
149
-**Thinking:** native sub-agents inherit the caller unless you set `agents.defaults.subagents.thinking` (or per-agent `agents.entries.*.subagents.thinking`). ACP runtime spawns also apply `agents.defaults.models["provider/model"].params.thinking` for the selected model. An explicit `sessions_spawn.thinking` still wins.
150
-
-**Run timeout:** OpenClaw uses `agents.defaults.subagents.runTimeoutSeconds`when set; otherwise it falls back to `0` (no timeout). `sessions_spawn` does not accept per-call timeout overrides.
150
+
-**Run timeout:**pass `runTimeoutSeconds` to set a timeout for a specific native, ACP, or visible sub-agent run. When omitted, OpenClaw uses `agents.defaults.subagents.runTimeoutSeconds`if configured; otherwise it falls back to `0` (no timeout). An explicit `0` disables the timeout for that run.
151
151
-**Process lifetime:** a detached OpenClaw sub-agent has its own run lifecycle. A background task created inside an external CLI backend is different: it shares the parent CLI subprocess and stops if that parent reaches `agents.defaults.timeoutSeconds`.
152
152
-**Task delivery:** native sub-agents receive the delegated task in their first visible `[Subagent Task]` message. The sub-agent system prompt carries runtime rules and routing context, not a hidden duplicate of the task.
Override the configured run timeout for this child. Must be a non-negative integer; `0` disables the timeout. Applies to native, ACP, and visible sessions.
217
+
</ParamField>
215
218
<ParamFieldpath="thinking"type="string">
216
219
Override thinking level for the sub-agent run. Not available with `visible: true`.
0 commit comments