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 1ced744
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(agents): move announce, completion, recovery, and registry families into concept directories (#121553)
* refactor(agents): move announce family into subagents/announce/
* refactor(agents): move completion and main-session recovery families
* refactor(agents): move registry family into subagents/registry
* refactor(agents): update registry state type imports
* style(agents): format moved subagent imports
* test(agents): preserve isolated registry test routing
* fix(scripts): recognize relocated subagent announce seams
Copy file name to clipboardExpand all lines: docs/refactor/operator-approvals.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ This table records the implementation state when #103505 was opened. The rollout
50
50
| Portable actions |`src/interactive/payload.ts`, `src/plugin-sdk/interactive-runtime.ts`, `src/plugin-sdk/approval-reply-runtime.ts`| Approval buttons are command actions containing `/approve ...`; URL and Web App targets are untyped button fields. |
51
51
| Telegram |`extensions/telegram/src/approval-handler.runtime.ts`, `extensions/telegram/src/button-types.ts`| The renderer parses command text to recognize approval semantics before producing private callback data. |
52
52
| Control UI |`ui/src/app/exec-approval.ts`, `ui/src/app/overlays.ts`, `ui/src/components/exec-approval.ts`| Approval UI is a global modal. `ui/src/app-route-paths.ts` and `ui/src/app-routes.ts` use exact routes and rewrite unknown paths to Chat. |
53
-
| Session ownership |`src/agents/subagent-registry.types.ts`, `src/agents/subagent-registry-read.ts`, `src/config/sessions/types.ts`| Controller, requester, explicit parent, and legacy spawn ownership exist, but approval events are not projected to those session streams. |
53
+
| Session ownership |`src/agents/subagents/registry/subagent-registry.types.ts`, `src/agents/subagents/registry/subagent-registry-read.ts`, `src/config/sessions/types.ts`| Controller, requester, explicit parent, and legacy spawn ownership exist, but approval events are not projected to those session streams. |
54
54
| Shared state |`src/state/openclaw-state-schema.sql`, `src/state/openclaw-state-db.ts`| Existing immediate transactions and Kysely conditional updates support durable compare-and-set in `state/openclaw.sqlite`. |
55
55
56
56
Representative current tests include `src/gateway/exec-approval-manager.test.ts`, `src/gateway/server-methods/approval-shared.test.ts`, `src/agents/bash-tools.exec-gateway-approval.e2e.test.ts`, `extensions/telegram/src/approval-handler.runtime.test.ts`, and `ui/src/e2e/approval-flow.e2e.test.ts`.
@@ -294,7 +294,7 @@ Use a deterministic breadth-first walk:
294
294
4. Normalize and de-duplicate on enqueue so the first, shortest path wins.
295
295
5. Stop at 64 unique keys; this audience-size cap also bounds traversal depth.
296
296
297
-
The registry source is `src/agents/subagent-registry-read.ts`; ownership fields are defined in `src/agents/subagent-registry.types.ts`. Session fallback fields are defined in `src/config/sessions/types.ts`.
297
+
The registry source is `src/agents/subagents/registry/subagent-registry-read.ts`; ownership fields are defined in `src/agents/subagents/registry/subagent-registry.types.ts`. Session fallback fields are defined in `src/config/sessions/types.ts`.
298
298
299
299
Requested and terminal projections use the same persisted audience even if focus/controller ownership changes while the approval is pending. This guarantees terminal cleanup for every audience session stream that received the request projection. Resolution always targets the source approval ID; audience sessions never receive cloned approval state. Forwarded channel-message cleanup remains the separate delivery-locator follow-up below.
0 commit comments