1import type { ThreadListV2Status } from "./threadListV2";
2
3/**
4 * Mirrors web's recede rule: background work fades so rows that need a
5 * human (approval, input, failure, unseen completion) stand out. An unseen
6 * completion cannot pull a still-working thread forward.
7 */
8export function shouldRecedeThreadRow(input: {
9 readonly status: ThreadListV2Status;
10 readonly selected: boolean;
11}): boolean {
12 return !input.selected && (input.status === "working" || input.status === "waiting");
13}