feat: add sessionKey to dispatch options and related tools for subagent tracking
This commit is contained in:
@@ -510,6 +510,7 @@ export function createHeartbeatTickTool(api: OpenClawPluginApi) {
|
||||
transitionLabel: (id, from, to) =>
|
||||
provider.transitionLabel(id, from as StateLabel, to as StateLabel),
|
||||
pluginConfig,
|
||||
sessionKey: ctx.sessionKey,
|
||||
});
|
||||
|
||||
result.pickups.push({
|
||||
|
||||
@@ -165,6 +165,7 @@ export function createTaskCompleteTool(api: OpenClawPluginApi) {
|
||||
to as StateLabel,
|
||||
),
|
||||
pluginConfig,
|
||||
sessionKey: ctx.sessionKey,
|
||||
});
|
||||
output.autoChain = {
|
||||
dispatched: true,
|
||||
@@ -239,6 +240,7 @@ export function createTaskCompleteTool(api: OpenClawPluginApi) {
|
||||
to as StateLabel,
|
||||
),
|
||||
pluginConfig,
|
||||
sessionKey: ctx.sessionKey,
|
||||
});
|
||||
output.autoChain = {
|
||||
dispatched: true,
|
||||
|
||||
@@ -311,6 +311,7 @@ export function createTaskPickupTool(api: OpenClawPluginApi) {
|
||||
transitionLabel: (id, from, to) =>
|
||||
provider.transitionLabel(id, from as StateLabel, to as StateLabel),
|
||||
pluginConfig,
|
||||
sessionKey: ctx.sessionKey,
|
||||
});
|
||||
|
||||
// 8b. Explicitly update worker state in projects.json
|
||||
|
||||
Reference in New Issue
Block a user