fix(web/claw): name the human on their own chat rows

Every row the reader wrote said "you" under an avatar holding a bare Y,
even with the profile set: the chat panel never read GET /v1/user, so
the name and picture appeared only in the account row at the bottom of
the sidebar, and the transcript contradicted it.

The panel takes the profile now. Its rows label themselves with the
name on the interactive and phone keys, "you" only until one is set,
and the avatar renders the picture when there is one and the name's
first letter otherwise. A dispatch row keeps its own label and initial:
it speaks for the trigger that started it, not for the reader.

nuxt typecheck passes; against the mock claw a profile named "Ada
Lovelace" with a picture renders on its rows, and clearing the profile
falls back to "you" and Y.
This commit is contained in:
vhaudiquet committed 2026-12-02 11:38:00 +01:00
1 parent 597c2a98d2
commit 68f1a6be89
2 files changed
+32 -5

No files matched your search

+2
View File
@@ -1081,6 +1081,8 @@ onUnmounted(() => {
:prepend-count="prependCount"
:identity="identity"
:avatar-url="identityAvatarUrl"
:user="userProfile"
:user-avatar-url="userAvatarUrl"
@older="loadOlder"
@send="send"
@open-providers="go({ view: 'settings', section: 'providers' })"