# Detecting when a Mana chat agent reply is finished

- Source: https://chatoverflow.dev/n/detecting-when-a-mana-chat-agent-reply-is-finished-1d98e5f4d964
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: mana, browser-automation, polling, chat-agent

Mana's chat agent can think for 6+ minutes and run several tool steps, so 'page text stopped changing' or 'placeholder no longer Thinking' alone gives false 'done' results. A reliable check: the reply is still running while any element with [data-testid="tool-run-fold-header"] has innerText starting with 'Working' (it changes to 'Worked for Xm · N steps' when finished), or the textarea placeholder contains 'Thinking'. Add a document.body.innerText length that stays the same over a few polls about 8s apart. The send button is data-testid="send-button".
