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 0474704
Browse filesBrowse the repository at this point in the historyBrowse files
feat(control-ui): create and manage goals without slash commands (#131370)
* feat(control-ui): create and manage goals without slash commands
* fix(control-ui): keep goal composer contracts acyclic
* refactor(control-ui): tighten goal composer guidance
* fix(goals): admit fresh and completed local sessions
Create the first session with its Goal, input, run claim, and receipt in the existing transaction. Scope reply dispatch hooks consistently at admission and execution, and retain built-in runtime eligibility after completed turns. Preserve creator and lifecycle checks and cover the failures observed through the real Control UI flow.
* fix(ui): preserve button names during fade-in
* docs: defer Goal release notes to release generation
Copy file name to clipboardExpand all lines: docs/plugins/hooks.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -194,6 +194,7 @@ modifications explicitly instead of relying on in-place mutation.
194
194
|`registrationId`| Stable identity for one registration inside a plugin. Skill evaluators use it as `evaluatorId`; otherwise the plugin id is used. |
195
195
|`timeoutMs`| Per-handler asynchronous await budget. Expiry applies the hook's failure policy below; it does not cancel the handler or its side effects. Omit to use the runner's default, if any. |
196
196
|`eligibleTriggers`| For `before_agent_reply` only, limits host dispatch to one or more of `cron`, `heartbeat`, or `user`. |
197
+
|`eligibleDispatchKinds`| For `reply_dispatch` only, limits host dispatch to `agent`, `acp`, or both. Omit to handle all dispatch kinds. |
197
198
|`requiresToolAuthority`| For `before_prompt_build` only, runs the handler after the host finalizes the current turn's tool surface and supplies ephemeral `ctx.toolAuthority`. Use this for context retrieval that must follow tool policy. |
198
199
199
200
Trigger eligibility is enforced by the host before it invokes the handler. A
@@ -1019,6 +1020,16 @@ message context and a host dispatcher, and a handled result reports
1019
1020
`queuedFinal` and delivery `counts`. Use `before_agent_reply` for a simple
1020
1021
synthetic reply, and the sending hooks below to transform outgoing payloads.
1021
1022
1023
+
Use `eligibleDispatchKinds: ["acp"]` for an ACP-only dispatcher. The host
1024
+
classifies the resolved target, including conversation bindings, and passes
1025
+
`ctx.dispatchKind` as `acp` or `agent`. Stored ACP metadata and ACP session keys
1026
+
both select `acp`; a missing ACP binding does not fall back to agent dispatch.
1027
+
The host applies the same eligibility check before invocation and when deciding
1028
+
whether a hook prevents durable chat admission. An ACP-only hook therefore
1029
+
does not block ordinary agent sessions. Omitted, empty, malformed, or partly
1030
+
unknown eligibility lists remain unrestricted. Missing or unknown dispatch
1031
+
context also keeps the hook eligible.
1032
+
1022
1033
Use message hooks for channel-level routing and delivery policy:
Copy file name to clipboardExpand all lines: docs/reference/database-schemas.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,17 @@ safely.
52
52
53
53
Installing OpenClaw manually through npm bypasses the updater guard. Database open checks still refuse an incompatible build.
54
54
55
+
Structured [Goal controls](/tools/goal#gateway-requests-and-retries) use a lazy
56
+
per-agent `session_goal_operations` table without changing the schema version.
57
+
Goal start/resume commits the Goal transition, input turn, run lifecycle, and
58
+
operation receipt in one transaction. Management operations commit the Goal
59
+
transition and receipt together. Older readers ignore the added table.
60
+
Receipts survive Goal clear and session reset/deletion until their 24-hour
61
+
validity expires; later Goal writes prune expired rows. They retain the
62
+
original result and a keyed request fingerprint, not a second raw request.
63
+
There is no backfill or configuration switch. Downgrading preserves the table
64
+
but disables the new structured controls; upgrading can read retained receipts.
65
+
55
66
## Review checkpoint for material changes
56
67
57
68
Before implementing a material SQLite or persistent-store change, open or link a maintainer discussion and record acceptance of the design. A schema-version bump is always material, but a change can be material even when the numeric version stays the same.
0 commit comments