Repository navigation
Keep Session Chat screens in the tablet pane and share the model catalog - #366
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…plit-view-chat-lifecycle-cache-android' into feature/split-view-chat-lifecycle
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…re/split-view-chat-lifecycle
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…it-view-chat-lifecycle
… iOS Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…re/split-view-chat-lifecycle
…eature/split-view-chat-lifecycle
Collaborator
Author
|
@cursor review |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 2 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 1bb6b9a. Configure here.
A slower unforced catalog load no longer replaces a newer forced result, and an older persist no longer hides a newer in-memory model pick.
…at-lifecycle # Conflicts: # android/app/src/main/java/dev/opencode/mobile/Navigation.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Follow-up to the tablet split view (#356). Closes #357.
Android: chat-pushed screens stay in the trailing pane
NavDisplayinside the trailing pane instead of covering the split. iOS already did this with its per-paneNavigationStack.ChatFlowNavigator, so compact width keeps its exact behaviour.iOS and Android: shared model catalog per Connection Profile
ModelCatalogStore(app singleton) keyed by profile, server URL, username and worktree. It holds the catalog and selectable agents, shares in-flight fetches, keeps the last good catalog when a refresh fails or comes back empty, and is cleared throughProjectionCacheson profile switch/save/remove and Clear cache.Checks
:app:assembleDebugand:app:testDebugUnitTestfor the touched areas: 345 tests, 0 failures.connectedDebugAndroidTestforHomeSessionPaneNavigationTestandMainNavEntryDecoratorsTeston a Pixel Tablet emulator: 5 tests, 0 failures. No new ktlint violations in changed files.xcodebuild testforSessionChatViewModelTests,ModelCatalogStoreTests,SessionModelSelectionStoreTests,SessionChatComposerStateTests,ConnectionSessionCoordinatorTests,SessionChatViewModelReuseTests,ProjectListHomeViewModelTests: 219 tests passed.opencode serve:Risks / Follow-ups
🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmithwith what you need. Autofix is disabled.Note
Medium Risk
Navigation stack and back/handoff behavior changed on Android tablets, and model selection now depends on a shared cache cleared on profile switches—both are user-visible and easy to regress without the new tests.
Overview
Android tablet home replaces a single selected-session state with a nested pane
NavBackStackso Session Chat and screens opened from it (context, changes, tools, terminal, etc.) stay in the trailing split pane. SharedchatFlowEntriesplusChatFlowNavigatorkeep compact root navigation behavior while the pane uses its own stack, back order, and ViewModel scoping. Narrowing the window hands off pane routes to the root stack viarememberHomeSessionPaneHandoffso entries leave the pane cleanly before ViewModels are cleared.iOS and Android add a singleton
ModelCatalogStore(keyed by connection profile and worktree) that caches model catalogs and selectable agents, dedupes refreshes, and keeps the last good catalog on empty/failed refresh. Session chat composers seed from the store for instant model chips on revisit, reconcile against persisted/history selection, andProjectionCachesclears the store on profile/cache clears. Instrumentation tests cover pane back/handoff/VM clearing and catalog caching semantics.Reviewed by Cursor Bugbot for commit 1bb6b9a. Bugbot is set up for automated code reviews on this repo. Configure here.