Skip to content

#779 Step rail and activity card timelines with a Timeline Style picker - #782

Merged
ivanfenenko merged 16 commits into
mainfrom
feature/779-step-rail-timeline
Oct 22, 2026
Merged

ivanfenenko merged 16 commits into
mainfrom
feature/779-step-rail-timeline

Conversation

@ivanfenenko

@ivanfenenko ivanfenenko commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Two new Session Chat presentations for an assistant turn, selectable next to Standard and Chips so all four can be compared on real sessions and the losers removed later.

  • Step Rail: one short line per step on a vertical rail with a status dot, live elapsed time on running steps, parallel running steps as indented branches, more than four settled steps folding into "N earlier steps" (tap to unfold in place), a trailing "Thinking…" step while the turn works with nothing running, and child sessions as nested cards that push the child session.
  • Activity Card: one compact card per segment: a shimmering "Working" header with elapsed time, a summary line ("6 steps · 3 reads · 1 search · 1 agent · 1 edit"), an Agent section listing each running child session with its current action (observed from the child's own messages over the existing repository and live-event path) that pushes the child on tap, and a footer band with the latest running tool ("+N" when more run) that opens a live activity sheet. The sheet lists child sessions with their recent steps and every step of the segment, stays live while open, and lets a step open its detail or Changes. Settled segments fold into one "Used N · Read, Edit, Agent" line that opens the same sheet. No spinners on the card; the shimmer is the only animation.
  • Both styles share one step builder and one stable identity per segment (sr: / ac: + first part id), so joining tools update in place instead of recreating the row. The Working footer hides while a live rail or card exists. Taps reuse the existing tool actions.
  • Settings replaces the Chip Timeline toggle with a Timeline Style picker (Standard / Chips / Step Rail / Activity Card) using the bottom-sheet picker pattern. The stored chip preference migrates (on → Chips, off → Standard), the install default is unchanged, Chips stays behind the session_chat_chip_timeline flag, and Clear All Data resets it.
  • New design-system components OpenCodeStepRail, OpenCodeActivityCard and the activity sheet on both platforms, each with component-gallery entries. OpenCodeBottomSheet gains a running-title header variant (iOS titleState, Android titleContent).
  • Both message stores no longer let a late duplicate "running" update (v1 sends every part update on both event streams) reopen a tool that already completed or failed. Found while verifying; the standard timeline was exposed too.
  • iOS: a v1 invalid tool call renders as the requested tool with a failed state and "Tool not available"; an answered question step shows the chosen answer; a live card stays live while a permission or question is pending.

Standard and Chips timelines are unchanged. Prototype with every direction tried (A to E3; the Activity Card is E1 iteration 3): branch prototype/779-session-activity-row.

Checks

  • iOS: xcodebuild build-for-testing + xcodebuild test on a simulator; full unit target 2398 tests in 232 suites pass; the touched suites (SessionChatActivityCardTests, SessionChatStepRailTests, SessionChatDisplayPreferencesTests, SessionChatTimelineOlderHistoryTests, SessionChatViewModelTests, store tests) pass, with one timing flake in the send path that passed on two re-runs.
  • Android: ./gradlew :app:assembleDebug :app:testDebugUnitTest: 2479 tests, 0 failures, 1 skipped, including SessionChatStepRailTest, SessionChatActivityCardTest, SessionChatTimelineStyleTest, SessionChatViewModelTest (drives a child observation through an open sheet) and the store regression test. ktlintCheck reports only pre-existing violations.
  • Real app, both platforms and both new styles, against a real opencode v1 server with the scenario harness: picker and persistence across relaunch; streaming text then tools; parallel tools ("+1"); child sessions running with their current action, leaving the Agent section when done; "Waiting for agents" and "Thinking…" footers; failed tool; permission and question prompts; stop; long turns (rail fold 2 → 5; card summary to 14 steps with constant card height); agent row push; footer sheet live and growing while open; step taps from the sheet; settled line and settled sheet; Standard and Chips unchanged. No row recreation or flashing in recordings; elapsed tickers keep ticking. Evidence tables on Session Chat step rail and activity card timelines with a Timeline Style picker #779.
  • Firebase App Distribution dispatched for the branch at the four-style commit (e58c210c) on both platforms, both succeeded; the E1 reshape (91fd8e3d) has not been distributed yet.

Issue

Risks / Follow-ups

  • v2 server, Reduce Motion, dark mode, iPad and VoiceOver not exercised in the real-app pass.
  • Settled steps, the settled sheet header and finished child sessions show no duration because tool parts carry no end time.
  • Live parallel rail branches were only seen live on iOS; the Android harness ran the burst sequentially, so that row is covered there by unit tests and the gallery.
  • Intentional differences: a rail stays "live" on Android while a permission or question is pending and pauses on iOS; the card's idle footer says "Waiting for you" on iOS during a prompt; Android counts skills as a family ("1 skill") in summaries, iOS leaves them uncounted; neither counts questions; a step tap from the sheet opens the detail over the sheet on iOS and closes the sheet first on Android.
  • The activity sheet sits at half height on both platforms and scrolls; no drag-to-full.
  • Once the comparison is done, the losing styles and their components should be removed in a follow-up.
  • Seen in Standard too, not touched: on v1 a stopped shell is recorded as completed, and streamed text doubles for one frame.

🤖 Generated with Claude Code

Session Chat gains a third presentation for an assistant turn: a step rail,
one short line per step on a vertical rail with a status dot, live elapsed
time on running steps, parallel steps as branches, settled steps folding
into "N earlier steps", and child sessions as nested cards. The rail keeps
one stable identity per segment so joining tools never recreate it.

Settings replaces the Chip Timeline toggle with a Timeline Style picker
(Standard, Chips, Step Rail); the stored chip preference migrates.

Android also stops a late duplicate "running" part update from reopening a
tool that already completed or failed, which v1's doubled event streams
could trigger.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
ivanfenenko and others added 2 commits October 21, 2026 14:30
v1 sends each part update on both /global/event and /event, so a late
in-flight "running" duplicate could reopen a tool that already completed
or failed. The iOS message store now keeps a settled tool's status, error
and output, matching Android.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Session Chat gains a stacked activity card next to the step rail: one live
card per segment with a shimmering Working header and elapsed time, one
line per running step with a spinner, icon and ticking elapsed, "+N more
running" past two lines, a footer with the finished count by family, and an
inline expand that lists the finished steps. When the turn settles the card
folds into one line ("9 steps · 3 reads · 2 edits"). The rail and the card
share one step builder and the same stable per-segment identity.

The Timeline Style picker now offers Standard, Chips, Step Rail and
Activity Card so the four can be compared on real sessions.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@ivanfenenko ivanfenenko changed the title #779 Step rail timeline and Timeline Style picker #779 Step rail and activity card timelines with a Timeline Style picker Oct 21, 2026
ivanfenenko and others added 3 commits October 21, 2026 16:52
The Activity Card style now shows a compact overview per segment: a
shimmering "Working" header with elapsed time, a summary line with step and
family counts, an Agent section listing each running child session with
its current action (observed from the child's own messages), and a footer
band with the latest running tool that opens a live activity sheet. The
sheet lists child sessions with their recent steps and every step of the
segment, and stays live while open. Settled segments fold into one
"Used N · Read, Edit, Agent" line that opens the same sheet. Inline
expansion is gone; the Step Rail is unchanged.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Material body text carries a tall line height and font padding that pushed
the single glyph below the tile's centre. Pin the line height to the font
size, drop font padding and center the line box.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
ivanfenenko and others added 3 commits October 21, 2026 17:46
…ottling

- Card and settled line use the small radius token (8) like the tool call
  card instead of the prototype's 14.
- Activity sheet hairlines run full width and rows have a 44pt/48dp
  minimum height so they are comfortable to tap.
- Agent rows on the card are taller and, on Android, clip their press
  ripple to a rounded shape instead of a hard-edged rectangle.
- A child session's current action is held for at least 800 ms before the
  next one replaces it (conflate + delay on Android, a small main-actor
  throttle on iOS), always settling on the latest value, so fast tool
  bursts read as a smooth update rather than flicker.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
The rounded ripple hugged the letter tile and chevron. The row's press
surface now bleeds 8dp past its content on both sides, inside the card's
padding, while the content stays aligned with the header text.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Both are tap targets; give them the same 48dp / 44pt minimum height as
the agent rows, with matching vertical padding, on both platforms.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
… from it

A step tapped inside the activity sheet closed the sheet and opened the
tool detail; closing the detail then left the user back in the chat. The
detail now remembers the card it came from, shows a back arrow in its
header, and reopens the activity sheet when it closes (back arrow, swipe
or system back). iOS already stacks the detail over the sheet.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
ivanfenenko and others added 2 commits October 21, 2026 22:28
…t line

Drop the tinted background behind agent rows; the coloured agent name is
enough. A finished child's result line skips wrapper tags such as
`<subagent sessionID="…">` instead of showing them raw.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
…igation

A step tapped in the activity sheet now swaps the sheet's content to that
step's detail (thought, tool output, failure text, answered question) with
a back arrow and the detail title in the header; back returns to the list,
which keeps updating meanwhile, and close dismisses the whole sheet. On
Android system back goes detail → list → closed. Steps that navigate
(child session, Changes) still close the sheet. The tool detail body is
now one shared piece used by both sheets, and the earlier Android
stop-gap that reopened the activity sheet behind a separate detail sheet
is gone.

Also: section labels, agent captions and step details use the readable
weak text tone in light theme, and iOS sheet rows match Android's 48pt
minimum height.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
…ttled cards

- The settled line reads "3 steps · Read, Grep" and the settled sheet
  header "3 steps" instead of "Used 3".
- A settled segment with exactly one tool or thought shows the standard
  tool card or "Thought · 12.9s" row directly, with its normal tap. Live
  segments and lone child sessions keep the card.
- A settled card whose segment used child sessions keeps an Agent section
  under the line: one row per child with its first result line (else the
  description), tapping it opens the child.
- iOS gains the same child result line Android has (task_id header and
  wrapper tags skipped). Android re-marks live cards from the built list
  on status changes so a busy→idle→busy flicker cannot leave a swapped
  tool card where the live card belongs.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Short tools that start and finish inside one update were drawn for a
single frame: the activity card footer flicked from "Thinking…" to a
tool title and back, and the step rail popped a bright running row that
turned into its settled form a frame later.

The card footer now latches what it shows for 1200 ms, switches a tool
that finished during the hold to its settled wording in place, applies
the latest pending value on expiry with one bounded catch-up, and
crossfades changes. Steps render in their running form only after the
client has seen them in flight for 300 ms; one that settles sooner
appears settled directly, and the trailing "Thinking…" row stays put.
Both rules live in clock-injected state machines with unit tests on
each platform. Standard and Chips are unchanged.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
ivanfenenko and others added 2 commits October 22, 2026 12:28
…-timeline

# Conflicts:
#	android/app/src/main/java/dev/opencode/mobile/ui/components/chrome/OpenCodeBottomSheet.kt
Rail rows were about 34dp tall with a full-width rectangular ripple on
Android and no press feedback on iOS, so they were easy to miss and gave
no sense of a tap landing. Every row now has a 36dp/pt minimum height
with centred content, and tappable rows show a rounded highlight that
starts just before the text and bleeds 8 past it, clear of the rail line
and dot: a bounded ripple on Android, a pressed fill that fades out on
release on iOS (instant under Reduce Motion). The horizontal bleed
modifier moves out of the activity card into a shared file.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@ivanfenenko
ivanfenenko merged commit b2cb6d8 into main Oct 22, 2026
@ivanfenenko
ivanfenenko deleted the feature/779-step-rail-timeline branch October 22, 2026 14:13

This branch was previously deployed

2 inactive deployments
ios-release — e591db98 Deployed Oct 22, 2026 by ivanfenenko
android-release — e591db98 Deployed Oct 22, 2026 by ivanfenenko
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.

Session Chat step rail and activity card timelines with a Timeline Style picker

1 participant