Attachment chip: latent double label, and non-web sessions are unreachable in the dashboard transcript #1677

Closed
opened 2026-10-27 13:41:21 +00:00 by sam · 0 comments
Owner

Two follow-ups from the transcript-attachment lane (feat(webui): show attachment metadata in the session transcript), neither of which is a rendering bug in itself.

  1. LATENT DOUBLE LABEL. A Telegram attachment is stored with the channel note already in Text ("[photo]\n"), so once a media-carrying message is rendered the transcript shows the chip [photo] AND the note in the body. The note exists for the MODEL history (stored history is text-only, so the note is what a later turn reads) and must not change. The fix is display-side: when a message has media, drop a leading bracketed note line from the rendered text. Not visible today only because of item 2.

  2. SESSIONS WITH MEDIA ARE UNREACHABLE. /api/chat/sessions and /api/chat/sessions/{id}/messages refuse any session whose platform is not "web", and the browser inbound decode attaches no media, so no media-carrying session can currently be listed in the dashboard. Wiring that up means deciding whether Telegram conversations belong in the dashboard chat panel at all -- a product decision, not a rendering fix, which is why the lane left it.

Reference: internal/webui/api_chat.go chatMediaView (type, file name, mime, size, width, height, duration, url -- deliberately no file id, no bytes, no host path), ui/src/chat/attachment.ts mediaLabel/mediaDetail, ui/src/chat/ChatAttachment.vue.


Imported from beads archie-core-ykrp · GitHub #1387 · type task · priority P3 · created 2026-09-29

Two follow-ups from the transcript-attachment lane (feat(webui): show attachment metadata in the session transcript), neither of which is a rendering bug in itself. 1. LATENT DOUBLE LABEL. A Telegram attachment is stored with the channel note already in Text ("[photo]\n<caption>"), so once a media-carrying message is rendered the transcript shows the chip [photo] AND the note in the body. The note exists for the MODEL history (stored history is text-only, so the note is what a later turn reads) and must not change. The fix is display-side: when a message has media, drop a leading bracketed note line from the rendered text. Not visible today only because of item 2. 2. SESSIONS WITH MEDIA ARE UNREACHABLE. /api/chat/sessions and /api/chat/sessions/{id}/messages refuse any session whose platform is not "web", and the browser inbound decode attaches no media, so no media-carrying session can currently be listed in the dashboard. Wiring that up means deciding whether Telegram conversations belong in the dashboard chat panel at all -- a product decision, not a rendering fix, which is why the lane left it. Reference: internal/webui/api_chat.go chatMediaView (type, file name, mime, size, width, height, duration, url -- deliberately no file id, no bytes, no host path), ui/src/chat/attachment.ts mediaLabel/mediaDetail, ui/src/chat/ChatAttachment.vue. --- _Imported from beads `archie-core-ykrp` · GitHub #1387 · type task · priority P3 · created 2026-09-29_
sam added the lowtask labels 2026-10-27 13:41:21 +00:00
sam self-assigned this 2026-10-27 13:41:21 +00:00
sam closed this issue 2026-11-08 12:04:49 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1677