Skip to content

Date time format in the conversation #44588

Closed as not planned
Closed as not planned

Description

@Eugene-Zhou

Description

Hi OpenCode team:

OpenCode is a very nice agent, I like it.

the problem is, sometimes i want to know when a certain message was sent, but it shows like "build Hy3 11:28" in conversation, no year, month and day.

could you guys change the time format to 'yyyy-MM-dd HH: mm: ss' or 'MM/dd/yyyy HH: mm: ss'?

thank you very much!

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. github-actions commented on Aug 24, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    If your request is covered by one of these, consider adding a comment there instead.

  2. claell commented on Aug 25, 2026

    @claell

    Same observation from OpenCode Desktop 1.18.21 on Windows 11: hovering a user message shows only the clock time, never a date — so anything from yesterday or older is effectively undated when reopening sessions.

    For agent responses the displayed working duration is fine and worth keeping; for user messages an absolute date+time is what's missing (e.g. full yyyy-MM-dd HH:mm or smart labels like "Yesterday 09:10", with the full date available on closer inspection).

    Related: #44936 (my report of the same gap on Desktop, filed before finding this one — happy to consolidate here).

  3. vadimmg-cmd commented on Oct 22, 2026

    @vadimmg-cmd

    Adding to this request with two concrete data points.

    1. The implementation already exists, but it was never reviewed.
      PR fix(session-ui): show dates in message timestamps #45590 ("fix(session-ui): show dates in message timestamps") adds
      locale-aware labels (today/yesterday with time, short date for older
      messages, full date on hover), includes tests, and had review requested
      from Hona and Brendonovich. It was closed on 2026-09-27 by the automated
      PR cleanup bot because it was older than a month and had fewer than 2
      positive reactions — not because of a design decision. I added a 👍 and
      asked the author to reopen it. This looks ready to merge as-is.

    2. I've been running a byte-level patch of my own, so the feature is not
      blocked in the meantime.
      On OpenCode Desktop 1.19.3 (Windows 11) I patch the bundled app.asar to
      add dateStyle: "short" next to the existing timeStyle: "short" in
      packages/session-ui/src/message/message-content.tsx, so message footers
      show "2026-10-22 23:10" instead of just "23:10". The patch is
      size-preserving and re-applied after each app update, but it is manual
      and it will break whenever the bundle changes.

    Questions:

    • Is there an official/supported way to do this (a plugin hook, a config
      option, or a settings surface for the desktop UI)? Right now the config
      schema has no display/date section at all.
    • If the project prefers a setting over a fixed format, would you accept
      something like time / date-time / relative (the proposal in
      [FEATURE]: Add configurable timestamp display format (date + time) #58034), with the current behaviour as the default?

    Also worth noting: the CLI lost its session.toggle.timestamps toggle in
    the v2 rewrite (see #49742) and the TUI transcript in v2.x shows no
    timestamps at all, so the timestamp surface is shrinking in several places
    at once. The data is always there (message.time.created), it's just not
    rendered.

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

Metadata

Metadata

Assignees

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