Skip to content

OPE-260: Session Chat chip timeline behind a display toggle #540

Closed

Description

@ivanfenenko

A user can switch Session Chat to a compact chip timeline where each assistant narration paragraph is followed by the tools it used as tappable chips, instead of one card per tool call, and compare it with the current timeline from a Settings toggle.

Shared behavior

  • New device-local Session Chat display preference "Chip timeline", default off, cleared by Clear All Data, next to "Collapse consecutive tool calls".
  • With the toggle on, an assistant turn renders as step paragraphs: the narration text block followed by a chip row for the tool parts that follow it until the next text part. Tools with no preceding text in the message render under an italic placeholder paragraph ("Worked without commentary").
  • Chip kinds: file (read/glob/grep/webfetch/edit/write, edit and write show +additions −deletions), command (bash/shell/execute, first two words plus pass/fail mark), agent (task/subagent child session, with name, brief, and duration or elapsed), skill.
  • Chip states: pending, running, completed, error. Error chips render red and the paragraph gets one error line per failed chip.
  • Explore chips truncate to 2 per paragraph with a "+N more" chip that expands the row; edit/write chips truncate to 3.
  • Tapping a chip reuses the existing tool card actions: tool detail sheet, Changes review for edits/writes, child session navigation for agents.
  • With the toggle off, timeline output is byte-for-byte what it is today (existing block builder tests keep passing).
  • Reasoning rows, attachments, the pinned Inbox (permission and question requests), and the Running footer are unchanged in both modes.

Design system

  • New OpenCodeToolChip component on both platforms: variants file, command, agent, skill; states pending, running, completed, error; optional diff counts, trailing duration; gallery entry and previews.

Out of scope (follow-ups if the mode wins)

  • Folding runs of quiet paragraphs, a sticky live-step header, request cards under paragraphs.

Prototype: research/drafts/prototype-session-chat-chips.html (round three of the Session Chat narrative prototypes, 2026-09-28).

Remaining:

  • OpenCodeToolChip component, gallery, and previews on iOS
  • OpenCodeToolChip component, gallery, and previews on Android
  • Chip timeline preference in SessionChatDisplayPreferences and Settings row on both platforms
  • Step-paragraph block kind in the timeline block builder with unit tests on both platforms
  • Timeline render branch for the new block with chip actions on both platforms
  • Verify toggle-off output unchanged; run iOS and Android unit tests
  • Snapshot evidence scenario for the chip timeline on both platforms (SessionChatSnapshotHost does not go through the block pipeline)
  • Agent chip duration text: ToolPart has no end time on either protocol; keep v1 step-finish or derive from v2 content time
  • Review PR opencode-mobile/opencode-mobile#321, then decide on the follow-ups from the prototype: fold quiet paragraphs, sticky live-step header, request cards under paragraphs

Imported from Linear OPE-260. Linear status: Done. Priority: Medium. Created 2026-09-28. Completed 2026-09-29.
Related: OPE-270, OPE-268.

Activity

  1. self-assigned this
    on Oct 11, 2026
  2. added
    enhancement
    ios
    android
    shared
    priority: medium
    on Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

androidenhancementiospriority: mediumshared

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions