mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 05:47:39 +00:00
fix(auto-reply): tighten silent token semantics and prefix streaming
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { createTypingKeepaliveLoop } from "../../channels/typing-lifecycle.js";
|
||||
import { isSilentReplyText, SILENT_REPLY_TOKEN } from "../tokens.js";
|
||||
import { isSilentReplyPrefixText, isSilentReplyText, SILENT_REPLY_TOKEN } from "../tokens.js";
|
||||
|
||||
export type TypingController = {
|
||||
onReplyStart: () => Promise<void>;
|
||||
@@ -163,7 +163,10 @@ export function createTypingController(params: {
|
||||
if (!trimmed) {
|
||||
return;
|
||||
}
|
||||
if (silentToken && isSilentReplyText(trimmed, silentToken)) {
|
||||
if (
|
||||
silentToken &&
|
||||
(isSilentReplyText(trimmed, silentToken) || isSilentReplyPrefixText(trimmed, silentToken))
|
||||
) {
|
||||
return;
|
||||
}
|
||||
refreshTypingTtl();
|
||||
|
||||
Reference in New Issue
Block a user