mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 12:40:20 +00:00
fix(discord): add batched reply mode
This commit is contained in:
@@ -85,7 +85,7 @@ export const MatrixConfigSchema = z.object({
|
||||
contextVisibility: ContextVisibilityModeSchema.optional(),
|
||||
blockStreaming: z.boolean().optional(),
|
||||
streaming: z.union([z.enum(["partial", "off"]), z.boolean()]).optional(),
|
||||
replyToMode: z.enum(["off", "first", "all"]).optional(),
|
||||
replyToMode: z.enum(["off", "first", "all", "batched"]).optional(),
|
||||
threadReplies: z.enum(["off", "inbound", "always"]).optional(),
|
||||
textChunkLimit: z.number().optional(),
|
||||
chunkMode: z.enum(["length", "newline"]).optional(),
|
||||
|
||||
@@ -1986,7 +1986,7 @@ describe("matrix monitor handler draft streaming", () => {
|
||||
};
|
||||
|
||||
function createStreamingHarness(opts?: {
|
||||
replyToMode?: "off" | "first" | "all";
|
||||
replyToMode?: "off" | "first" | "all" | "batched";
|
||||
blockStreamingEnabled?: boolean;
|
||||
}) {
|
||||
let capturedDeliver: DeliverFn | undefined;
|
||||
|
||||
@@ -35,7 +35,7 @@ export async function deliverMatrixReplies(params: {
|
||||
client: MatrixClient;
|
||||
runtime: RuntimeEnv;
|
||||
textLimit: number;
|
||||
replyToMode: "off" | "first" | "all";
|
||||
replyToMode: "off" | "first" | "all" | "batched";
|
||||
threadId?: string;
|
||||
accountId?: string;
|
||||
mediaLocalRoots?: readonly string[];
|
||||
|
||||
@@ -7,7 +7,7 @@ import type {
|
||||
} from "./runtime-api.js";
|
||||
export type { ContextVisibilityMode, DmPolicy, GroupPolicy };
|
||||
|
||||
export type ReplyToMode = "off" | "first" | "all";
|
||||
export type ReplyToMode = "off" | "first" | "all" | "batched";
|
||||
|
||||
export type MatrixDmConfig = {
|
||||
/** If false, ignore all incoming Matrix DMs. Default: true. */
|
||||
|
||||
Reference in New Issue
Block a user