Skip to content

Function: pushError()

pushError(ctx, error): void

Defined in: packages/aiui-claude-channel/src/channel.ts:86

Surface a server-side failure to the connected page — THE helper every failure site calls (one mechanism, not per-feature patches). Degrades to a no-op on transports without push (the pure protocol tests), matching how processors already treat ThreadContext.push: the failure is then only as visible as the ack/trace made it, which is exactly the pre-push status quo, never worse.

Parameters

ctx

Pick<ThreadContext, "threadId" | "push">

error

data?

unknown

detail?

string

message

string

source?

string

Returns

void