mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 11:11:35 +00:00
fix(discord): stop typing after silent runs
This commit is contained in:
@@ -69,6 +69,8 @@ type ReplyDispatcherWithTypingResult = {
|
||||
dispatcher: ReplyDispatcher;
|
||||
replyOptions: Pick<GetReplyOptions, "onReplyStart" | "onTypingController" | "onTypingCleanup">;
|
||||
markDispatchIdle: () => void;
|
||||
/** Signal that the model run is complete so the typing controller can stop. */
|
||||
markRunComplete: () => void;
|
||||
};
|
||||
|
||||
export type ReplyDispatcher = {
|
||||
@@ -237,5 +239,8 @@ export function createReplyDispatcherWithTyping(
|
||||
typingController?.markDispatchIdle();
|
||||
resolvedOnIdle?.();
|
||||
},
|
||||
markRunComplete: () => {
|
||||
typingController?.markRunComplete();
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user