Skip to content

feat(cli): Add turn number and relative time to role headers - #807

Merged
JeanMertz merged 2 commits into
mainfrom
jp-c-print-turn-and-time-indicators
Jun 29, 2026
Merged

feat(cli): Add turn number and relative time to role headers#807
JeanMertz merged 2 commits into
mainfrom
jp-c-print-turn-and-time-indicators

Conversation

@JeanMertz

Copy link
Copy Markdown
Collaborator

When printing a conversation, the first role header of each turn now shows a dimmed detail at the right edge: the 1-based turn number and how long ago that turn started, e.g. ── user ──…── turn 2, 12 minutes ago ──.

The detail is taken from the TurnStart event's timestamp, falling back to the turn's first event for legacy streams that lack an explicit marker. The assistant header within the same turn renders without it, so the annotation appears exactly once per turn regardless of which role opens it.

When printing a conversation, the first role header of each turn now
shows a dimmed detail at the right edge: the 1-based turn number and
how long ago that turn started, e.g. `── user ──…── turn 2, 12 minutes
ago ──`.

The detail is taken from the `TurnStart` event's timestamp, falling
back to the turn's first event for legacy streams that lack an explicit
marker. The assistant header within the same turn renders without it,
so the annotation appears exactly once per turn regardless of which
role opens it.

Signed-off-by: Jean Mertz <git@jeanmertz.com>
Signed-off-by: Jean Mertz <git@jeanmertz.com>
@JeanMertz
JeanMertz merged commit 4f13d37 into main Jun 29, 2026
16 checks passed
@JeanMertz
JeanMertz deleted the jp-c-print-turn-and-time-indicators branch June 29, 2026 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant