Functions

renderStatusLine

Function: renderStatusLine()

renderStatusLine(state, ctx, templates?): string | null

Defined in: src/recorders/observability/status/statusTemplates.ts:209

Resolve the matched template + substitute vars.

state === null → null (chat bubble renders nothing) • state === 'tool' → tries tool.<toolName> first, then generic tool • Other states → looks up the state's name as the key

Missing template keys return null rather than the empty string — keeps the contract honest (consumer can detect "no template" and fall back to its own default).

Parameters

state

StatusState | null

ctx

StatusContext

templates?

StatusTemplates = defaultStatusTemplates

Returns

string | null

On this page