mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 17:48:26 +00:00
Agents: fix subagent completion thread routing
This commit is contained in:
@@ -64,6 +64,7 @@ export const sendHandlers: GatewayRequestHandlers = {
|
||||
gifPlayback?: boolean;
|
||||
channel?: string;
|
||||
accountId?: string;
|
||||
threadId?: string;
|
||||
sessionKey?: string;
|
||||
idempotencyKey: string;
|
||||
};
|
||||
@@ -130,6 +131,10 @@ export const sendHandlers: GatewayRequestHandlers = {
|
||||
typeof request.accountId === "string" && request.accountId.trim().length
|
||||
? request.accountId.trim()
|
||||
: undefined;
|
||||
const threadId =
|
||||
typeof request.threadId === "string" && request.threadId.trim().length
|
||||
? request.threadId.trim()
|
||||
: undefined;
|
||||
const outboundChannel = channel;
|
||||
const plugin = getChannelPlugin(channel);
|
||||
if (!plugin) {
|
||||
@@ -182,6 +187,7 @@ export const sendHandlers: GatewayRequestHandlers = {
|
||||
agentId: derivedAgentId,
|
||||
accountId,
|
||||
target: resolved.to,
|
||||
threadId,
|
||||
})
|
||||
: null;
|
||||
if (derivedRoute) {
|
||||
@@ -203,6 +209,7 @@ export const sendHandlers: GatewayRequestHandlers = {
|
||||
? resolveSessionAgentId({ sessionKey: providedSessionKey, config: cfg })
|
||||
: derivedAgentId,
|
||||
gifPlayback: request.gifPlayback,
|
||||
threadId: threadId ?? null,
|
||||
deps: outboundDeps,
|
||||
mirror: providedSessionKey
|
||||
? {
|
||||
|
||||
Reference in New Issue
Block a user