DecisionState
What a view can do about the session's pending decision.
observing: the pausing run has not settled locally yet; do not answer.ready: the pause can be answered withsession.resume(responses).answering: an answer was sent and its run is still going.uncertain: the answering run ended without proof that the backend took the answer. It cannot be sent again; only a new session can continue.
unsupported is a pause this owner cannot answer, such as a legacy custom
interrupt or a batch with duplicate identifiers.
import type { DecisionState } from '@threadplane/ag-ui';Declaration
export type DecisionState = {
readonly kind: 'unsupported';
} | {
readonly kind: 'native';
readonly id: PauseId;
readonly interrupts: readonly OwnedInterrupt[];
readonly phase: 'observing' | 'ready' | 'answering' | 'uncertain';
};