@@ -110,6 +110,7 @@ const resolveAgentWorkspaceDirHoisted = vi.hoisted(() => vi.fn(() => "/tmp/works
110110const resolveDefaultModelForAgentHoisted = vi . hoisted ( ( ) =>
111111 vi . fn ( ( ) => ( { provider : "openai" , model : "gpt-test" } ) ) ,
112112) ;
113+ const resolveHumanDelayConfigHoisted = vi . hoisted ( ( ) => vi . fn ( ) ) ;
113114const getAgentScopedMediaLocalRootsHoisted = vi . hoisted ( ( ) =>
114115 vi . fn ( ( _cfg : unknown , agentId : string ) => [ `/tmp/.openclaw/workspace-${ agentId } ` ] ) ,
115116) ;
@@ -154,6 +155,7 @@ const findModelInCatalog = findModelInCatalogHoisted;
154155const modelSupportsVision = modelSupportsVisionHoisted ;
155156const resolveAgentDir = resolveAgentDirHoisted ;
156157const resolveDefaultModelForAgent = resolveDefaultModelForAgentHoisted ;
158+ export const resolveHumanDelayConfig = resolveHumanDelayConfigHoisted ;
157159const getAgentScopedMediaLocalRoots = getAgentScopedMediaLocalRootsHoisted ;
158160const resolveChunkMode = resolveChunkModeHoisted ;
159161export const resolveMarkdownTableMode = resolveMarkdownTableModeHoisted ;
@@ -301,6 +303,7 @@ vi.mock("./bot-message-dispatch.agent.runtime.js", () => ({
301303 resolveAgentDir : resolveAgentDirHoisted ,
302304 resolveAgentWorkspaceDir : resolveAgentWorkspaceDirHoisted ,
303305 resolveDefaultModelForAgent : resolveDefaultModelForAgentHoisted ,
306+ resolveHumanDelayConfig : resolveHumanDelayConfigHoisted ,
304307} ) ) ;
305308
306309vi . mock ( "./sticker-cache.js" , ( ) => ( {
@@ -411,6 +414,7 @@ function resetTelegramDispatchTestState() {
411414 modelSupportsVision . mockReset ( ) ;
412415 resolveAgentDir . mockReset ( ) ;
413416 resolveDefaultModelForAgent . mockReset ( ) ;
417+ resolveHumanDelayConfig . mockReset ( ) ;
414418 loadConfig . mockReturnValue ( { } ) ;
415419 dispatchReplyWithBufferedBlockDispatcher . mockResolvedValue ( {
416420 queuedFinal : false ,
@@ -473,6 +477,7 @@ function resetTelegramDispatchTestState() {
473477 provider : "openai" ,
474478 model : "gpt-test" ,
475479 } ) ;
480+ resolveHumanDelayConfig . mockReturnValue ( undefined ) ;
476481 getGlobalHookRunner . mockReturnValue ( null ) ;
477482}
478483
0 commit comments