Skip to content

#805 One-time Timeline Style picker with option cards - #807

Merged
ivanfenenko merged 3 commits into
mainfrom
feature/805-timeline-style-picker
Oct 23, 2026
Merged

ivanfenenko merged 3 commits into
mainfrom
feature/805-timeline-style-picker

Conversation

@ivanfenenko

@ivanfenenko ivanfenenko commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Updated installs see a one-time Timeline Style picker bottom sheet the first time they open a session with history: Activity Card first, preselected and tagged Recommended; their current style tagged Current; "Use <style>" saves it; swipe / scrim / back / ✕ saves Activity Card. Both show "Timeline: <style>. Change it any time in Settings." and the sheet never returns.
  • New installs start on Activity Card (was Chips) and never see the picker. resolveTimelineForInstall replaces resolveChipTimelineForInstall; the in-memory default stays Standard.
  • New or empty sessions, and chats with a permission or question open, skip the offer for that open. A Settings choice also ends the picker. The Chip timeline intro never shows while the picker is pending, and any answer ends it.
  • Design system (both platforms):
    • OpenCodeOptionCard (new, Lists, gallery entry): one choice in a single-choice list. Bordered card with a leading radio, title, optional small tag (moves under the title when both don't fit), up to 3 lines of subtitle, and a 92×56 skeleton illustration preview. Selected = interactive border + surface-interactive-weak fill; disabled = 50%. Meant for other pickers later.
    • OpenCodeTag accent tone (interactive text on a 12% interactive fill) next to the neutral look.
    • Bottom sheet fitAllContent height: wraps all content up to the tallest card the screen allows and only scrolls past that, instead of dropping to the 50% detent at 420pt. fitContent / half unchanged.
    • Four timeline skeleton illustrations; bottom sheet entries can also show an illustration decorator and a tag (gallery).
Picker Selected After Use
iOS
Android

Checks

  • iOS: full OpenCode MobileTests target passes locally (2,671) with the option cards, including OpenCodeBottomSheetHeightTests (new fit-all tests), SessionChatDisplayPreferencesTests, ChipTimelineIntroTests and SessionChatViewModelTests.
  • iOS CI went red twice in MessageSyncTests, which this PR does not touch, each time on a different timing-sensitive test:
    • hungInitialRest_cacheSeed_confirmsSyncWhileSseConnected had a race in the test: it released the held REST call right after the cache painted, before the call was always held. Fixed in 4f444d4 by waiting until the call is held; the suite passes 3/3 locally.
    • hiddenReasoningTransportGap_reconcilesOnce timed out once waiting for the gap recovery call; it passes locally and was not changed. If it fails again it needs its own look.
  • Android: :app:assembleDebug and the full :app:testDebugUnitTest pass, including new OpenCodeOptionCardTest, SessionChatTimelineStylePickerSheetTest, fit-all layout tests and the picker view-model tests; ktlintCheck clean on added lines.
  • Real apps against a local opencode v1 server (iPhone 17 simulator, Pixel 9a emulator): the picker shows once after history loads with all four cards in view, selection moves and the button follows, Use and dismiss store the right style and show the notice, reopening does not show it again. A fresh Android install stores Activity Card with the picker done.

Issue

Risks / Follow-ups

  • Closing the picker without choosing moves a Chips or Step Rail user to Activity Card (as specified on the issue).
  • Clear All Data resets the in-memory style to Standard until the next launch, when the install resolver sets Activity Card.
  • On very short windows Android keeps the fit-all limit at least half-height; iOS has no such floor.
  • Checked in light theme only.

🤖 Generated with Claude Code

Updated installs pick their Session Chat timeline once, from a bottom
sheet on the first session open with history; closing it keeps Activity
Card. New installs start on Activity Card and never see it. Any answer,
or a Settings choice, ends the picker and the Chip timeline intro.

Adds four timeline skeleton illustrations and lets bottom sheet entries
show an illustration thumbnail and a tag, on iOS and Android.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Adds OpenCodeOptionCard, a reusable single-choice card with a radio,
title, tag, subtitle, and illustration preview; an accent tone for
OpenCodeTag; and a fitAllContent bottom sheet height that grows to the
screen's sheet limit before scrolling. The Timeline Style picker uses
all three, so every option is in view and the sheet matches prototype B.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ivanfenenko ivanfenenko changed the title #805 One-time Timeline Style picker for updated installs #805 One-time Timeline Style picker with option cards Oct 23, 2026
hungInitialRest_cacheSeed_confirmsSyncWhileSseConnected released the
held list call right after the cache painted. On a busy CI runner the
call can start a moment later, so the release missed it, the call stayed
held, and the sync never confirmed. Wait until the call is held first.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ivanfenenko
ivanfenenko merged commit f7c8ed8 into main Oct 23, 2026
2 checks passed
@ivanfenenko
ivanfenenko deleted the feature/805-timeline-style-picker branch October 23, 2026 21:15
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: one-time Timeline Style picker for updated installs

1 participant