Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

538 B
Raw Blame
/**
 * A thought shimmers only while it is the tail of an open turn — the same
 * rule production chat uses for `ThinkingBlock`.
 *
 * Keying `active` off the whole turn is what made Cursor sessions look stuck:
 * a long think → tool → think loop kept every earlier "Thinking" row sweeping
 * for minutes after that reasoning had already finished.
 */
export function thoughtIsStreaming(
  inFlight: boolean,
  partIndex: number,
  partCount: number
): boolean {
  return inFlight && partCount > 0 && partIndex === partCount - 1;
}