fix(goal): make cancellation a user-only control (#6667)

This commit is contained in:
chengyongru authored and GitHub committed 2026-11-14 23:48:13 +08:00
1 parent c927808aff
commit 12a86eaa86
33 files changed
+641 -63

No files matched your search

+7 -1
View File
@@ -6,7 +6,9 @@ These commands work inside chat channels and interactive agent sessions:
|---------|-------------|
| `/new` | Stop current task and start a new conversation |
| `/compact` | Summarize the current conversation context while keeping saved chat history |
| `/stop` | Stop the current task |
| `/stop` | Stop the current task without cancelling its saved goal |
| `/goal <task>` | Start a sustained goal for this conversation |
| `/cancel_goal` | Cancel the active or blocked goal; also stop work on an active goal |
| `/restart` | Restart the bot |
| `/status` | Show bot status |
| `/model` | Show the current model and available model presets |
@@ -70,6 +72,10 @@ To switch presets for future turns:
Switching changes the model used for future replies in this conversation and keeps that choice for later turns, including after a restart. It does not change other conversations or interrupt a reply already in progress. To add or configure model choices, see [Configuration: Model presets](./configuration.md#model-presets).
## Goals
Only you can cancel a goal: use `/cancel_goal`, or expand the goal in WebUI and select **Cancel goal**. Cancelling an active goal also stops its work; cancelling a blocked goal leaves unrelated replies running. Chat history is kept. Asking the agent to stop can block the goal, but does not cancel it.
## Local triggers
Use `/trigger <name>` when a local script or another service should be able to send a message into the current chat/session later. A name is required; plain `/trigger` only shows the usage hint.
+1 -1
View File
@@ -40,7 +40,7 @@ Use the same `--config` and explicit `--workspace` selectors as your instance. I
- Keep the gateway running for chat apps, WebUI sessions, automations, and local triggers.
- Use stable session keys or chat sessions for work that should preserve context.
- Keep goals bounded and explicit about done-ness. Active goals can exceed the ordinary iteration limit and consume more model tokens. Use `/stop` to interrupt work; stopping does not cancel the saved goal.
- Keep goals bounded and explicit about done-ness. Active goals can exceed the ordinary iteration limit and consume more model tokens. Use `/stop` to interrupt work while keeping the goal, or `/cancel_goal` to cancel it; see [Goal controls](../chat-commands.md#goals).
- Review Automations in the WebUI before relying on a schedule.
## Security notes