Files
t3code/apps
Ben DavisandClaude Fable 5 31113dfe7f fix(web): a turn's media messages no longer hide behind "Worked for …"
Live repro: Hermes sent two files plus a closing caption in one turn, and
the thread rendered only the caption — the file cards sat inside the
collapsed turn fold until the user expanded "Worked for 32s". Two causes:

- Fold eligibility kept exactly one visible message per turn (the last
  assistant message), built for streamed commentary before media existed.
  A message carrying attachments is a deliverable, not commentary: it is
  now always terminal, and the fold's hiding loop spares every terminal
  message rather than only the group's anchor. Intermediate text still
  folds exactly as before.

- Ordering: the server stamps milliseconds while the plugin stamps
  microseconds, and the raw string sort puts ".546Z" after ".546238Z"
  ("Z" > "2") — so the caption rendered below the files it introduced.
  Timeline sorting now normalizes fractional seconds before comparing;
  still a pure string compare, all inputs are UTC Z-suffixed.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-07-28 11:05:57 -07:00
..