fix(attribution): put run avatar on the meta-line middot rhythm (MUL-4767)

The accountable-member avatar in the agent Activity 'Recent work' rows
was appended to the middot-delimited meta line with only a 2px nudge
(ml-0.5), so it read as glued to the duration while every other item
(status / time / duration) is spaced by a '·' separator.

Give the avatar a leading separator so it shares the same rhythm, and
gate both on task.attribution?.initiator — the exact condition the
avatar badge itself renders on — so no dangling separator is left for
an unattributed run.

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
J
2026-07-15 03:38:36 +08:00
parent 09f69dfa05
commit 3ae4a641eb

View File

@@ -641,13 +641,20 @@ function TaskRow({
</>
)}
{/* Accountable member (MUL-4302 §9): whose behalf this run is on.
Avatar-only keeps the meta line tight; renders nothing when the
run has no resolved responsible member. */}
<AttributionBadge
attribution={task.attribution}
variant="avatar"
className="ml-0.5"
/>
A leading separator keeps the avatar on the same middot rhythm as
the rest of the meta line instead of glued to the duration. The
guard mirrors the badge's own render condition (avatar-only needs
an initiator) so no dangling separator is left for an
unattributed run. */}
{task.attribution?.initiator && (
<>
<Sep />
<AttributionBadge
attribution={task.attribution}
variant="avatar"
/>
</>
)}
</div>
</div>