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 2900026
Browse filesBrowse the repository at this point in the historyBrowse files
authored
fix: stop selected channel sessions from WebChat (#111108)
* fix: stop selected channel sessions from WebChat
* fix: clear channel working state after stop
* fix: cancel queued turns before session abort
* fix: replay pending stops after reconnect
* fix: align stop lifecycle test fixtures
* fix(ui): bind pending aborts to gateway client
* test(ui): keep chat pane specs within line limit
* chore(ios): refresh native i18n inventory
* chore: retrigger PR checks
* fix(system-agent): avoid blocking TUI catalog discovery
* fix: preserve session abort ownership
* test: align abort coverage with current main
* test: assert scoped session abort broadcast
* fix(agent-runs): expose SDK runtime abort state
* fix(ui): clear queued main-session stops by scope
* fix(ui): replay only exact run aborts
* fix(gateway): protect session abort cleanup
* fix(ui): narrow session abort intent
* test(ui): avoid unbound request assertions
---------
Co-authored-by: scotthuang <[email protected]>
Co-authored-by: Patrick Erichsen <[email protected]>
Copy file name to clipboardExpand all lines: docs/gateway/protocol.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -577,7 +577,7 @@ methods. Treat this as feature discovery, not a full enumeration of
577
577
- `sessions.groups.list`, `sessions.groups.put`, `sessions.groups.rename`, and `sessions.groups.delete` manage the gateway-owned custom session group catalog (names + display order). Membership stays on each session's `category` field; rename and delete update member sessions server-side.
578
578
- `sessions.send` sends a message into an existing session.
579
579
- `sessions.steer` is the interrupt-and-steer variant for an active session.
580
-
- `sessions.abort` aborts active work for a session. Pass `key` plus optional `runId`, or `runId` alone for active runs the gateway can resolve to a session.
580
+
- `sessions.abort` aborts active work for a session. Pass `key` plus optional `runId`, or `runId` alone for active runs the gateway can resolve to a session. Supplying `runId` keeps cancellation scoped to that run. Set `clearQueued: true` on a key-only non-global request to also discard followup and lane queues owned by that session. Existing callers that omit `clearQueued` preserve those queues. The literal `global` key keeps the existing agent-qualified `chat.abort` ownership rules and does not perform non-global followup or lane cleanup.
581
581
- `sessions.patch` updates session metadata/overrides and reports the resolved canonical model plus effective `agentRuntime`. Spawn lineage (`spawnedBy`, `spawnedWorkspaceDir`, `spawnedCwd`, `spawnDepth`, `subagentRole`, `subagentControlScope`) is no longer publicly patchable; those facts are written once by trusted creation paths, and requests that still send them are rejected.
582
582
- `sessions.reset`, `sessions.delete`, and `sessions.compact` perform session maintenance.
583
583
- `sessions.get` returns the full stored session row.
Copy file name to clipboardExpand all lines: docs/web/control-ui.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
@@ -460,11 +460,11 @@ The macOS app keeps its native link-browser sidebar for links clicked in the das
460
460
461
461
</Accordion>
462
462
<Accordiontitle="Stop and abort">
463
-
- Click **Stop** (calls `chat.abort`).
463
+
- Click **Stop**. Runs with an exact local run ID call `chat.abort`; when selected-session state reports active work but the Control UI has no local run ID, it calls `sessions.abort` instead. For non-global sessions, that selected-session path also discards queued follow-ups so they cannot restart work after the stop.
464
464
- While a run is active, normal follow-ups use the Gateway's effective `messages.queue` mode. `steer` injects into the running turn; other modes keep the browser's durable queued delivery. Steering rejection also falls back to that queue. Click **Steer** on a queued message to inject it manually.
465
465
- **Settings → Appearance → Chat → Follow-ups while the agent is working** can override that server default for the current browser. The page marks an override explicitly and offers **Reset to server default**. `Steer into the active run` sends follow-ups immediately, while `Queue until the run ends` holds them until the run finishes.
466
466
- Type `/stop` (or standalone abort phrases like `stop`, `stop action`, `stop run`, `stop openclaw`, `please stop`) to abort out-of-band.
467
-
- `chat.abort` supports `{ sessionKey }` (no `runId`) to abort all active runs for that session.
467
+
- `chat.abort` supports `{ sessionKey }` (no `runId`) to abort all active runs for that session. The Control UI uses `sessions.abort` when it has no local run ID.
468
468
469
469
</Accordion>
470
470
<Accordiontitle="Abort partial retention">
@@ -484,7 +484,8 @@ realtime/session actions pause until the connection returns; **Retry now** in th
484
484
immediate attempt. Chat remains editable: ordinary text and attachment sends are kept in the
485
485
current tab's gateway/session-scoped browser storage, shown as waiting for reconnect, and sent
486
486
automatically when the Gateway returns. Live controls and slash commands remain unavailable while
487
-
offline.
487
+
offline, except that **Stop** can queue an exact local run ID for replay. A session-only stop
488
+
is not replayed because newer work may start in that session before the connection returns.
488
489
489
490
When this browser already holds credentials (a configured token/password or an approved device
490
491
token), first opens and reloads show a small animated OpenClaw mark while the connection is
0 commit comments