@redrob-labs/ui v1.0.2 · Redrob Group Design System 2026

ModelSwitch

Agent chat · src/components/ModelSwitch/ModelSwitch.tsx

Says the model changed mid-conversation, and that nothing was lost.

The reassurance is the point. A person who sees the model change reasonably assumes the new one is starting cold, so the note says it reads the same memory. Without that line, a switch reads as a reset.

role="note", so it is an aside in the transcript rather than another turn in the conversation.

Import

import { ModelSwitch } from '@redrob-labs/ui';

Rendered

The design system's own preview case, run against this package's build. The parity gate compares this rendering to the reference bundle's.

Props

PropTypeNotes
to React.ReactNode The model now answering. Named, because the person is being told which one.
by 'you' | 'auto' Who switched. you when the person pinned it, otherwise Redrob Auto did.
reason string Why, as a clause: "because this needs longer reasoning".
note React.ReactNode
className string