mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-02 15:40:20 +00:00
ACP: simplify stream config to repeatSuppression
This commit is contained in:
@@ -172,10 +172,8 @@ export const FIELD_HELP: Record<string, string> = {
|
||||
"Coalescer idle flush window in milliseconds for ACP streamed text before block replies are emitted.",
|
||||
"acp.stream.maxChunkChars":
|
||||
"Maximum chunk size for ACP streamed block projection before splitting into multiple block replies.",
|
||||
"acp.stream.metaMode":
|
||||
"ACP metadata projection mode: off suppresses status/tool lines, minimal dedupes aggressively, verbose streams non-identical updates.",
|
||||
"acp.stream.showUsage":
|
||||
"When true, usage_update events are projected as system lines only when usage values change.",
|
||||
"acp.stream.repeatSuppression":
|
||||
"When true (default), suppress repeated ACP status/tool projection lines in a turn while keeping raw ACP events unchanged.",
|
||||
"acp.stream.deliveryMode":
|
||||
"ACP delivery style: live streams block chunks incrementally, final_only buffers text deltas until terminal turn events.",
|
||||
"acp.stream.maxTurnChars":
|
||||
|
||||
@@ -369,8 +369,7 @@ export const FIELD_LABELS: Record<string, string> = {
|
||||
"acp.stream": "ACP Stream",
|
||||
"acp.stream.coalesceIdleMs": "ACP Stream Coalesce Idle (ms)",
|
||||
"acp.stream.maxChunkChars": "ACP Stream Max Chunk Chars",
|
||||
"acp.stream.metaMode": "ACP Stream Meta Mode",
|
||||
"acp.stream.showUsage": "ACP Stream Show Usage",
|
||||
"acp.stream.repeatSuppression": "ACP Stream Repeat Suppression",
|
||||
"acp.stream.deliveryMode": "ACP Stream Delivery Mode",
|
||||
"acp.stream.maxTurnChars": "ACP Stream Max Turn Chars",
|
||||
"acp.stream.maxToolSummaryChars": "ACP Stream Max Tool Summary Chars",
|
||||
|
||||
@@ -10,10 +10,8 @@ export type AcpStreamConfig = {
|
||||
coalesceIdleMs?: number;
|
||||
/** Maximum text size per streamed chunk. */
|
||||
maxChunkChars?: number;
|
||||
/** Controls how ACP meta/system updates are projected to channels. */
|
||||
metaMode?: "off" | "minimal" | "verbose";
|
||||
/** Toggles usage_update projection in channel-facing output. */
|
||||
showUsage?: boolean;
|
||||
/** Suppresses repeated ACP status/tool projection lines within a turn. */
|
||||
repeatSuppression?: boolean;
|
||||
/** Live streams chunks or waits for terminal event before delivery. */
|
||||
deliveryMode?: "live" | "final_only";
|
||||
/** Maximum assistant text characters forwarded per turn. */
|
||||
|
||||
@@ -339,10 +339,7 @@ export const OpenClawSchema = z
|
||||
.object({
|
||||
coalesceIdleMs: z.number().int().nonnegative().optional(),
|
||||
maxChunkChars: z.number().int().positive().optional(),
|
||||
metaMode: z
|
||||
.union([z.literal("off"), z.literal("minimal"), z.literal("verbose")])
|
||||
.optional(),
|
||||
showUsage: z.boolean().optional(),
|
||||
repeatSuppression: z.boolean().optional(),
|
||||
deliveryMode: z.union([z.literal("live"), z.literal("final_only")]).optional(),
|
||||
maxTurnChars: z.number().int().positive().optional(),
|
||||
maxToolSummaryChars: z.number().int().positive().optional(),
|
||||
|
||||
Reference in New Issue
Block a user