From a94e1c8d8b53ca4383801801f1a8ef00620d55fd Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 31 Jul 2026 03:48:21 -0700 Subject: [PATCH] refactor(reply): simplify task-owned typing refresh (#116770) * refactor(reply): simplify task-owned typing refresh * chore(format): restore autonomous sweep skill formatting --------- Co-authored-by: Peter Steinberger --- src/auto-reply/reply/agent-runner.runreplyagent.e2e.test.ts | 1 - src/auto-reply/reply/reply-run-typing.ts | 6 ++---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/auto-reply/reply/agent-runner.runreplyagent.e2e.test.ts b/src/auto-reply/reply/agent-runner.runreplyagent.e2e.test.ts index 01a286de97f0..08e64cdea39c 100644 --- a/src/auto-reply/reply/agent-runner.runreplyagent.e2e.test.ts +++ b/src/auto-reply/reply/agent-runner.runreplyagent.e2e.test.ts @@ -467,7 +467,6 @@ describe("runReplyAgent active steering", () => { expect(state.runEmbeddedAgentMock).not.toHaveBeenCalled(); expect(taskTyping.startTypingLoop).toHaveBeenCalledOnce(); - expect(taskTyping.refreshTypingTtl).toHaveBeenCalledOnce(); expect(taskTyping.cleanup).not.toHaveBeenCalled(); expect(typing.cleanup).toHaveBeenCalledOnce(); diff --git a/src/auto-reply/reply/reply-run-typing.ts b/src/auto-reply/reply/reply-run-typing.ts index f2ca73edb83f..5e6457c308e3 100644 --- a/src/auto-reply/reply/reply-run-typing.ts +++ b/src/auto-reply/reply/reply-run-typing.ts @@ -25,12 +25,10 @@ export function bindReplyOperationTyping( export async function refreshReplyOperationTyping( operation: ReplyOperation, options: { startIfIdle: boolean }, -): Promise { +): Promise { const typing = typingByReplyOperation.get(operation); if (!typing || operation.result || (!options.startIfIdle && !typing.isActive())) { - return false; + return; } await typing.startTypingLoop(); - typing.refreshTypingTtl(); - return true; }