Skip to content

Interface: ThreadContext

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

What a processor can see and do for the one thread it owns.

Properties

close

close: () => void

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

Mark this thread closed: the processor is released and any further frame naming this thread id is rejected. Idempotent.

Returns

void


hello?

optional hello?: HelloMeta

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

The client context from the connection's hello (tab, source), if sent.


push?

optional push?: PushMessage

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

Push a message back to the connected client, distinct from the per-frame ack (the client tells them apart by a kind field). Present only when the transport supports it; intent-v1 uses it for server-produced lowered events (transcripts, correction diffs). Undefined in the pure protocol tests, which never exercise it.


sendPrompt

sendPrompt: SendPrompt

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

Push text into the Claude Code session.


threadId

threadId: string

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

The client-generated id of this thread.