Repository navigation
OPE-279 Add tablet split view for Home and Settings - #356
Conversation
On regular width (iPad) and windows 720dp or wider (Android), Home shows the session list beside the selected Session Chat, and Settings shows its list beside the selected sub-screen. A sidebar button in the detail top bar hides and shows the leading pane; the divider carries a grab handle that resizes the pane (280-480), snaps closed below 220, and toggles on tap. Pane width and collapsed state persist per screen. Compact widths keep stacked navigation. Adds the `sidebar` Lucide icon to the shared catalog and an OpenCodeSplitPane component with a Component Gallery entry on both platforms. Co-Authored-By: Claude Fable 5.1 <[email protected]>
OPE-279 Tablet split view for Home and Settings
On wide screens (iPad regular width, Android expanded width class) Home and Settings show two panes side by side: the existing phone Home list (top bar, session rows, project scope dock) or Settings list on the left, and Session Chat or the Settings sub-screen on the right. The left pane can be hidden so the content column takes focus and centers. Decision (prototype, 2026-10-10): split view with a persistent sidebar toggle in the content pane top bar, plus a divider grab handle as a bonus: drag resizes the pane (280–480pt), dragging below 220pt snaps it closed, tap toggles. When the pane is collapsed the handle disappears; the top-bar button is the way back, with an optional left-edge swipe. Pane width and collapsed state are remembered per screen. Phones and compact widths keep the current stacked navigation. Builds on the shared compact/regular width work from OPE-232. Acceptance:
Remaining:
|
|
@cursor review |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 4 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 6d06ffe. Configure here.
Returning from Session Context, Changes, a tool group or a child session rebuilt the chat view model inside .task(id:), which reloaded the model catalog and the timeline and made the list jump. The view now keeps its view model while the session identity is unchanged and only resumes observation on reappear. Opening a session no longer paints an empty first frame from the warm path, and the bottom pin survives the top pill inset change. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Plain OpenCodeListItem rows draw selection and press highlights as a rounded shape inset 8 horizontally and 2 vertically, keeping row geometry. The Home session list skips the divider directly above and below the selected row. Gallery entries show a selected plain row on both platforms. Co-Authored-By: Claude Fable 5.1 <[email protected]>
- Settings hands its selected sub-screen to stacked navigation when the window narrows, like Home does for the open chat (both platforms). - The iOS Settings trailing pane falls back to Servers when developer tools are locked; the rule is a shared SettingsDetail helper on both platforms. - Home clears the selected session when the active profile changes or is cleared, and when a listed session disappears; Android bumps the home reset generation on profile-cleared too. - The iOS divider drag respects right-to-left layout. Co-Authored-By: Claude Fable 5.1 <[email protected]>

Summary
SplitPanePreferences, cleared by Clear All Data). Compact widths keep the current stacked navigation.sidebaricon (Lucidepanel-left) and anOpenCodeSplitPanedesign-system component with a Component Gallery entry on both platforms.prototype/ope-279-tablet-split-view.Checks
xcodebuild teston iPad Pro 13-inch (M4) simulator: 1719 tests in 180 suites passed. Build also verified on an iPhone destination../gradlew :app:assembleDebug :app:testDebugUnitTest: BUILD SUCCESSFUL, 192 suites, 0 failures.ktlintCheckadds no new violations in changed files (pre-existing ones remain, soft-failed in CI).opencode servewith seeded sessions on iPad Pro 13 and Pixel Tablet emulators.Linear
Risks / Follow-ups
OpenCode MobileTests/GeneratedSnapshotEvidencefolder contains stale files that break test builds locally; moved aside for the run. Not part of this change.🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmithwith what you need. Autofix is disabled.Note
Medium Risk
Large navigation and layout changes affect how sessions and settings open across form factors; Android still pushes some chat destinations as full-screen routes over the split (documented platform gap).
Overview
Adds a tablet / wide-window split layout on Android (≥720dp) and iOS (regular width) so Home shows the session list beside an embedded chat, and Settings shows its menu beside the selected sub-screen instead of always stacking routes.
Introduces shared
OpenCodeSplitPane(resizable/collapsible leading pane, divider handle, sidebar toggle in detail top bars viaopenCodeDetailLeading/detailControl) withSplitPanePreferencespersisting width and collapsed state per screen (cleared on Clear All Data). Navigation is refactored to swap detail panes in split mode while preserving stacked navigation on compact widths, including handoff when the window narrows (selection → push route on Android,navigationPathon iOS). Home split chat uses a one-entry decorated back stack so session ViewModels scope like a popped route; list rows gain selection highlighting. Settings detail routes are centralized (SettingsDetail,settingsDetailContenton Android). Adds sidebar icon, Component Gallery demo, product analytics for sidebar toggle, and unit tests for layout/preferences codecs.Reviewed by Cursor Bugbot for commit 6d06ffe. Bugbot is set up for automated code reviews on this repo. Configure here.