ModelDisplay
Category: App
Source: model_display.dart
Formatting helpers for how the active model is surfaced to the user.
Two audiences:
- Status bar (every render, must be compact): shows
<provider> · <apiId>— the wire address the provider actually sees. /sessionoutput (occasional, can be verbose): adds the display name when the model is catalogued.
Both fall back gracefully for uncatalogued refs (passthrough) and for the case where no active model is known yet (pre-config bootstrap).
Functions
`String formatStatusModelLabel(
ModelRef? ref, ModelCatalog? catalog, String fallback, )`
Compact one-line label for the status bar. Returns [fallback] when no ref is available (e.g. before config finishes loading).
`String formatInfoModelLabel(
ModelRef? ref, ModelCatalog? catalog, String fallback, )`
Multi-line label for /session: display name + wire address, or the ref alone when the model isn't catalogued.