Repository navigation
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/web
Steps to reproduce
- Have another agent send this thread a message with
j5_send_message. - In the timeline, the message shows folded to one line under the sender's identity line.
- Click the folded row to expand it.
Expected behavior
The expanded message shows its text once.
Actual behavior
The first line of the message shows twice. The fold header stays at the top, still showing the truncated first line ("Hi, this is the "Analyze Bank Availability and Downtime" agent. Jackson asked me to tell you about a Codex requiremen…"), and the body below it starts with the same sentence in full.
The fold header is upstream's (FoldedMessageHeader, from pingdotgg#23135). It shows summary whether the message is folded or expanded, and upstream main @ 240446e still does this. Upstream's header also names the sender, so its expanded header reads as "sender + first line". J5 clears that label because the name is already on the identity line (FORK.md case 7, label={userMessage.j5 ? "" : senderLabel}). That leaves J5's expanded header as nothing but the repeated sentence:
apps/web/src/components/chat/TimelineUserMessageRow.tsx:510-516:summary={userMessage.preview ?? foldSummary}packages/client-runtime/src/j5/userMessagePresentation.ts:456:preview: firstLine(envelope.letter)
J5's platform prompts in AutomationMessageRow (playbook steps, native questions) use j5.preview as their summary too, so they probably repeat the same way. I haven't checked that. Mobile's AgentMessageFoldHeader (apps/mobile/src/features/threads/ThreadFeed.tsx:1055) follows the same pattern and should be checked too.
Impact
Cosmetic issue
Version or commit
j5/main @ a6759ed
Environment
Web client (J5 Code desktop), seen on an A2A message from a Peer Agent marked "Expects reply".
Logs or stack traces
n/a (screenshot of the expanded message)Workaround
None needed; it only takes extra space.
Proposed fix and ownership
This is upstream's fold, so the behavior is zone 3. J5 already edits this exact line (case 7), though, and J5's empty label is what makes the repeat obvious. Options:
- J5, inside case 7's existing edit: pass the summary only while the message is folded, so the expanded header keeps just its icon and chevron. That's a one-expression change to a line J5 already carries, recorded in case 7. Apply the same rule to
j5PromptRow's summary, and to mobile if it repeats too. - Upstream: a small
pingdotgg/t3codePR that hides the summary while expanded, since upstream repeats the first line too, just next to the sender label. - Follow upstream: leave it.
🤖 Generated with Claude Code
Activity