Skip to content

Session Chat: reveal user message time by dragging the bubble left #894

Closed

Description

@ivanfenenko

Session Chat stops drawing the metadata footer under each user message ("Build · DeepSeek V4 Flash · 9:05 PM", OpenCodeOutgoingMessage on both platforms). Instead, dragging a user bubble left reveals that message's time. This replaces the footer.

Why: Session Chat already shows inline notices when the agent or model changes, so the agent and model in the footer repeat them. Only the time adds information, and it is rarely needed, so it moves behind a gesture.

Design: prototype variant F ("Drag one bubble left"), picked by the user.

Behavior

  • Drag a user bubble left: only that bubble (and its attachment chips) moves. It follows the finger at about 0.9×, with rubber-band resistance up to a 72 pt/dp cap. The time fades in as the drag progresses, at the right edge (about 14 pt from the screen edge), vertically centred on the bubble.
  • Messages not sent today show the day under the time: "Yesterday", the weekday within the last week, otherwise a short date. Uses the device locale and 12/24-hour setting.
  • Release springs back.
  • Dragging right does nothing (stays at 0). The direction is decided after about 8 pt; a mostly vertical drag scrolls the transcript as today. The iOS edge back-swipe and the Android system back gesture keep working.
  • Assistant messages: no reveal (out of scope; they have no footer today).
  • VoiceOver/TalkBack read the time (plus agent and model) as part of the user message, because the gesture is invisible to them.
  • Existing user-message interactions (tap / long-press message actions, attachment taps) keep working.

v1 and v2

v2 records agent and model changes as server notices, which Session Chat already draws (#702). v1 has no such messages, but every v1 user message carries its agent and model. To keep one UI for both protocols without losing information on v1, the timeline derives the same "Agent changed" / "Switched to" notices from consecutive user messages when the server sent none.

Acceptance

  • No metadata footer under user messages on iOS and Android, on v1 and v2.
  • Drag-left reveal of the time on user bubbles, matching the behavior above, on iOS and Android.
  • Vertical scroll, edge back gesture, tap and long-press actions and attachment taps still work.
  • Accessibility label of a user message includes its time (and agent/model).
  • v1 sessions show agent/model change notices derived from user messages; v2 sessions show only the server notices (no duplicates).
  • Unit tests on both platforms: time/day label (today, yesterday, this week, older, 12/24h), drag offset/opacity mapping (cap, rubber band, right drag clamps to 0), accessibility label includes time, derived notices.
  • Verified in the real apps against the scenario harness, with screenshots for both platforms.

Activity

  1. added
    enhancement
    ios
    android
    on Oct 29, 2026
  2. ivanfenenko commented on Oct 29, 2026

    @ivanfenenko
    CollaboratorAuthor

    Implemented in #897. How v1 is handled: v1 servers record no agent/model change notices, so the timeline now builds the same "Agent changed" / "Switched to" notices from consecutive v1 user messages (gated by a recordsTimelineChangeNotices capability; v2 keeps the server notices). As on v2, the first agent and model in a session get no notice. The composer still shows the current agent and model, and screen readers still read them per message. v1 was checked by unit tests only (no 1.x opencode binary on the test machine).

  3. added 3 commits that reference this issue on Oct 29, 2026
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

    androidenhancementios

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions