mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 02:11:23 +00:00
Merged via /review-pr -> /prepare-pr -> /merge-pr.
Prepared head SHA: b58492cfed
Co-authored-by: robbyczgw-cla <239660374+robbyczgw-cla@users.noreply.github.com>
Co-authored-by: steipete <58493+steipete@users.noreply.github.com>
Reviewed-by: @steipete
This commit is contained in:
@@ -274,7 +274,11 @@ export const sendHandlers: GatewayRequestHandlers = {
|
||||
question: string;
|
||||
options: string[];
|
||||
maxSelections?: number;
|
||||
durationSeconds?: number;
|
||||
durationHours?: number;
|
||||
silent?: boolean;
|
||||
isAnonymous?: boolean;
|
||||
threadId?: string;
|
||||
channel?: string;
|
||||
accountId?: string;
|
||||
idempotencyKey: string;
|
||||
@@ -303,8 +307,13 @@ export const sendHandlers: GatewayRequestHandlers = {
|
||||
question: request.question,
|
||||
options: request.options,
|
||||
maxSelections: request.maxSelections,
|
||||
durationSeconds: request.durationSeconds,
|
||||
durationHours: request.durationHours,
|
||||
};
|
||||
const threadId =
|
||||
typeof request.threadId === "string" && request.threadId.trim().length
|
||||
? request.threadId.trim()
|
||||
: undefined;
|
||||
const accountId =
|
||||
typeof request.accountId === "string" && request.accountId.trim().length
|
||||
? request.accountId.trim()
|
||||
@@ -340,6 +349,9 @@ export const sendHandlers: GatewayRequestHandlers = {
|
||||
to: resolved.to,
|
||||
poll: normalized,
|
||||
accountId,
|
||||
threadId,
|
||||
silent: request.silent,
|
||||
isAnonymous: request.isAnonymous,
|
||||
});
|
||||
const payload: Record<string, unknown> = {
|
||||
runId: idem,
|
||||
|
||||
Reference in New Issue
Block a user