Skip to content

[Feature]: Desktop: show the date, time and model under each message #187

Backlog

Description

@magicprinc

Problem

In Command Code Desktop a message carries no visible date, time or model. The reader has to hover, open a menu, or leave the session to answer questions that come up constantly:

  • when was this asked, and how long has this run been going?
  • which model answered this particular message?
  • in a long session where the model was switched, where exactly did the switch happen?

What exists today (0.1.63)

Time is recorded but never shown.

  • Every transcript record has a top-level ISO timestamp; user records also carry meta.createdAt in epoch ms.
  • The renderer never reads it for a message: searching the shipped renderer/assets bundle for message.timestamp, msg.timestamp and .meta.createdAt returns 0 hits.
  • A time formatter does exist — l5(...), which renders hour:minute within 24 h and short month + day beyond — but the only caller uses it for a usage-limit reset time, not for messages.

The model is stored per thread, not per message.

  • app-state.json keeps model, modelProvider, createdAt, updatedAt, lastActivityAt on the thread.
  • A message's message object holds only role and content (plus tool blocks); there is no model or providerId field. In a 432-message transcript, 0 messages carry a model.
  • So even if the UI wanted to show the model per message, a mid-session /model switch cannot be represented today: every message would show the thread's current model.

Proposal

  1. A permanent identity line under each user message (and, if space allows, at the end of each assistant turn): model · date time, muted, at chip size — not hidden behind hover.
  2. Absolute time, not relative: 24 Nov 2026, 12:34 (locale-aware). A relative copy in the tooltip is welcome but not required.
  3. Day separators in the timeline when the gap crosses midnight, so a long resumed session has structure.
  4. Model per message must be recorded. Persist the model and provider used for each turn in the transcript at send time, so a /model or provider switch mid-session is visible exactly where it happened. Messages written before this change can fall back to the thread model, and the fallback should be honest (e.g. show the model without claiming it is per-message).
  5. A setting to hide it, default on, for people who want the minimal timeline.

Why it is worth doing

The information is already there and is being thrown away. Half of it costs nothing (timestamp is in every record); the other half needs one field saved at send time. Nothing here changes model context or token usage — it is render-only data.

Acceptance criteria

  • A user message shows model · date time without hovering.
  • The value matches the transcript: same date, same time to the minute.
  • After a /model switch inside one session, older messages keep the model they were sent with, and a visible marker shows where it changed.
  • Messages from an older transcript render with the thread model and do not crash on the missing field.
  • The setting hides the line and the layout closes up cleanly.

Environment

Command Code Desktop 0.1.63, Windows 10 (build 19045) x64.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions