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
Copy file name to clipboardExpand all lines: docs/gateway/protocol.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -445,6 +445,7 @@ enumeration of `src/gateway/server-methods/*.ts`.
445
445
446
446
<Accordiontitle="Session control">
447
447
- `sessions.list` returns the current session index, including per-row `agentRuntime` metadata when an agent runtime backend is configured.
448
+
- `sessions.activity` returns active detached tasks and live tool executions for a session. Descendant session activity is included by default so parent-session views can show subagent work without polling every child session separately.
448
449
- `sessions.subscribe` and `sessions.unsubscribe` toggle session change event subscriptions for the current WS client.
449
450
- `sessions.messages.subscribe` and `sessions.messages.unsubscribe` toggle transcript/message event subscriptions for one session.
450
451
- `sessions.preview` returns bounded transcript previews for specific session keys.
@@ -511,9 +512,9 @@ enumeration of `src/gateway/server-methods/*.ts`.
511
512
events. In protocol v4, delta payloads carry `deltaText`; `message` remains
512
513
the cumulative assistant snapshot. Non-prefix replacements set `replace=true`
513
514
and use `deltaText` as the replacement text.
514
-
-`session.message`, `session.operation`, and `session.tool`: transcript,
515
-
in-flight session operation, and event-stream updates for a subscribed
516
-
session.
515
+
-`session.message`, `session.operation`, `session.tool`, and
516
+
`session.activity`: transcript, in-flight session operation, live tool
517
+
stream, and active task/tool activity updates for subscribed sessions.
517
518
-`sessions.changed`: session index or metadata changed.
Copy file name to clipboardExpand all lines: docs/plugins/sdk-overview.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -444,6 +444,8 @@ cover CLI and Gateway-backed install or update paths.
444
444
-`message_sending`: returning `{ cancel: false }` is treated as no decision (same as omitting `cancel`), not as an override.
445
445
-`message_received`: use the typed `threadId` field when you need inbound thread/topic routing. Keep `metadata` for channel-specific extras.
446
446
-`message_sending`: use typed `replyToId` / `threadId` routing fields before falling back to channel-specific `metadata`.
447
+
-`task_created`, `task_updated`, `task_finished`, and `task_deleted`: observe metadata-only Gateway task lifecycle changes without raw task payloads or transcript contents.
448
+
-`tool_started`, `tool_updated`, and `tool_finished`: observe metadata-only live tool activity without tool arguments or results.
447
449
-`gateway_start`: use `ctx.config`, `ctx.workspaceDir`, and `ctx.getCron?.()` for gateway-owned startup state instead of relying on internal `gateway:startup` hooks.
448
450
-`cron_changed`: observe gateway-owned cron lifecycle changes. Use `event.job?.state?.nextRunAtMs` and `ctx.getCron?.()` when syncing external wake schedulers, and keep OpenClaw as the source of truth for due checks and execution.
Copy file name to clipboardExpand all lines: docs/web/control-ui.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -134,7 +134,7 @@ Imported themes are stored only in the current browser profile. They are not wri
134
134
- Chat history refreshes request a bounded recent window with per-message text caps so large sessions do not force the browser to render a full transcript payload before the chat becomes usable.
135
135
- Talk through browser realtime sessions. OpenAI uses direct WebRTC, Google Live uses a constrained one-use browser token over WebSocket, and backend-only realtime voice plugins use the Gateway relay transport. Client-owned provider sessions start with `talk.client.create`; Gateway relay sessions start with `talk.session.create`. The relay keeps provider credentials on the Gateway while the browser streams microphone PCM through `talk.session.appendAudio`, forwards `openclaw_agent_consult` provider tool calls through `talk.client.toolCall` for Gateway policy and the larger configured OpenClaw model, and routes active-run voice steering through `talk.client.steer` or `talk.session.steer`.
136
136
- Stream tool calls + live tool output cards in Chat (agent events).
137
-
- Activity tab with browser-local, redaction-first summaries of live tool activity from existing `session.tool` / tool event delivery.
137
+
- Chat running-work strip for active background tasks and live tools, including descendant-session work (`sessions.activity`, `session.activity`, and `session.tool`).
The page redacts credential-bearing URL-like values before rendering and quotes server names in command snippets so copied commands still work with spaces or shell metacharacters. The full CLI and config reference lives in [MCP](/cli/mcp).
203
203
204
-
## Activity tab
204
+
## Activity tab and chat activity strip
205
205
206
-
The Activity tab is an ephemeral browser-local observer for live tool activity. It is derived from the same Gateway `session.tool` / tool event stream that powers Chat tool cards; it does not add another Gateway event family, endpoint, durable activity store, metrics feed, or external observer stream.
206
+
The Chat view shows a running-work strip for active session work. It loads the current snapshot with `sessions.activity`, refreshes from `session.activity` events, and still uses the same `session.tool` / tool event stream that powers Chat tool cards for detailed live tool rendering.
207
207
208
-
Activity entries keep only sanitized summaries and redacted, truncated output previews. Tool argument values are not stored in Activity state; the UI shows that arguments are hidden and records only the argument field count. The in-memory list follows the current browser tab, survives navigation within the Control UI, and resets on page reload, session switch, or **Clear**.
208
+
The Activity tab remains a redaction-first tool activity log. Activity entries keep only sanitized summaries and redacted, truncated output previews. Tool argument values are not stored in Activity state; the UI shows that arguments are hidden and records only the argument field count. Running detached tasks and live tools are session-scoped in the Chat strip, include descendant sessions by default, and clear from the list when the Gateway reports completion.
0 commit comments