Components / Decision Pills

Decision Pills

The decision bar above the composer when the agent needs an answer: exactly one filled recommendation, with any alternatives as subordinate outline buttons.

import { DecisionPills } from '@layers/ui/decision-pills'

Rendered stock

House rules

  • There is always exactly one recommendation (the filled primary); alternatives render as outline and usually there are none. A long list means the agent is not doing its job.
  • Renders directly above the composer, never in the stream; tap sends the decision as a user message in one step.
  • Free text is the standing alternative; never add a "something else" pill, and omit secondary when the only alternative is "not yet".
  • pending disables the bar with no spinner: the echo is the feedback, and the loading state is the agent working indicator in the stream.
  • The agent explains its reasoning in its voice line in the stream, never inside the pill label.

See also