Skip to content

Typing indicator stops during long tool executions #447

@thesash

Description

@thesash

Bug Description

The typing indicator TTL (time-to-live) is not refreshed when startTypingLoop() is called while the typing loop is already running. This causes the typing indicator to stop after 2 minutes even if tools are still executing.

Steps to Reproduce

  1. Send a message that triggers a long-running tool (e.g., browser navigation, file operations)
  2. Observe that typing indicator shows initially
  3. After ~2 minutes, typing indicator stops even though the agent is still working

Root Cause

In src/auto-reply/reply/typing.ts, startTypingLoop() only calls refreshTypingTtl() when starting a new loop. If the loop is already running (typingTimer exists), it returns early without refreshing the TTL.

Proposed Fix

Move refreshTypingTtl() earlier in startTypingLoop() so it's called even when the loop is already running, while still respecting the runComplete guard.


AI-assisted bug report (Claude Code)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions