Files
multica/packages
Jiayuan Zhang ba43b11aee feat(agents): show which runtime backs an agent (#6185)
* feat(agents): show which runtime backs an agent

An agent's provider was only discoverable by reading text: a Runtime
column on the agents list, a meta line on its page. `ProviderLogo` has
existed for every provider we support, but only runtimes surfaces ever
used it.

Two additions, split by what each surface is for:

- The agents list Runtime column gets the provider mark before its
  label, so scanning "which of these run on Codex" is a shape match
  rather than a read.
- Identity surfaces get `showRuntimeBadge` on the avatar — the agent's
  own page, its profile card, the chat session header.

The badge is derived from `runtime_id` on every render rather than
stored, so moving an agent between runtimes moves its mark, and it
renders nothing when the provider can't be resolved: a mark naming the
wrong runtime is worse than no mark.

It sits at the avatar's top-right, opposite the presence dot, and the
two are designed to coexist — they answer different questions (can it
take work right now, vs what backs it). Below 32px it no-ops: a badge
gets ~40% of the diameter, and provider marks are detailed artwork that
turns to mush at the ~8px a 20px picker row would give it. That is
exactly where the status dot lives, so in practice the two rarely want
the same avatar anyway.

Co-authored-by: multica-agent <github@multica.ai>

* fix(agents): sit the runtime badge on the avatar's rim, not over its face

Flush to the bounding box corner reads correctly on a square and wrong on
a circle: at 45° the edge has already curved ~29% of the diameter away
from that corner, so the badge landed well inside the disc and masked the
avatar. Offset it outward by (badge radius − rim inset) so its centre
lands on the rim and about half of it overhangs.

Co-authored-by: multica-agent <github@multica.ai>

---------

Co-authored-by: Lambda <lambda@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
2026-07-30 18:06:28 +08:00
..