Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

531 B
Raw Blame
// What both the reader (core/chat-teammate.ts) and the ⌘M panel need to say about a teammate's
// idle notification.
import type { ChatTeammateIdle } from './types'

/** How an idle notification's outcome reads, as Claude Code's TUI words it ("Teammate @x finished").
 *  A notification that names no reason reads "finished", as it does in the TUI. */
export function idleOutcome(reason: ChatTeammateIdle['reason']): string {
  return reason === 'failed' ? 'failed' : reason === 'interrupted' ? 'was interrupted' : 'finished'
}