Skip to content

Loop and system messages carry createdAt but never render it — and elapsed-between-steps is the number that matters #336

Description

@serge-ivo

The report

Why don't loop messages have timestamps? What are they designed to portray? Why are they a
different colour?

The colour is deliberate and defensible. The missing timestamp is a gap, and it matters most for
exactly these messages.

What they are

Loop entries — **Loop → engine** (step 3): …, **Loop complete** — are role: "system", the
same channel as Error: …, "No response", and interrupted-turn notices. They exist because the
platform, not the browser, drives autonomous work (InstanceDetail.tsx:369):

The console used to BE the loop: poll /loop-decide, send the next instruction. That died with
the tab and could not be budgeted, because the platform did not drive it. Now the workflow drives
and this only reports.

So they are the audit trail of work that ran whether or not anyone was watching. That is why they
belong in the thread rather than a log.

Why the colour differs — this part is right

:1082: yellow, centre-aligned, pill for short entries and a bordered block for long ones. Three
distinct channels:

you accent, right
assistant panel, left
system yellow, centre

Centre + yellow reads as "neither of you said this — the platform is reporting". Worth keeping.

Why there is no timestamp

The time is rendered inside a header row that exists for two roles only:

:1104   {m.role === "user"      && <div …>You … {formatDateTime(m.createdAt)}</div>}
:1105   {m.role === "assistant" && <div …>Assistant … {formatDateTime(m.createdAt)}</div>}

There is no system branch, so no header, so no time — even though createdAt is on the record and
formatDateTime is already imported.

Why that is backwards for loop entries specifically

A user or assistant message is bounded by the ones around it; you roughly know when you said it. A
loop entry reports work that ran on its own schedule, minutes apart, often while you were
elsewhere. In a real FWS thread, **Loop → engine** (step 3) and (step 4) were 2m20s apart
and nothing on screen said so.

The two facts a reader actually wants from an autonomous run are when and how long between
steps
, and the transcript currently shows neither.

Proposal

  • Render createdAt on system messages, in the user's timezone (Agents report timestamps in UTC because nothing ever told them the user's timezone — and no prompt has a clock #329 — right now the only times
    visible anywhere are the UTC strings the agent puts in prose).
  • For loop entries, show elapsed since the previous entry as well. "step 3 → step 4: 2m20s" is
    the scanning signal; an absolute clock time is not.
  • Keep it visually quiet — these are centred pills, not bubbles with headers. A right-aligned
    text-[0.65rem] opacity-70 inside the pill is probably enough; a full header row would fight the
    shape.

Verification

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions